> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasvdidefaultsettings.md).

# Set-RASVDIDefaultSettings

## SYNOPSIS

Modifies default settings used to configure a host VM.

## SYNTAX

```powershell
Set-RASVDIDefaultSettings [-AllowRemoteExec <bool>]
 [-AllowURLAndMailRedirection {Disabled | Enabled | EnabledWithAppRegistration}]
 [-AssignmentType {User | Device}] [-AutoRemovePersIfNotUsedAfterSec <uint>]
 [-DisconnectActiveSessionAfter <uint>]
 [-DragAndDropMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-DriveRedirectionFileCache {None | ReadAhead | ReadAheadWriteBehind}]
 [-EnableAppMonitoring <bool>] [-EnableDriveRedirectionCache <bool>] [-EnableZOrder <bool>]
 [-FileTransferAutoCloseWindow <bool>]
 [-FileTransferExistingFileMode {CreateNewFile | OverwriteExistingFile}]
 [-FileTransferLocation <string>] [-FileTransferLockLocation <bool>]
 [-FileTransferMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-FileTransferSuppressPromptForUploadFiles <bool>]
 [-GroupType {Administrators | RemoteDesktopUsers}] [-IsUsersGrantedRDPermissions <bool>]
 [-LogoffDisconnectedSessionAfter <uint>]
 [-ManageRDPTransportProtocol {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}]
 [-PerformAction {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}]
 [-PerformActionAfterSec <uint>]
 [-PrinterNameFormat {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}]
 [-RemoveClientNameFromPrinterName <bool>] [-RemoveSessionNumberFromPrinterName <bool>]
 [-SessionAction {Disconnect | Logoff}] [-SessionReadinessTimeout <uint>] [-SiteId <uint>]
 [-SupportShellURLNamespaceObjects <bool>]
 [-Technology {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [<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.

## EXAMPLES

### Example 1

```powershell
Set-RASVDIDefaultSettings -ConnectionTimeoutSec 300
```

Modifies the default connection timeout.

## PARAMETERS

### -SiteId

Site ID.

```yaml
Type: uint
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -AutoRemovePersIfNotUsedAfterSec

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

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AssignmentType

Set Assignment Type

Possible values: User, Device

Type reference: [HostAssignmentType](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/hostassignmenttype.md)

```yaml
Type: HostAssignmentType
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Technology

Specifies the 'User Profile Technology' value.

Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer

Type reference: [UserProfileTech](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/userprofiletech.md)

```yaml
Type: UserProfileTech
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SessionAction

Session change state.

Possible values: Disconnect, Logoff

Type reference: [SessionAction](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/sessionaction.md)

```yaml
Type: SessionAction
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PerformAction

Perform action on session change.

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

Type reference: [PerformAction](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/performaction.md)

```yaml
Type: PerformAction
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PerformActionAfterSec

Perform action after (in seconds).

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IsUsersGrantedRDPermissions

Grant users RD permission.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -GroupType

Group type that will get RD premission.

Possible values: Administrators, RemoteDesktopUsers

Type reference: [UserGroupType](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/usergrouptype.md)

```yaml
Type: UserGroupType
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DisconnectActiveSessionAfter

Disconnect active session after (in seconds). Accepted values: 20-1641600 seconds; 0 for 'Never'.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -LogoffDisconnectedSessionAfter

Logoff disconnected session after (in seconds). Accepted values: 20-1641600 seconds; 0 for 'Never'; 1 for 'Immediate'.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SessionReadinessTimeout

Session readiness timeout (in seconds). Accepted values: 20-3600 seconds.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AllowURLAndMailRedirection

Specifies the 'Allow Client URL/Mail Redirection'.

Possible values: Disabled, Enabled, EnabledWithAppRegistration

Type reference: [AllowURLAndMailRedirection](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/allowurlandmailredirection.md)

```yaml
Type: AllowURLAndMailRedirection
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SupportShellURLNamespaceObjects

Specifies if 'Support Shell URL Namespace Objects' option is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DragAndDropMode

Specifies the mode the drag and drop feature will operate.

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

Type reference: [DragAndDropModeValue](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/draganddropmodevalue.md)

```yaml
Type: DragAndDropModeValue
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AllowRemoteExec

Specifies if 'Allow 2XRemoteExec to send command to the client' option is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ManageRDPTransportProtocol

Manage RDP transport protocol.

Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

Type reference: [ManageRDPTransportProtocol](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/managerdptransportprotocol.md)

```yaml
Type: ManageRDPTransportProtocol
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableAppMonitoring

Specifies if 'Application Monitoring' option is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferMode

Specifies if File Transfer option is allowed and if yes, which directions are allowed.

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

Type reference: [FileTransferControlMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/filetransfercontrolmode.md)

```yaml
Type: FileTransferControlMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferLocation

Location where the File Transfer takes place, if and where it is allowed.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferLockLocation

Lock Location where the File Transfer takes place, if and where it is allowed.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferSuppressPromptForUploadFiles

Specifies if the 'Suppress prompt for upload files' option is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferExistingFileMode

Specifies the behavior when a file with the same name already exists in the destination folder during file transfer.

Possible values: CreateNewFile, OverwriteExistingFile

Type reference: [FileTransferExistingFileMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/filetransferexistingfilemode.md)

```yaml
Type: FileTransferExistingFileMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferAutoCloseWindow

Specifies if the "Close transfer window when complete" option is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableDriveRedirectionCache

Specifies if the 'Enable Drive Redirection Cache' option is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DriveRedirectionFileCache

Specifies the 'File Cache' mode to be used with drive redirection.

Possible values: None, ReadAhead, ReadAheadWriteBehind

Type reference: [DriveRedirectionFileCacheMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/driveredirectionfilecachemode.md)

```yaml
Type: DriveRedirectionFileCacheMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableZOrder

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PrinterNameFormat

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

Type reference: [PrnNameFormat](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/prnnameformat.md)

```yaml
Type: PrnNameFormat
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -RemoveSessionNumberFromPrinterName

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -RemoveClientNameFromPrinterName

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### 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](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### None

## RELATED LINKS

* [Get-RASVDIDefaultSettings](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasvdidefaultsettings.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasvdidefaultsettings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
