Set-RASAVDDefaultSettings
Last updated
Last updated
Set-RASAVDDefaultSettings
Modifies default settings used to configure Azure Virtual Desktop.
Set-RASAVDDefaultSettings - {AVDMultiSessionDefaultSettings | AVDSingleSessionDefaultSettings} [ (bool)] [- {Disabled | Enabled | EnabledWithAppRegistration}] [ (bool)] [ (uint)] [- {Disabled | ClientToServer | ServerToClient | Bidirectional}] [ (bool)] [ (bool)] [ (string)] [ (bool)] [- {Disabled | ClientToServer | ServerToClient | Bidirectional}] [ (uint)] [ (bool)] [- {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] [ (uint)] [ (uint)] [- {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}] [ (uint)] [- {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}] [ (bool)] [ (bool)] [- {Disconnect | Logoff}] [ (uint)] [ (uint)] [ (bool)] [- {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [ (bool)] [ (bool)] [()]
Modifies default settings used to configure Azure Virtual Desktop.
For each setting, the cmdlet has a corresponding input parameter. To modify a setting, specify a matching parameter and its value.
Default settings are defined on a site level and are applied to an Azure Virtual Desktop server when it is initially added to the site.
To retrieve the current defaults settings, use the Get-RASAVDDefaultSettings cmdlet.
Site ID for which to modify the default AVD settings.
The Default object type.
Possible values: AVDMultiSessionDefaultSettings, AVDSingleSessionDefaultSettings
Specifies the 'User Profile Technology' value.
Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer
Disconnect active session after (in seconds). Accepted values: 20-1641600 seconds; 0 for 'Never'.
Logoff disconnected session after (in seconds). Accepted values: 20-1641600 seconds; 0 for 'Never'; 1 for 'Immediate'.
Session readiness timeout (in seconds). Accepted values: 20-3600 seconds.
Specifies if 'Allow 2XRemoteExec to send command to the client' option is enabled or disabled.
Possible values: Disabled, Enabled, EnabledWithAppRegistration
Specifies if 'Support Shell URL Namespace Objects' option is enabled or disabled.
Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP
Specifies if 'Allow RDP Shortpath' option is enabled or disabled.
Specifies if 'Allow Application Monitoring' option is enabled or disabled.
Specifies if 'Allow RDP Shortpath' option is enabled or disabled.
Specifies if 'Use Smaller Port' option is enabled or disabled.
The minimum RDP Shortpath Port.
The maximum RDP Shortpath Port.
Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional
Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional
Location where the File Transfer takes place, if and where it is allowed.
Lock Location where the File Transfer takes place, if and where it is allowed.
Specifies if the 'Enable Drive Redirection Cache' option is enabled or disabled.
Specifies if the 'Enable Z-Order' option is enabled or disabled. (Experimental)
Session Action
Possible values: Disconnect, Logoff
Perform Action
Possible values: DoNothing, Shutdown, Suspend, Delete, Restart, Unassign, Recreate
Perform action after (in seconds)
Possible values: PrnFormat_PRN_CMP_SES, PrnFormat_SES_CMP_PRN, PrnFormat_PRN_REDSES
Specifies if 'Remove session number from printer name' option is enabled or disabled.
Specifies if 'Remove client name from printer name' option is enabled or disabled.
(CommonParameters)
-none-
-none-
**---------- EXAMPLE 1 ----------
Set-RASAVDDefaultSettings -SiteId 1 -DefObjType AVDSingleSessionDefaultSettings -DisconnectActiveSessionAfter 10
Modifies the default value of the DisconnectActiveSessionAfter property for the specified site.
() Specifies the 'Allow Client URL/Mail Redirection'.
() Manage RDP transport protocol.
() Specifies the mode the drag and drop feature will operate.
() Specifies if File Transfer option is allowed and if yes, which directions are allowed.
() Printer Name Format