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

Set-RASAutoUpgrade

SYNOPSIS

Modifies the Auto-upgrade settings.

SYNTAX

Set-RASAutoUpgrade
 -DefObjType {RDSDef | VDIDef | AVDSingleSessionDefaultSettings | AVDMultiSessionDefaultSettings}
 [-DrainModeDurationInSecs <double>] [-Enabled <bool>] [-ForceLogoffSessions <bool>]
 [-Repeat {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}]
 [-SiteId <uint>]
 [-SpecificDays {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}]
 [-StartDateTime <DateTime>] [<CommonParameters>]
Set-RASAutoUpgrade [-Id] <uint> -ObjType {RDSHostPool | VDIHostPool | AVDHostPool}
 [-DrainModeDurationInSecs <double>] [-Enabled <bool>] [-ForceLogoffSessions <bool>]
 [-Repeat {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}]
 [-SpecificDays {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}]
 [-StartDateTime <DateTime>] [<CommonParameters>]
Set-RASAutoUpgrade [-InputObject] <RASSerilazableObj> [-DrainModeDurationInSecs <double>]
 [-Enabled <bool>] [-ForceLogoffSessions <bool>]
 [-Repeat {Never | EveryDay | EveryWeek | Every2Weeks | EveryMonth | EveryYear | SpecificDays}]
 [-SpecificDays {Never | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}]
 [-StartDateTime <DateTime>] [<CommonParameters>]

DESCRIPTION

Modifies the Auto-upgrade settings of RDSHostPool, RDSDefaults, VDIHostPool, VDIDefaults, AVDHostPool or AVDDefaults (Single-Session/Multi-Session).

EXAMPLES

Example 1

Enables the Auto-upgrade settings of the RDS Default Settings.

Example 2

Disables the Auto-upgrade settings of the specified VDIHostPool by Name.

Example 3

Enables the Auto-upgrade settings of the specified AVDHostPool by Id.

PARAMETERS

-Enabled

Enable auto-upgrade maintenance window

-StartDateTime

Start Date

-DrainModeDurationInSecs

Drain mode duration

-ForceLogoffSessions

Force logoff sessions at the end of the drain mode period

-Repeat

Recur

Possible values: Never, EveryDay, EveryWeek, Every2Weeks, EveryMonth, EveryYear, SpecificDays

Type reference: RepeatType

-SpecificDays

Specific Days

Possible values: Never, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday

Type reference: RepeatSpecificDays

-Name

The name or server for which to modify the Auto-upgrade settings.

-SiteId

Site ID from which to modify the Auto-upgrade settings.

If the parameter is omitted, the Licensing Server site ID will be used.

-Id

The ID of a server for which to modify the Auto-upgrade settings.

-InputObject

An object of type RDS, RDSHostPool, VDITemplate or VDIDesktop for which to modify the Auto-upgrade settings.

Type reference: RASSerilazableObj

-ObjType

The Object Type for which to modify the Auto-upgrade settings.

Possible values: RDSHostPool, VDIHostPool, AVDHostPool

Type reference: HostPoolObjType

-DefObjType

The Default Object Type for which to modify the Auto-upgrade settings.

Possible values: RDSDef, VDIDef, AVDSingleSessionDefaultSettings, AVDMultiSessionDefaultSettings

Type reference: ServerDefObjType

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

None

OUTPUTS

None

Last updated