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 is not built on .NET Core, so it cannot be run on macOS, Linux, Azure Cloud Shell, and wherever PowerShell Core 6.x or PowerShell Core 7.0 are supported.


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.


If you are using a previous version of the PowerShell module, you can update to the latest version by running the following command:

Update-Module -Name Microsoft.RDInfra.RDPowerShell

This will result in a side-by-side installation. If you would prefer to have only one version installed on the system, uninstall the module then re-install.