Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在运行 perl 脚本时,是否有任何方法可以在 Win-7 中获得管理员访问权限?
如果你不介意以管理员身份运行整个脚本,你可以使用 shell "runas" 命令:
runas /profile /env /user:mydomain\admin "perl myscript.pl"