PowerShell Logo Small

Update-RDVirtualDesktopCollection



This is the built-in help made by Microsoft for the command 'Update-RDVirtualDesktopCollection', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Associates a virtual desktop collection with a new virtual desktop template.

SYNTAX


Update-RDVirtualDesktopCollection [-CollectionName] <String> [-ConnectionBroker <String>] [-DisableVirtualDesktopRollback] [-Force] [-VirtualDesktopPasswordAge <Int32>]
-VirtualDesktopTemplateHostServer <String> -VirtualDesktopTemplateName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Update-RDVirtualDesktopCollection [-CollectionName] <String> [-ConnectionBroker <String>] [-DisableVirtualDesktopRollback] [-Force] [-VirtualDesktopPasswordAge <Int32>]
-ForceLogoffTime <DateTime> -VirtualDesktopTemplateHostServer <String> -VirtualDesktopTemplateName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Update-RDVirtualDesktopCollection [-CollectionName] <String> [-ConnectionBroker <String>] [-DisableVirtualDesktopRollback] [-Force] [-VirtualDesktopPasswordAge <Int32>]
-ForceLogoffTime <DateTime> -StartTime <DateTime> -VirtualDesktopTemplateHostServer <String> -VirtualDesktopTemplateName <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Update-RDVirtualDesktopCollection cmdlet associates an existing virtual desktop collection with a new virtual desktop template.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=294275
Get-RDVirtualDesktopCollection
New-RDVirtualDesktopCollection
Remove-RDVirtualDesktopCollection

REMARKS

<

Examples


Example 1: Update a virtual desktop collection

PS C:\>Update-RDVirtualDesktopCollection -CollectionName "Virtual Desktop pool" VirtualDesktopTemplateName "RDS-Template" -VirtualDesktopTemplateHostServer
"rdvh-1.contoso.com" -ForceLogoffTime 12:00am -DisableVirtualDesktopRollback -VirtualDesktopPasswordAge 31 -ConnectionBroker "rdcb.contoso.com"



This command updates the virtual desktop collection named "Virtual Desktop pool" with the virtual desktop template named "RDS-Template" on the host server named
"rdvh-1.contoso.com".

The command specifies that the server ends the session if the update operation is still running at 12:00am. The command disables the rollback of a virtual desktop deployment
and specifies that the server forces a password update for the computer account for a virtual desktop after 31 days.