description | external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|---|
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell. |
RemoteDesktop.psm1-help.xml |
RDMgmt |
12/20/2016 |
2.0.0 |
New-RDVirtualDesktopCollection |
Creates a virtual desktop collection.
New-RDVirtualDesktopCollection [-PooledManaged] [-CollectionName] <String> [-Description <String>]
[-UserGroups <String[]>] [-ConnectionBroker <String>] -VirtualDesktopTemplateName <String>
-VirtualDesktopTemplateHostServer <String> -VirtualDesktopAllocation <Hashtable>
-StorageType <VirtualDesktopStorageType> [-CentralStoragePath <String>] [-LocalStoragePath <String>]
[-VirtualDesktopTemplateStoragePath <String>] [-Domain <String>] [-OU <String>]
[-CustomSysprepUnattendFilePath <String>] [-VirtualDesktopNamePrefix <String>]
[-DisableVirtualDesktopRollback] [-VirtualDesktopPasswordAge <Int32>] [-UserProfileDiskPath <String>]
[-MaxUserProfileDiskSizeGB <Int32>] [-Force] [<CommonParameters>]
New-RDVirtualDesktopCollection [-PersonalManaged] [-CollectionName] <String> [-Description <String>]
[-UserGroups <String[]>] [-ConnectionBroker <String>] -VirtualDesktopTemplateName <String>
-VirtualDesktopTemplateHostServer <String> -VirtualDesktopAllocation <Hashtable>
-StorageType <VirtualDesktopStorageType> [-CentralStoragePath <String>] [-LocalStoragePath <String>]
[-Domain <String>] [-OU <String>] [-CustomSysprepUnattendFilePath <String>]
[-VirtualDesktopNamePrefix <String>] [-AutoAssignPersonalVirtualDesktopToUser] [-GrantAdministrativePrivilege]
[-Force] [<CommonParameters>]
New-RDVirtualDesktopCollection [-PooledUnmanaged] [-CollectionName] <String> [-Description <String>]
[-UserGroups <String[]>] [-ConnectionBroker <String>] -VirtualDesktopName <String[]>
[-UserProfileDiskPath <String>] [-MaxUserProfileDiskSizeGB <Int32>] [-Force] [<CommonParameters>]
New-RDVirtualDesktopCollection [-PersonalUnmanaged] [-CollectionName] <String> [-Description <String>]
[-UserGroups <String[]>] [-ConnectionBroker <String>] -VirtualDesktopName <String[]>
[-AutoAssignPersonalVirtualDesktopToUser] [-GrantAdministrativePrivilege] [-Force] [<CommonParameters>]
The New-RDVirtualDesktopCollection cmdlet creates a virtual desktop collection.
PS C:\> New-RDVirtualDesktopCollection -CollectionName "Virtual Desktop Pool" -PooledManaged -VirtualDesktopTemplateName "RDS-Template" -VirtualDesktopTemplateHostServer "rdvh-1.contoso.com" -VirtualDesktopAllocation @{"RDS-WKS-A26.contoso.com"=1;" RDS-WKS-A27.contoso.com"=2} -StorageType LocalStorage -Description "PowerShell created Virtual Desktop Pool" -UserGroups "contoso\domain users" -ConnectionBroker "rdcb.contoso.com" -VirtualDesktopNamePrefix "RDS-WKS-A" -VirtualDesktopPasswordAge 31 -UserProfileDiskPath "\\RDS-WKS-A26.contoso.com\uvhd" -MaxUserProfileDiskSizeGB 10
This command creates a managed pooled virtual desktop collection and specifies configuration settings for the virtual desktop collection. The command specifies the LocalStorage type for the collection, and specifies the virtual desktop template named RDS-Template for the collection.
Indicates that the server automatically associates virtual desktops with user accounts when you create a new personal virtual desktop collection.
Type: SwitchParameter
Parameter Sets: PersonalMgd, PersonalUnmgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the path to a central storage location for virtual desktops in the collection. Use the StorageType parameter to specify the type of storage (local or centralized) for the collection.
Type: String
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the name of a personal virtual desktop collection.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the Remote Desktop Connection Broker (RD Connection Broker) server for a remote desktop deployment. If you do not specify a value, the cmdlet uses the fully qualified domain name (FQDN) of the local computer.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Provides the path to the .xml file that contains unattended installation settings for the remote desktop collection.
Type: String
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies a descriptive name for the unattended installation file.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the server prevents rollback of a virtual desktop deployment.
Type: SwitchParameter
Parameter Sets: PooledMgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the fully qualified domain name (FQDN) of the Active Directory domain to which you add the virtual desktops.
Type: String
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Forces the command to run without asking for user confirmation.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the server grants administrative privileges to the user account that the server assigns to a given personal virtual desktop. This parameter applies only to personal virtual desktop collections.
Type: SwitchParameter
Parameter Sets: PersonalMgd, PersonalUnmgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the path to a local storage location for virtual desktops. Use the StorageType parameter to specify the type of storage for this collection.
Type: String
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the maximum size (in gigabytes) for the user profile disk.
Type: Int32
Parameter Sets: PooledMgd, PooledUnmgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the name of the Active Directory Domain Services (AD DS) organizational unit (OU) for the virtual desktop collection. OU names must be unique within a forest.
Type: String
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the server creates a new managed personal virtual desktop collection. New virtual desktops that you add to this collection are based on the template that you specify in the VirtualDesktopTemplateName parameter.
Type: SwitchParameter
Parameter Sets: PersonalMgd
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the server creates a new unmanaged personal virtual desktop collection. New virtual desktops that you add to this collection are based on the template that you specify in the VirtualDesktopTemplateName parameter.
Type: SwitchParameter
Parameter Sets: PersonalUnmgd
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the server creates a new managed pooled virtual desktop collection. New virtual desktops that you add to this collection are based on the template that you specify in the VirtualDesktopTemplateName parameter.
Type: SwitchParameter
Parameter Sets: PooledMgd
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the server creates a new unmanaged pooled virtual desktop collection. New virtual desktops that you add to this collection are based on the template that you specify in the VirtualDesktopTemplateName parameter.
Type: SwitchParameter
Parameter Sets: PooledUnmgd
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the storage type for the collection. The acceptable values for this parameter are:
- LocalStorage
- CentralSmbShareStorage
- CentralSanStorage
If you specify LocalStorage, specify a value for the LocalStoragePath parameter. If you specify CentralSMBSharedStorage or CentralSanStorage, specify a value for the CentralStorage parameter.
Type: VirtualDesktopStorageType
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Accepted values: LocalStorage, CentralSmbShareStorage, CentralSanStorage
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies an array of user groups that are authorized to connect to the collection.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the path to the user profile disk for the collection.
Type: String
Parameter Sets: PooledMgd, PooledUnmgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies a collection of values (key/value pair) that allocate virtual desktops to Remote Desktop Virtualization (RD Virtualization Host) servers.
Type: Hashtable
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the name of a virtual desktop to add to an unmanaged collection.
Type: String[]
Parameter Sets: PooledUnmgd, PersonalUnmgd
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies a prefix for virtual desktop names that Remote Desktop Services automatically creates in a managed virtual desktop collection.
Type: String
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the number of days after which the server enforces a password update.
Type: Int32
Parameter Sets: PooledMgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the fully qualified domain name (FQDN) of the server where the virtual desktop template associated with the collection is stored.
Type: String
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies a descriptive name for the virtual desktop template.
Type: String
Parameter Sets: PooledMgd, PersonalMgd
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the path where the parent disk for virtual machines in the collection is stored.
Type: String
Parameter Sets: PooledMgd
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Get-RDVirtualDesktopCollection