Copy-PSModuleToFolder
Copies PowerShell modules to a destination module path.
Property
Value
Module
OSD
Platform
WinPE (amd64 / arm64)
Description
Finds the latest installed version of each requested module and copies it to the destination using the standard module\version folder layout.
Syntax
Copy-PSModuleToFolder [-Name] <String[]> [-Destination] <String> [-RemoveOldVersions]
[-ProgressAction <ActionPreference>] [<CommonParameters>]Parameters
Parameter
Type
Required
Description
-Name
String[]
True
One or more module names to copy.
-Destination
String
True
Destination root folder for copied modules.
-RemoveOldVersions
SwitchParameter
False
Removes existing module content from the destination before copying.
Examples
Example
Example
Related
Last updated
Was this helpful?

