ShellRunas (SysInternals)

Launch a program under a different user account (typically an Admin level account).

Syntax
      shellrunas [/netonly] program arguments
      shellrunas /reg [/quiet]
      shellrunas /regnetonly [/quiet] 
      shellrunas unreg

Key
   program     Run program with specified credentials and parameters

   /netonly    Use if specified credentials are for remote access only

   /reg        Register ShellRunas shell context-menu entry
   /regnetonly Register Shell /netonly context-menu entry
               Note: a command prompt will flash when the program starts
   /unreg      Unregister ShellRunas shell context-menu entry
   /quiet      Register or unregisters ShellRunas shell context-menu entry without result dialog

Examples:

C:\> shellrunas photoshop.exe

"If NumLock is on, pressing a key on the numeric keypad while holding SHIFT overrides NumLock and instead generates an arrow key" ~ OldNewThing

Related:

RUNAS - Execute a program under a different user account.
Aaron Margosis - Running with least privilege.


 
Copyright © SS64.com 1999-2019
Some rights reserved