Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você pode tentar alterar os diretórios.
Aplica-se a: Windows 10, Windows PowerShell 5.0, Windows Server Technical Preview
O Windows PowerShell® é um shell de linha de comando baseado em tarefa e linguagem de script criado especialmente para a administração do sistema. Esse tópico de referência para o profissional de TI fornece assistência na utilização de cmdlets do Windows PowerShel para criar scripts e automatizar tarefas.
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. |
|
Exports the current map of personal session desktops to users. |
|
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 session desktop assignments. |
|
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 number of idle virtual desktops on hosts. |
|
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. |
|
Imports a map of personal session desktops to users. |
|
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 session desktop assignment and a user. |
|
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. |
|
Sets a DNS name that clients use to connect to a Remote Desktop deployment. |
|
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. |
|
Associates a personal session desktop assignment with a user. |
|
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. |
|
Sets the maximum number of idle virtual desktops on 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. |
Observação
To list all the cmdlets that are available, use the Get-Command –Module RemoteDesktopServices
cmdlet.
Para obter mais informações sobre, ou para obter a sintaxe de alguns dos cmdlets, use o Get-Help
<nome do cmdlet> cmdlet, onde <cmdlet name> é o nome do cmdlet que você deseja pesquisar. Para obter mais informações detalhadas, você pode executar qualquer um dos seguintes cmdlets:
● Get-Help
<nome do cmdlet> -Detalhada
● Get-Help
<nome do cmdlet> -Exemplos
● Get-Help
<nome do cmdlet> -Total