powershell: Sometimes the script execution failed because execution policy reasons, you need to change the execution policy.
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
$PSVersionTable
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
get-host
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
if
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
Get-ExecutionPolicy
powershell: Sometimes the script execution failed because execution policy reasons, you need to change the execution policy.
$PSVersionTable
get-host
if
Get-ExecutionPolicy