| external help file | OSD-help.xml |
|---|---|
| Module Name | OSD |
| online version | https://github.com/OSDeploy/OSD/tree/master/docs |
| schema | 2.0.0 |
Copies PowerShell modules to a mounted Windows image
Copy-PSModuleToWindowsImage [-Name] <String[]> [-ExecutionPolicy <String>] [-Path <String[]>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Copies specified PowerShell modules from the running operating system to a mounted Windows image for offline servicing.
Copy-PSModuleToWindowsImage -Name 'OSD' -Path 'C:\Mount'
Copies the OSD module to the mounted image at C:\\Mount
Copy-PSModuleToWindowsImage -Name 'OSD','ActiveDirectory' -ExecutionPolicy Bypass -Path 'C:\Mount'
Copies multiple modules and sets execution policy
Name of the PowerShell module(s) to copy. Wildcard patterns are supported. This parameter is mandatory.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: TrueSets the PowerShell Execution Policy in the Windows image. Valid values are Restricted, AllSigned, RemoteSigned, Unrestricted, Bypass, and Undefined.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalsePath to the mounted Windows image. If not specified, will use the currently mounted image.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: David Segura - Recast Software 2026-07-10 - Added comment-based help