Windows Virtual Desktop Cmdlets for Windows PowerShell

Welcome to the PowerShell reference for Windows Virtual Desktop. Here you will find the resources for PowerShell modules targeting Windows Virtual Desktop.

Supported PowerShell versions

  • Windows PowerShell 5.0 and 5.1


The Windows Virtual Desktop module can be downloaded and installed from the PowerShell Gallery by using the PowerShellGet module.

To quickly download and install the Windows Virtual Desktop PowerShell module, launch PowerShell as an administrator and run the following command:

Install-Module -Name Microsoft.RDInfra.RDPowerShell

You may also need to import the Windows Virtual Desktop PowerShell module before running cmdlets:

Import-Module -Name Microsoft.RDInfra.RDPowerShell

You can now run the Windows Virtual Desktop cmdlets. If you close your PowerShell session, you may need to re-import the module into any new session session.