ShellRunas使用

ShellRunas使用

shellRunas微软官网链接

适用于windows平台(win xp, win 7, win 10 均可使用)

是一个方便使用者使用不同的账户运行应用程序的一个小工具(当然如果你需要频繁的切换用户的话就会比较麻烦)

Usage:

1
2
3
4
5
6
7
shellrunas /reg [/quiet]

shellrunas /regnetonly [/quiet]

shellrunas /unreg [/quiet]

shellrunas [/netonly] <\*program\*> [\*arguments\*]
Parameter Description
/reg Registers ShellRunas shell context-menu entry
/regnetonly Registers Shell /netonly context-menu entry Note: a command prompt will flash when the program starts
/unreg Unregisters ShellRunas shell context-menu entry
/quiet Register or unregisters ShellRunas shell context-menu entry without result dialog
/netonly Use if specified credentials are for remote access only
<program> Runs program with specified credentials and parameters

举个栗子

运行如下命令

1
ShellRunas.exe \reg

然后就能看到提示 shellRunas 的右键菜单成功注册了

rpDFbR.png

然后再在应用程序上右击就能看到以不同用户运行的选项了

rpD3VI.png

输入用户名和密码即可

rpDwrj.png