OSDeploy.com
Twitter
GitHub
PowerShell Gallery
Search…
OSD PowerShell Module
Functions
Docs
OSDCloud
OSDPad
OSDHelp
Guides
OSDWindowsImage
Windows Setup Environment
Release Notes
Trash
Adk
Appx
Block
CloudDriver
Dell
Disk
Dism
Get-MyWindowsCapability
Get-MyWindowsPackage
Set-WimExecutionPolicy
Set-WindowsImageExecutionPolicy
Display
Driver
General
MyBitLocker
OOBE
PSModule
WebConnection
WebPSScript
WinPEWim
WinPE
Powered By
GitBook
Set-WimExecutionPolicy
You can't do much in PowerShell without setting the ExecutionPolicy
Example
This function will perform the following actions in one step
​
Mount-WindowsImageOSD
​
​
Set-WindowsImageExecutionPolicy
​
​
Dismount-WindowsImageOSD
-Save
1
Set-WIMExecutionPolicy -ImagePath "D:\WinPE\sources\boot.wim" -ExecutionPolicy Bypass
Copied!
​
Previous
Get-MyWindowsPackage
Next
Set-WindowsImageExecutionPolicy
Last modified
10mo ago
Copy link
Contents
Example