PS C:\> Get-Help Copy-PSModuleToWim -Full
Copies the latest installed named PowerShell Module to a Windows Image .wim file (Mount | Copy | Dismount -Save)
Copy-PSModuleToWim [[-ExecutionPolicy] <String>] [-ImagePath] <String[]> [[-Index] <UInt32>] [-Name] <String[]> [<CommonParameters>]
Copies the latest installed named PowerShell Module to a Windows Image .wim file (Mount | Copy | Dismount -Save)
-ExecutionPolicy <String>
Specifies the new execution policy. The acceptable values for this parameter are:
- Restricted. Does not load configuration files or run scripts. Restricted is the default execution policy.
- AllSigned. Requires that all scripts and configuration files be signed by a trusted publisher, including scripts that you write on the local computer.
- RemoteSigned. Requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher.
- Unrestricted. Loads all configuration files and runs all scripts. If you run an unsigned script that was downloaded from the Internet, you are prompted for permission before it runs.
- Bypass. Nothing is blocked and there are no warnings or prompts.
- Undefined. Removes the currently assigned execution policy from the current scope. This parameter will not remove an execution policy that is set in a Group Policy scope.
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
Specifies the location of the WIM or VHD file containing the Windows image you want to mount.
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
Index of the WIM to Mount
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
Name of the PowerShell Module to Copy
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? true
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
https://osd.osdeploy.com/module/functions/psmodule/copy-psmoduletowim
PS C:\> Get-Help Copy-PSModuleToWindowsImage -Full
Copy-PSModuleToWindowsImage
Copies the latest installed named PowerShell Module to a mounted Windows Image
Copy-PSModuleToWindowsImage [[-ExecutionPolicy] <String>] [[-Path] <String[]>] [<CommonParameters>]
Copies the latest installed named PowerShell Module to a mounted Windows Image
-ExecutionPolicy <String>
Specifies the new execution policy. The acceptable values for this parameter are:
- Restricted. Does not load configuration files or run scripts. Restricted is the default execution policy.
- AllSigned. Requires that all scripts and configuration files be signed by a trusted publisher, including scripts that you write on the local computer.
- RemoteSigned. Requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher.
- Unrestricted. Loads all configuration files and runs all scripts. If you run an unsigned script that was downloaded from the Internet, you are prompted for permission before it runs.
- Bypass. Nothing is blocked and there are no warnings or prompts.
- Undefined. Removes the currently assigned execution policy from the current scope. This parameter will not remove an execution policy that is set in a Group Policy scope.
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
Specifies the full path to the root directory of the offline Windows image that you will service
If a Path is not specified, all mounted Windows Images will be modified
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
https://osd.osdeploy.com/module/functions/psmodule/copy-psmoduletowindowsimage