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”

Active Directory User Account Lockout Troubleshooting

Active Directory is such an important service that in most organisations after being implemented becomes essential and at the same time suddenly transparent to the end-user.

In my humble opinion even nowadays learning the fundamentals of Active Directory is very important for most support / technical roles and it will be a valuable skill for at least another decade, cloud technologies, for instance, will not make those skills disappear overnight.

Regardless of the size of the organisation who needs to support the end-user needs to understand well how it works or know how to solve the most common issues, in this article we will touch again of a very simple problem to investigate such the AD Account Lockout.

Continue reading “Active Directory User Account Lockout Troubleshooting”

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 your infrastructure design. Continue reading “How to Query and Log Off Remote Desktop Sessions with Powershell”