Set-WindowsImageExecutionPolicy
By default, WinPE has the PowerShell Execution Policy to Restricted. This can easily be changed

Example

One thing to keep in mind that if you don't specify the Set-WindowsImageExecutionPolicy Path, it will apply to all mounted Windows Images
1
Mount-WindowsImageOSD -ImagePath "T:\WinPE\sources\boot.wim"
2
Set-WindowsImageExecutionPolicy Bypass
3
Dismount-WindowsImageOSD -Save
Copied!
Last modified 6mo ago
Copy link
Contents
Example