MyAgens
MyAgens
Installation

How to run PowerShell as administrator on Windows

Updated Jul 4, 2026 1 min

The Windows install command for MyAgens sometimes needs administrator rights, for example to install a dependency or set up a service. Running PowerShell "as administrator" (an elevated prompt) gives it those rights. Here are the quickest ways to do it on Windows 10 and 11.

The fastest way (Win + X)

  1. Press Windows + X (or right-click the Start button).
  2. Choose Terminal (Admin) on Windows 11, or Windows PowerShell (Admin) on Windows 10.
  3. Click Yes on the User Account Control prompt.

The title bar now says "Administrator", and you have an elevated prompt.

From the Start menu

  1. Click Start and type PowerShell.
  2. Right-click Windows PowerShell (or Terminal) in the results.
  3. Choose Run as administrator, then confirm the prompt.

Confirm you are elevated

If you are not sure the prompt is elevated, run:

([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)

If it prints True, you are running as administrator.

Then install MyAgens

In the elevated prompt, allow scripts for this session and run the installer:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
irm https://myagens.com/install.ps1 | iex

The Set-ExecutionPolicy line only affects this one PowerShell window (nothing is saved), so the installer and the npm and Claude helper scripts can run. For the full walkthrough, see How to install MyAgens on Windows.