MyAgens
MyAgens
Installation

How to run PowerShell as administrator on Windows

György
Reviewed by
György
Updated Jul 4, 2026 1 min

The Windows install command for MyAgens needs administrator rights to install dependencies and set up the service, and it checks: if the window is not elevated, it stops and tells you. 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
$env:MYAGENS_SETUP="browser"; irm https://myagens.com/install.ps1 | iex

The MYAGENS_SETUP="browser" part opens the guided setup page in your browser after the terminal finishes the quiet work, which is the recommended flow. The Windows install guide walks through the whole thing.

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.

Get MyAgens

Self-hosted and open source. Install it on macOS, Linux, or Windows, then command your fleet of AI agents from Telegram or Slack.