Elevate Powershell scripts
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to elevate the permissions of a powershell script so a user without admin privileges can run the script? Our network admins are trying to find more time-efficient ways to accomplish certain tasks that right now they have to use remote desktop for...automating them with PS scripts would help, but the users don't have admin rights. 回答1: The task is more like setuid than sudo ... and thankfully, setuid is possible: you can simply create a scheduled task ( without a set schedule ), and set it to run elevated . Then, give your