In this blog post, I will show you how to manage Remote Desktop Services (formally known as Terminal Services) using Microsoft PowerShell cmdlets.
Remote Desktop Services 2019
In my case, I have Remote Desktop Services farm running Windows Server 2019.
By default Windows, Server 2019 RDS Server comes with the PowerShell module installed.
To get started, I will start PowerShell using the “Run as Administrator” options.
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2019/08/081919_0517_HowtoManage1.png)
The name of the RDS PowerShell module is “remotedesktop“.
To view all the RDS cmdlets I use the command below.
Get-Command -Module remotedesktop
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2019/08/081919_0517_HowtoManage2.png)
To view all the RDS Servers in the farm, I will use the following cmdlet as seen below:
![](https://ntweekly-3e2e1f4957bdf35452c0-endpoint.azureedge.net/blobntweekly18036ad1fb/wp-content/uploads/2019/08/081919_0517_HowtoManage3.png)
If you need to view all users that are connected to the RDS farm, use the cmdlet below.
Get-Rdsession
In the cmdlet in the example below to view all the remote apps.
Get-RDremoteApp
Nice article. Additionally, one can also remotely access desktop services using tools like R-HUB remote support servers, Logmein etc. They work well.