# Set-RASAVDDefaultSettings

## NAME

Set-RASAVDDefaultSettings

## SYNOPSIS

Modifies default settings used to configure Azure Virtual Desktop.

## SYNTAX

**Set-RASAVDDefaultSettings**\
-[DefObjType](#defobjtype)\
{AVDMultiSessionDefaultSettings | AVDSingleSessionDefaultSettings}\
\[[AllowRemoteExec](#allowremoteexec-string)_(bool)_]\
\[-[AllowURLAndMailRedirection](#AllowURLAndMailRedirection)\
{Disabled | Enabled | EnabledWithAppRegistration}]\
\[[AppMonitor](#appmonitor-string) _(bool)_]\
\[[DisconnectActiveSessionAfter](#disconnectactivesessionafter-string)_(uint)_]\
\[-[DragAndDropMode](#DragAndDropMode)\
{Disabled | ClientToServer | ServerToClient | Bidirectional}]\
\[[EnableDriveRedirectionCache](#enabledriveredirectioncache-string)_(bool)_]\
\[[EnableZOrder](#enablezorder-string)_(bool)_]\
\[[FileTransferLocation](#filetransferlocation-string)_(string)_]\
\[[FileTransferLockLocation](#filetransferlocklocation-string)_(bool)_]\
\[-[FileTransferMode](#FileTransferMode)\
{Disabled | ClientToServer | ServerToClient | Bidirectional}]\
\[[LogoffDisconnectedSessionAfter](#logoffdisconnectedsessionafter-string)_(uint)_]\
\[[ManageRDPShortpath](#managerdpshortpath-string)_(bool)_]\
\[-[ManageRDPTransportProtocol](#ManageRDPTransportProtocol)\
{Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}]\
\[[MaxRDPShortpathPort](#maxrdpshortpathport-string)_(uint)_]\
\[[MinRDPShortpathPort](#minrdpshortpathport-string)_(uint)_]\
\[-[PerformAction](#PerformAction)\
{DoNothing | Shutdown | Suspend | Delete | Restart | Unassign |\
Recreate}]\
\[[PerformActionAfterSec](#performactionaftersec-string)_(uint)_]\
\[-[PrinterNameFormat](#PrinterNameFormat)\
{PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN |\
PrnFormat\_PRN\_REDSES}]\
\[[RemoveClientNameFromPrinterName](#removeclientnamefromprintername-string)_(bool)_]\
\[[RemoveSessionNumberFromPrinterName](#removesessionnumberfromprintername-string)_(bool)_]\
\[-[SessionAction](#SessionAction)\
{Disconnect | Logoff}]\
\[[SessionReadinessTimeout](#sessionreadinesstimeout-string)_(uint)_] \[[SiteId](#siteid-string)_(uint)_]\
\[[SupportShellURLNamespaceObjects](#supportshellurlnamespaceobjects-string)_(bool)_] \[-[Technology](#Technology)\
{DoNotManage | UPD | FSLogix | FSLogixProfileContainer}]\
\[[UseRDPShortpath](#userdpshortpath-string)_(bool)_]\
\[[UseSmallerPortRange](#usesmallerportrange-string)_(bool)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

## DESCRIPTION

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.

## PARAMETERS

## SiteId (uint)

Site ID for which to modify the default AVD settings.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DefObjType ([AVDDefObjType](../types/avddefobjtype))

The Default object type.

Possible values: AVDMultiSessionDefaultSettings,\
AVDSingleSessionDefaultSettings

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Technology ([UserProfileTech](../types/userprofiletech))

Specifies the 'User Profile Technology' value.

Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer

```
        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'.

```
        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'.

```
        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.

```
        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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowURLAndMailRedirection

([AllowURLAndMailRedirection](../types/allowurlandmailredirection))\
Specifies the 'Allow Client URL/Mail Redirection'.

Possible values: Disabled, Enabled, EnabledWithAppRegistration

```
        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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ManageRDPTransportProtocol

([ManageRDPTransportProtocol](../types/managerdptransportprotocol))\
Manage RDP transport protocol.

Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

```
        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.

```
        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.

```
        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.

```
        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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MinRDPShortpathPort (uint)

The minimum RDP Shortpath Port.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaxRDPShortpathPort (uint)

The maximum RDP Shortpath Port.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DragAndDropMode

([DragAndDropModeValue](../types/draganddropmodevalue))\
Specifies the mode the drag and drop feature will operate.

Possible values: Disabled, ClientToServer, ServerToClient,\
Bidirectional

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileTransferMode

([FileTransferControlMode](../types/filetransfercontrolmode))\
Specifies if File Transfer option is allowed and if yes, which\
directions are allowed.

Possible values: Disabled, ClientToServer, ServerToClient,\
Bidirectional

```
        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.

```
        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.

```
        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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableZOrder (bool)

Specifies if the 'Enable Z-Order' option is enabled or disabled.\
(Experimental)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SessionAction ([SessionAction](../types/sessionaction))

Session Action

Possible values: Disconnect, Logoff

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PerformAction ([PerformAction](../types/performaction))

Perform Action

Possible values: DoNothing, Shutdown, Suspend, Delete, Restart,\
Unassign, Recreate

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PerformActionAfterSec (uint)

Perform action after (in seconds)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PrinterNameFormat

([PrnNameFormat](../types/prnnameformat))\
Printer Name Format

Possible values: PrnFormat\_PRN\_CMP\_SES, PrnFormat\_SES\_CMP\_PRN,\
PrnFormat\_PRN\_REDSES

```
        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.

```
        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.

```
        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 documentation. 
```

## INPUTS

-none-

## OUTPUTS

-none-

## EXAMPLES

\*\*---------- EXAMPLE 1 ----------

Set-RASAVDDefaultSettings -SiteId 1 -DefObjType\
AVDSingleSessionDefaultSettings -DisconnectActiveSessionAfter 10

Modifies the default value of the DisconnectActiveSessionAfter property\
for the specified site.

## RELATED LINKS

* [Get-RASAVDDefaultSettings](get-rasavddefaultsettings)
