Set-WimExecutionPolicy
You can't do much in PowerShell without setting the ExecutionPolicy

Example

This function will perform the following actions in one step
1
Set-WIMExecutionPolicy -ImagePath "D:\WinPE\sources\boot.wim" -ExecutionPolicy Bypass
Copied!
​
Copy link
Contents
Example