# Set-RASVDIDefaultSettings

## NAME

Set-RASVDIDefaultSettings

## SYNOPSIS

Modifies default settings used to configure a host VM.

## SYNTAX

**Set-RASVDIDefaultSettings** \[[AllowRemoteExec](#allowremoteexec-string) *(bool)*] \[-[AllowURLAndMailRedirection](#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[-[AssignmentType](#AssignmentType) {User | Device}] \[[AutoRemovePersIfNotUsedAfterSec](#autoremovepersifnotusedaftersec-string) *(uint)*] \[[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}] \[-[GroupType](#GroupType) {Administrators | RemoteDesktopUsers | RDUsers}] \[[IsUsersGrantedRDPermissions](#isusersgrantedrdpermissions-string) *(bool)*] \[[LogoffDisconnectedSessionAfter](#logoffdisconnectedsessionafter-string) *(uint)*] \[-[ManageRDPTransportProtocol](#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[-[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}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Modifies default settings used to configure a host VM.

For each setting, the cmdlet has a corresponding input parameter. To modify a setting, specify a parameter and its value.

Default settings are defined on a site level and are applied to a host VM when it is initially added to a site.

## PARAMETERS

## SiteId (uint)

Site ID.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AutoRemovePersIfNotUsedAfterSec (uint)

Remove assigned persistent desktop from user if not used (in seconds).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AssignmentType

([HostAssignmentType](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/hostassignmenttype)) Set Assignment Type

Possible values: User, Device

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Technology ([UserProfileTech](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/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
```

## SessionAction ([SessionAction](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/sessionaction))

Session change state.

Possible values: Disconnect, Logoff

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PerformAction ([PerformAction](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/performaction))

Perform action on session change.

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

## IsUsersGrantedRDPermissions (bool)

Grant users RD permission.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## GroupType ([UserGroupType](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/usergrouptype))

Group type that will get RD premission.

Possible values: Administrators, RemoteDesktopUsers, RDUsers

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

## AllowURLAndMailRedirection

([AllowURLAndMailRedirection](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/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
```

## DragAndDropMode

([DragAndDropModeValue](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/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
```

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

## ManageRDPTransportProtocol

([ManageRDPTransportProtocol](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/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
```

## FileTransferMode

([FileTransferControlMode](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/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
```

## PrinterNameFormat

([PrnNameFormat](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/prnnameformat)) Specifies the 'Printer Name Format' option. Accepted values: PrnFormat\_PRN\_CMP\_SES, PrnFormat\_SES\_CMP\_PRN, PrnFormat\_PRN\_REDSES.

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)

Enable or disable the 'Remove session number from printer name' option.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RemoveClientNameFromPrinterName (bool)

Enable or disable the 'Remove client name from printer name' option.

```
        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-RASVDIDefaultSettings -ConnectionTimeoutSec 300

Modifies the default connection timeout.

## RELATED LINKS

* [Get-RASVDIDefaultSettings](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasvdidefaultsettings)
