PowerShell快捷方式设置为管理员运行不生效
之前的快捷方式设置,是开始菜单找到程序,open file location,找到的快捷方式
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PowerShell\PowerShell 7 (x64).lnk
在Shortcut里面设置的管理员权限,不起作用。
正确的设置,应该在兼容性那边进行设置
C:\Program Files\PowerShell\7\pwsh.exe
通过everything找到exe文件,然后右键-->属性
在兼容性设置里面,以管理员身份运行