以管理员身份登录非管理员用户时运行批处理文件


1

我需要以管理用户身份运行批处理脚本,而非管理用户则自动登录。这可能吗?

如果我使用 runas 我无法插入密码。

该脚本使用了 devcon 命令启用设备。


1
选中“使用最高权限”并确保将任务设置为使用具有适当权限的用户的凭据。附: login与boot不同。
Seth

我相信Seth在这里是正确的......用这些选项配置计划任务。
Stephen R.

Answers:


0

对Seth和Stephen R.来说,预定的任务就是我所需要的。另一种解决方案是在组策略(gpedit)中添加脚本。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.