You can't do much in PowerShell without setting the ExecutionPolicy
This function will perform the following actions in one step
Mount-WindowsImageOSD
Set-WindowsImageExecutionPolicy
Dismount-WindowsImageOSD -Save
Last updated 4 years ago
Was this helpful?
Set-WIMExecutionPolicy -ImagePath "D:\WinPE\sources\boot.wim" -ExecutionPolicy Bypass