> 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/webpsscript.md).

# WebPSScript

## Invoke-WebPSScript

This is quite a simple function that allows me to Invoke a PowerShell script in a URL.  As you can see this is working in WinPE, but fails when I try to Install-Module.  That's because PowerShell Gallery doesn't work in WinPE by default.  I guess I need to read this first

{% content-ref url="/pages/-MVIO2jJ16qb50jOcwLO" %}
[Enable-PEWimPSGallery](/docs/trash/winpe/enable-pewimpsgallery.md)
{% endcontent-ref %}

![](/files/-MVINlKKXsILUFq-xeBd)
