Enable RemoteDesktop with PowerShell

enable-remotedesktop-with-powershell

From time to time I visit my public or private git repository knowing that I’ve faced and solved that problem before, knowing that the solution was tested and work as expected.

In this case, I had a script that was a oneliner ( nothing wrong with), it but to meet the goal I needed to add another 2 lines, so to make it more reusable by other user and still keep it readable and flexible I’ve refactored the script and wrote this article. As mentioned in the title the subject is RDP and Powershell.

This is, without any doubt, a 101 subject for every system administrator.

Continue reading “Enable RemoteDesktop with PowerShell”

How to Query and Log Off Remote Desktop Sessions with Powershell

how-to-query-and-log-off-remote-desktop-sessions-with-powershell

The Remote Desktop Procotol¬†(RDP) is still strong and it’s not going away anytime soon, indeed there are companies like CITRIX that have built part of their success creating robust management for it.
As you can imagine, there a lot of ways to manage RDP according to the type of implementations or tools involved, so some corner cases will not be cover in this article. There are also tools like gateways that will provide a central management point for all sessions, but let’s assume that these tools are not available to you or not part of your infrastructure design. Continue reading “How to Query and Log Off Remote Desktop Sessions with Powershell”