Skip to main content

Copy-UserProfile

SYNOPSIS

Copies User Profile.

SYNTAX

Copy-UserProfile [-UserName] <String> [[-ComputerName] <String[]>] [-DestinationPath <String>]
[<CommonParameters>]

DESCRIPTION

Copies User Profile.

EXAMPLES

EXAMPLE 1

Copy-UserProfile

Executes Copy-UserProfile using the arguments shown.

PARAMETERS

-UserName

Specifies the UserName value.

Type: String
Parameter Sets: (All)
Aliases: User, SamAccountName

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ComputerName

Specifies the computer name to use.

Type: String[]
Parameter Sets: (All)
Aliases: Host, Name, Computer, CN

Required: False
Position: 2
Default value: "$env:COMPUTERNAME"
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-DestinationPath

Specifies the destination path value.

Type: String
Parameter Sets: (All)
Aliases: Destination, Dest, DestinationFolder, DestFolder

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Object

NOTES

ALIASES

None.

PLATFORM APPLICABILITY

Windows only. The platform-aware loader does not export this command on Linux or macOS.

POWERSHELL COMPATIBILITY

See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.

https://docs.keldor.dev/powershell/keldor/Copy-UserProfile