> 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-wimexecutionpolicy.md).

# Set-WimExecutionPolicy

You can't do much in PowerShell without setting the ExecutionPolicy

![](/files/-MSR_y6_ykNmoIt3_ndc)

## Example

This function will perform the following actions in one step

* [Mount-WindowsImageOSD](broken://pages/-LuGfgiq5vjs_Ela0mly)
* [Set-WindowsImageExecutionPolicy](/docs/trash/dism/set-windowsimageexecutionpolicy.md)
* [Dismount-WindowsImageOSD](broken://pages/-MSRSwYVMkV_nOMK2EmB) -Save

```
Set-WIMExecutionPolicy -ImagePath "D:\WinPE\sources\boot.wim" -ExecutionPolicy Bypass
```

![](/files/-MSRbKv0QnIFFPOsOhdI)

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