OSDeploy.comTwitterGitHubPowerShell Gallery
Search…
⌃K
Links
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
Set-WIMExecutionPolicy -ImagePath "D:\WinPE\sources\boot.wim" -ExecutionPolicy Bypass
​
Previous
Get-MyWindowsPackage
Next
Set-WindowsImageExecutionPolicy
Last modified 1yr ago
Copy link