Skip to main content

All Questions

0 votes
1 answer
168 views

Opening command prompt as admin Using a Desktop Shortcut with Hard-coded admin username

TLDR version on the bottom. I would like to create a desktop shortcut that would open up command prompt as if I had used the 'Run as Admin' option, but by just double clicking a shortcut and then ...
mbelsky's user avatar
7 votes
2 answers
18k views

Pass parameters to program started with Runas

I am trying to start Performance monitor as different user. I found runas.exe but syntax for program arguments makes me go crazy. The following syntax works: C:\Windows\System32\runas.exe /user:domain\...
JIV's user avatar
  • 185
-2 votes
2 answers
23k views

Using PSexec to launch PowerShell session as system with specific window attributes

I'm trying to launch a PowerShell session via PSexec with alternate colors and some window attributes. The reason why I would need to run PowerShell through PSExec is so that I can have a ready-made ...
montag's user avatar
  • 133
9 votes
3 answers
61k views

Command line argument for running as another user on Windows?

Under windows .msi installer, if you specify a custom action to be run at an application's installation time, it will get run under the "SYSTEM" user. Can I trick it by passing a command line ...
kellogs's user avatar
  • 387