# Set-RASAVDDefaultSettings

### NAME

Set-RASAVDDefaultSettings\ <br>

### SYNOPSIS

Modifies default settings used to configure an Azure Virtual Desktop Host Pool.\ <br>

### SYNTAX

Set-RASAVDDefaultSettings -[DefObjType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#DefObjType) {AVDMultiSessionDefaultSettings | AVDSingleSessionDefaultSettings} \[-[AllowRemoteExec](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#AllowRemoteExec) *\<bool>*] \[-[AllowURLAndMailRedirection](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[-[AppMonitor](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#AppMonitor) *\<bool>*] \[-[DisconnectActiveSessionAfter](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#DisconnectActiveSessionAfter) *\<uint>*] \[-[DragAndDropMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#DragAndDropMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[EnableDriveRedirectionCache](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#EnableDriveRedirectionCache) *\<bool>*] \[-[FileTransferLocation](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#FileTransferLocation) *\<string>*] \[-[FileTransferLockLocation](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#FileTransferLockLocation) *\<bool>*] \[-[FileTransferMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[LogoffDisconnectedSessionAfter](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#LogoffDisconnectedSessionAfter) *\<uint>*] \[-[ManageRDPShortpath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#ManageRDPShortpath) *\<bool>*] \[-[ManageRDPTransportProtocol](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[-[MaxRDPShortpathPort](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#MaxRDPShortpathPort) *\<uint>*] \[-[MinRDPShortpathPort](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#MinRDPShortpathPort) *\<uint>*] \[-[PerformAction](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#PerformAction) {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}] \[-[PerformActionAfterSec](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#PerformActionAfterSec) *\<uint>*] \[-[PrinterNameFormat](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[-[RemoveClientNameFromPrinterName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#RemoveClientNameFromPrinterName) *\<bool>*] \[-[RemoveSessionNumberFromPrinterName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#RemoveSessionNumberFromPrinterName) *\<bool>*] \[-[SessionAction](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#SessionAction) {Disconnect | Logoff}] \[-[SessionReadinessTimeout](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#SessionReadinessTimeout) *\<uint>*] \[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#SiteId) *\<uint>*] \[-[SupportShellURLNamespaceObjects](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#SupportShellURLNamespaceObjects) *\<bool>*] \[-[Technology](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#Technology) {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] \[-[UseRDPShortpath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#UseRDPShortpath) *\<bool>*] \[-[UseSmallerPortRange](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#UseSmallerPortRange) *\<bool>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASAVDDefaultSettings.html#CommonParameters)*>*]\ <br>

### DESCRIPTION

Modifies default settings used to configure an Azure Virtual Desktop Host Pool.\
\
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 Host Pool server when it is initially added to the site.\
\
To retrieve the current defaults settings, use the Get-RASAVDDefaultSettings cmdlet.\
\
This is an Experimental feature which is subject to slight changes.\ <br>

### PARAMETERS

\
-**SiteId \<uint>**\
Site ID for which to modify the default AVD settings.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DefObjType <**[**AVDDefObjType**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/AVDDefObjType.html)**>**\
The Default object type.\
\
Possible values: AVDMultiSessionDefaultSettings, AVDSingleSessionDefaultSettings\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Technology <**[**UserProfileTech**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/UserProfileTech.html)**>**\
Specifies the 'User Profile Technology' value.\
\
Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DisconnectActiveSessionAfter \<uint>**\
Disconnect active session after (in seconds). Accepted values: 20-1641600 seconds; 0 for 'Never'.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**LogoffDisconnectedSessionAfter \<uint>**\
Logoff disconnected session after (in seconds). Accepted values: 20-1641600 seconds; 0 for 'Never'; 1 for 'Immediate'.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SessionReadinessTimeout \<uint>**\
Session readiness timeout (in seconds). Accepted values: 20-3600 seconds.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowRemoteExec \<bool>**\
Specifies if 'Allow 2XRemoteExec to send command to the client' option is enabled or disabled.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowURLAndMailRedirection <**[**AllowURLAndMailRedirection**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/AllowURLAndMailRedirection.html)**>**\
Specifies the 'Allow Client URL/Mail Redirection'.\
\
Possible values: Disabled, Enabled, EnabledWithAppRegistration\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SupportShellURLNamespaceObjects \<bool>**\
Specifies if 'Support Shell URL Namespace Objects' option is enabled or disabled.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ManageRDPTransportProtocol <**[**ManageRDPTransportProtocol**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ManageRDPTransportProtocol.html)**>**\
Manage RDP transport protocol.\
\
Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ManageRDPShortpath \<bool>**\
Specifies if 'Allow RDP Shortpath' option is enabled or disabled.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AppMonitor \<bool>**\
Specifies if 'Allow Application Monitoring' option is enabled or disabled.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**UseRDPShortpath \<bool>**\
Specifies if 'Allow RDP Shortpath' option is enabled or disabled.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**UseSmallerPortRange \<bool>**\
Specifies if 'Use Smaller Port' option is enabled or disabled.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**MinRDPShortpathPort \<uint>**\
The minimum RDP Shortpath Port.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**MaxRDPShortpathPort \<uint>**\
The maximum RDP Shortpath Port.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DragAndDropMode <**[**DragAndDropModeValue**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/DragAndDropModeValue.html)**>**\
Specifies the mode the drag and drop feature will operate.\
\
Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**FileTransferMode <**[**FileTransferControlMode**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/FileTransferControlMode.html)**>**\
Specifies if File Transfer option is allowed and if yes, which directions are allowed.\
\
Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**FileTransferLocation \<string>**\
Location where the File Transfer takes place, if and where it is allowed.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**FileTransferLockLocation \<bool>**\
Lock Location where the File Transfer takes place, if and where it is allowed.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**EnableDriveRedirectionCache \<bool>**\
Specifies if the 'Enable Drive Redirection Cache' option is enabled or disabled.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SessionAction <**[**SessionAction**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/SessionAction.html)**>**\
Session Action\
\
Possible values: Disconnect, Logoff\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PerformAction <**[**PerformAction**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PerformAction.html)**>**\
Perform Action\
\
Possible values: DoNothing, Shutdown, Suspend, Delete, Restart, Unassign, Recreate\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PerformActionAfterSec \<uint>**\
Perform action after (in seconds)\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PrinterNameFormat <**[**PrnNameFormat**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PrnNameFormat.html)**>**\
Printer Name Format\
\
Possible values: PrnFormat\_PRN\_CMP\_SES, PrnFormat\_SES\_CMP\_PRN, PrnFormat\_PRN\_REDSES\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**RemoveSessionNumberFromPrinterName \<bool>**\
Specifies if 'Remove session number from printer name' option is enabled or disabled.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**RemoveClientNameFromPrinterName \<bool>**\
Specifies if 'Remove client name from printer name' option is enabled or disabled.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
\<CommonParameters>

```
        This cmdlet supports the common parameters: Verbose, Debug,
```

```
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
```

```
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
```

```
        about_CommonParameters . 
```

<br>

### INPUTS

-none-

### OUTPUTS

-none-

### EXAMPLES

\
\&#xNAN;**---------- EXAMPLE 1 ----------**\
\
Set-RASAVDDefaultSettings -SiteId 1 -DefObjType AVDSingleSessionDefaultSettings -DisconnectActiveSessionAfter 10\
\
Modifies the default value of the DisconnectActiveSessionAfter property for the specified site.
