kel*_*ogs 9 windows command-line runas command-line-arguments
在 windows .msi 安装程序下,如果您指定要在应用程序安装时运行的自定义操作,它将在“SYSTEM”用户下运行。我可以通过将命令行参数传递给自定义操作(.exe 文件)并使其在当前登录的用户下运行来欺骗它吗?
Sta*_*ams 14
这是你想要的?
RUNAS
Execute a program under a different user account.
Syntax
RUNAS [/profile] [/env] [/netonly] /user:user Program
Key
/profile Option to load the user's profile (registry)
/env Use current environment instead of user's.
/netonly Use the credentials specified only for remote connections.
/user Username in form USER@DOMAIN or DOMAIN\USER
(USER@DOMAIN is not compatible with /netonly)
Program The command to execute
Run Code Online (Sandbox Code Playgroud)
出现提示时输入密码。
当您使用 启动程序时RunAs /netonly,该程序将以您当前登录的用户身份在您的本地计算机上执行,但与网络上其他计算机的任何连接都将使用指定的用户帐户进行。
没有/netonly一切将在指定的用户帐户下运行。
| 归档时间: |
|
| 查看次数: |
58478 次 |
| 最近记录: |