For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Last updated

Was this helpful?