Remote Desktop Cmdlets in Windows PowerShell
Windows PowerShell® es un lenguaje de scripting y shell de línea de comandos basado en tareas diseñado especialmente para la administración del sistema. En este tema de referencia para los profesionales de tecnologías de la información (TI) ofrece ayuda en el uso de los cmdlets de Windows PowerShell para crear scripts y automatizar las tareas.
Remote Desktop Services Cmdlets
This reference provides cmdlet descriptions and syntax for all Remote Desktop Service-specific cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.
Cmdlet | Description |
---|---|
Adds a server to a remote desktop deployment. |
|
Adds one or more Remote Desktop Session Host (RD Session Host) servers to a session collection. |
|
Adds one or more virtual desktops to an existing virtual desktop collection. |
|
Prevents the Remote Desktop Connection Broker (RD Connection Broker) server from reusing existing Active Directory (AD) computer accounts when creating new virtual machines from a template in a managed virtual desktop collection. |
|
Disconnects a specified user from a session running on the remote server. |
|
Configures the Remote Desktop Connection Broker (RD Connection Broker) server to reuse existing Active Directory (AD) computer accounts for pooled virtual desktops created from a template in a managed collection. |
|
Saves the current associations between users and personal virtual personal desktops to a delimited text file. |
|
Gets a list of applications that can be published from the collection specified in the CollectionName parameter. |
|
Gets the certificate associated with a Remote Desktop Services role. |
|
Retrieves the high availability settings for the Remote Desktop Connection Broker (RD Connection Broker) server. |
|
Gets configuration settings for the Remote Desktop Gateway (RD Gateway) for the remote desktop deployment. |
|
Displays the file extensions associated with a given RemoteApp program. |
|
Gets the current settings for the RD Licensing server and licensing mode of the remote desktop deployment. |
|
Gets a list of personal virtual desktops and associated user accounts. |
|
Gets patch schedule details for the specified personal virtual desktop. |
|
Gets a list of RemoteApp programs for a given collection or for the remote desktop deployment. |
|
Gets a list of published remote desktops in the collection. |
|
Gets a list of servers in a remote desktop deployment. |
|
Gets a list of session collections in the remote desktop deployment. |
|
Gets configuration details for the specified session collection. |
|
Gets a list of Remote Desktop Session Host (RD Session Host) servers in a session collection. |
|
Gets a list of all user sessions in a collection, or in the remote desktop deployment. |
|
Gets a list of virtual desktops in the remote desktop deployment. |
|
Gets a list of existing virtual desktops in a remote desktop deployment. |
|
Gets configuration details for the specified virtual desktop collection. |
|
Gets status information for the job run most recently on the specified virtual desktop collection. |
|
Gets the number of virtual desktops that can be created in parallel on the specified Remote Desktop Virtualization Host (RD Virtualization Host) servers. |
|
Gets the export path setting of the virtual desktop template used for the virtual-machine based desktop deployment. |
|
Gets the workspace name for a remote desktop deployment. |
|
Grants access to the Remote Desktop Connection Broker (RD Connection Broker) server for one or more organizational units (OUs) in a given domain of the Active Directory Domain Services (AD DS) server. |
|
Creates associations between user accounts and personal virtual desktops by importing the settings specified in a delimited text file. |
|
Ends the specified session, closing all running applications. |
|
Moves a virtual desktop to a new Remote Desktop Virtualization Host (RD Virtualization Host) server. |
|
Creates a new certificate for a Remote Desktop Services role. |
|
Creates a new patch schedule for a personal virtual desktop. |
|
Publishes a RemoteApp program to the remote desktop deployment. |
|
Creates a new session collection from the specified Remote Desktop Session Host (RD Session Host) servers. |
|
Installs the required role services for a Virtual Desktop Infrastructure (VDI) to create a Remote Desktop Services session-based desktop deployment. |
|
Creates a new virtual desktop collection. |
|
Installs required role services for Virtual Desktop Infrastructure (VDI) to create a virtual machine-based desktop deployment. |
|
Removes the association between a personal virtual desktop and a user. |
|
Deletes an existing patch schedule from the specified personal virtual desktop. |
|
Removes a RemoteApp program from a remote desktop deployment. |
|
Removes the specified server from a remote desktop deployment. |
|
Removes a session collection from the remote desktop deployment. |
|
Removes one or more Remote Desktop Session Host (RD Session Host) servers from a session collection. |
|
Deletes the specified virtual desktop collection from a remote desktop deployment. |
|
Removes a virtual desktop from the specified virtual desktop collection. |
|
Sends a system message to the specified user session. |
|
Sets the active Remote Desktop Connection Broker (RD Connection Broker) server, or management server, in a remote desktop deployment. |
|
Specifies configuration details of a certificate for use with a Remote Desktop Services role. |
|
Specifies high availability settings for the Remote Desktop Connection Broker (RD Connection Broker) server. |
|
Configures the database connection string to the SQL Server database that you have set up for high availability. |
|
Specifies settings for the Remote Desktop Gateway (RD Gateway) server for the remote desktop deployment. |
|
Modifies the file type association of a RemoteApp program in the remote desktop deployment. |
|
Specifies settings for the Remote Desktop Licensing (RD Licensing) server and licensing mode of the remote desktop deployment. |
|
Creates an association between a personal virtual desktop and a user account. |
|
Configures patch schedule settings for a personal virtual desktop with an existing patch schedule. |
|
Specifies configuration details for a RemoteApp program running in the remote desktop deployment. |
|
Publishes a remote desktop to the specified collection. |
|
Specifies configuration options for an existing session collection. |
|
Configures one or more Remote Desktop Session Host (RD Session Host) servers in a session collection. |
|
Specifies configuration details for an existing virtual desktop collection. |
|
Specifies the number of virtual desktops that can be created in parallel on the specified Remote Desktop Virtualization Host (RD Virtualization Host) servers. |
|
Configures the path to use when exporting the virtual desktop templates for the virtual machine-based desktop deployment. |
|
Assigns a workspace name for a remote desktop deployment. |
|
Forcibly ends a job that is currently running, or is scheduled to run, on the specified virtual desktop collection. |
|
Verifies that the Remote Desktop Connection Broker (RD Connection Broker) server has access to the Active Directory Domain Services (AD DS) organizational unit (OU). |
|
Detects whether the Remote Desktop Connection Broker (RD Connection Broker) server is configured to reuse existing Active Directory (AD) computer accounts when creating new virtual machines from a template in a managed virtual desktop collection. |
|
Associates an existing virtual desktop collection with a new virtual desktop template. |
Nota
To list all the cmdlets that are available, use the Get-Command –Module RemoteDesktopServices
cmdlet.
Para conocer más información o la sintaxis de cualquiera de los cmdlets, use el cmdlet Get-Help
<nombre de cmdlet>, donde <nombre de cmdlet> es el nombre del cmdlet del que quiere información. Para obtener información más detallada, puede ejecutar cualquiera de los siguientes cmdlets:
● Get-Help
<nombre de cmdlet> -Detailed
● Get-Help
<nombre de cmdlet> -Examples
● Get-Help
<nombre de cmdlet> -Full