我嘗試使用下面的代碼個問題"PowerShell: Running a command as Administrator"不僅自我提升我的腳本在管理員級別的PowerShell自動運行,同時也爲管理員級別PowerShell會話是使用RemoteSigned的ExecutionPolicy級別運行。我假設我需要$newProcess.Arguments使用像-ExecutionPolicy Rem
如何禁用安全警告: Run only scripts that you trust
While scripts from the Internet can be useful, this script can potentially harm your computer
Do you want to run in POWERSHELL
我已經嘗試設置策略不受限制。 的操作系統是Window