Skip to main content

Copy-UpdateHistory

SYNOPSIS

Copies the UpdateHistory.csv report to the UHPath config item path.

SYNTAX

Copy-UpdateHistory [[-ComputerName] <String[]>] [<CommonParameters>]

DESCRIPTION

Copies the UpdateHistory.csv report created with Save-UpdateHistory to the UHPath config item path for the local computer or remote computers.

EXAMPLES

EXAMPLE 1

Copy-UpdateHistory

Runs Copy-UpdateHistory to copy the UpdateHistory.csv file for the local computer to the UHPath location.

EXAMPLE 2

Copy-UpdateHistory -ComputerName Server1

Runs Copy-UpdateHistory to copy the UpdateHistory.csv file for the remote computer Server1 to the UHPath location.

PARAMETERS

-ComputerName

Specifies the name of one or more computers.

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

Required: False
Position: 1
Default value: "$env:COMPUTERNAME"
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.String

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-UpdateHistory