PowerShell Excution Policy and Redirection
如果在执行ps1脚本时,报如下错误:
.ps1 cannot be loaded because the execution of scripts is disabled on this system
解决方法:
Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy Unrestricted
About PowerShell Excution Policy:
We can redirect info to a log file like this: powershell.exe test.ps1 > logfile.txt
About PowerShell redirection:
浙公网安备 33010602011771号