起因
起初只想在 win7上實現 pause 效果而已
cmd /c pause | out-null
結果只能看到紅字一閃而過
打開 PowerShell ISE 進行調試
這次清楚的看到紅字提示
"cannot be loaded because running scripts is disabled on this system"
解決方法
管理員權限運行PowerShell
Set-ExecutionPolicy RemoteSigned
起初只想在 win7上實現 pause 效果而已
cmd /c pause | out-null
結果只能看到紅字一閃而過
這次清楚的看到紅字提示
"cannot be loaded because running scripts is disabled on this system"
管理員權限運行PowerShell
Set-ExecutionPolicy RemoteSigned
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。