> For the complete documentation index, see [llms.txt](https://osd.osdeploy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osd.osdeploy.com/docs/trash/dism/set-windowsimageexecutionpolicy.md).

# Set-WindowsImageExecutionPolicy

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

![](/files/-MSR_y6_ykNmoIt3_ndc)

## 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

```
Mount-WindowsImageOSD -ImagePath "T:\WinPE\sources\boot.wim"
Set-WindowsImageExecutionPolicy Bypass
Dismount-WindowsImageOSD -Save
```

![](/files/-MSRdVYls-Ne-MGuILXL)

![](/files/-MSRcW_v-biZhkaXhDAG)
