Skip to content

New-Vusmachineupgrade

Creates a new schedule for a machine/List of machines.

Syntax

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

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

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

Detailed Description

The New-VusMachineUpgrade cmdlet Creates a new schedule for a machine/List of machines.

The cmdlets syncs with broker service to determine if the machine actually is added to broker service and only then schedules upgrade for it.

Parameters

Name Description Required? Pipeline Input Default Value
ScheduledTimeInUtc Scheduled Time in UTC at which machine upgrade needs to be performed true false
DurationInHours Hours Available for upgrade true 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.Machinescheduleobject

The Upgrade information for most recent machine schedule

Examples

Example 1

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

Description

Creates a new upgrade for the machine matching the given Uuid

Was this article helpful?