Skip to content

Set-Vusmachineupgrade

Sets Scheduled time, duration for existing machine schedule

Syntax

Set-VusMachineUpgrade -MachineUuid <String[]> [-ScheduledTimeInUtc <DateTime>] [-DurationInHours <Int32>] [-BearerToken <String>] [-TraceParent <String>] [-TraceState <String>] [-VirtualSiteId <String>] [-AdminAddress <String>] [<CommonParameters>]

Set-VusMachineUpgrade -MachineName <String[]> [-ScheduledTimeInUtc <DateTime>] [-DurationInHours <Int32>] [-BearerToken <String>] [-TraceParent <String>] [-TraceState <String>] [-VirtualSiteId <String>] [-AdminAddress <String>] [<CommonParameters>]

Set-VusMachineUpgrade -MachineUid <Int32[]> [-ScheduledTimeInUtc <DateTime>] [-DurationInHours <Int32>] [-BearerToken <String>] [-TraceParent <String>] [-TraceState <String>] [-VirtualSiteId <String>] [-AdminAddress <String>] [<CommonParameters>]

Detailed Description

The Set-VusMachineUpgrade cmdley sets Scheduled Time or/and Duration for upgrade for Machine/List of machines. This would only impact machines not in state UprageInUpgradeWindow.

Parameters

Name Description Required? Pipeline Input Default Value
MachineUuid Uuid of the machine/List of machines true false
MachineName Name of the machine/List of machines true false
MachineUid Uid of the Machine/List of Machines true false
ScheduledTimeInUtc Scheduled Time in UTC at which machine upgrade needs to be performed false false
DurationInHours Hours Available for upgrade false false
BearerToken Specifies the bearer token assigned to the calling user false false
TraceParent Specifies the trace parent assigned for internal diagnostic tracing use false false
TraceState Specifies the trace state assigned for internal diagnostic tracing use false false
VirtualSiteId Specifies the virtual site the PowerShell snap-in will connect to. false false
AdminAddress Specifies the address of a XenDesktop controller the PowerShell snap-in will connect to. You can provide this as a host name or an IP address. false false Localhost. Once a value is provided by any cmdlet, this value becomes the default.

Input Type

System.Guid

Return Values

Citrix.Vdaupdateservice.Sdk.Machineupgradeobject

The Upgrade information for most recent machine schedule

Examples

Example 1

C:\PS> Set-VusMachineUpgrade -MachineUuid "26C82B4E-A8E7-4013-8055-9110FD9FFDC9" -DurationInHours 6 -ScheduledTimeInUtc ([System.DateTime]::ParseExact("10/23/2021 07:00 PM", 'MM/dd/yyyy hh:mm tt', $null))

Description

Sets Scheduled time, duration for existing machine schedule for machine matching the given Uuid

Example 2

C:\PS> Set-VusMachineUpgrade -MachineName "TestMachine1" -DurationInHours 6

Description

Sets duration for existing machine schedule for machine matching the given Name

Was this article helpful?