Run as Admin

Launch elevated processes from a normal console.

The missing sudo for Windows command line.

A one-line command-line tool that launches any program or script with administrator elevation, starting from a normal (non-elevated) console. You stay in your current shell — only the launched process gets the elevation prompt.

Usage

RunAdmin "c:\path\to\command.cmd"

Or for a program:

RunAdmin "c:\Program Files\Foo\foo.exe" /arg1 /arg2

UAC pops up, you accept, the target process runs elevated. Your console window stays at normal privileges.

When you need it

  • You have a long-running shell session and need to run one elevated command without restarting it
  • Batch files that mostly run unprivileged but call a few admin-only commands
  • CI/CD scripts on a developer machine that mix elevated and non-elevated steps
  • Replacing the awkward "right-click → Run as administrator" workflow with a one-liner

Features

  • Single executable, 135 KB
  • Pass-through of command-line arguments to the elevated target
  • No installer, no registry edits
  • Compatible with every Windows version that has UAC

System requirements

  • Windows 7, 8, 10, 11 (any UAC-capable Windows)
  • Under 1 MB of disk space

Browse the full catalog

49 small, sharp Windows utilities. All freeware. All by the same author.