![](/img/trans.png)
[英]Running SendKeys commands from a .lnk (shortcut) with powershell doesn't work
[英]Powershell - Run Shortcut as Admin doesn't work (Windows)
我在 shell:startup 中放了一个快捷方式
如果我停用“以管理员身份运行” ,快捷方式工作正常 但是具有管理员权限(我需要它们)它不会出现
这就是快捷方式属性:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command "C:\Users\admin\Downloads\Execute_Windows_Update.ps1"
Execute_Windows_Update.ps1:
Set-ExecutionPolicy RemoteSigned
Install-Module -Name PSWindowsUpdate
Import-Module PSWindowsUpdate
Install-WindowsUpdate -AcceptAll -AutoReboot
Windows 不允许启动项提升 UAC。 这在 Vista 中被严格执行
启动 Windows 基于 Vista 的计算机时出现错误消息:“ Windows 已阻止某些启动程序”
这在 7 中有所放松,但有些东西可能仍被阻止以防止启动时 UAC 提示泛滥。
任务调度程序是解决这个问题的一种方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.