Enable-PEWindowsImagePSGallery
Last updated
Was this helpful?
Enables PowerShell Gallery in a mounted Windows image
Module
OSD
Platform
WinPE (amd64 / arm64)
Configures a mounted Windows image to support PowerShell Gallery by adding necessary registry entries and environment variables to the system profile.
Enable-PEWindowsImagePSGallery [[-Path] <String[]>] [-ProgressAction <ActionPreference>] [<CommonParameters>]-Path
String[]
False
Path to the mounted Windows image root directory. If not specified, will use the currently mounted image.
Enable-PEWindowsImagePSGallery
Enables PowerShell Gallery in the currently mounted imageLast updated
Was this helpful?
Was this helpful?
Enable-PEWindowsImagePSGallery -Path 'C:\Mount'
Enables PowerShell Gallery in the image mounted at C:\Mount
