Automate things with PowerShell is great – Today we will see checking and enabling Remote desktop with PowerShell. This is correct need is the root of invention, whenever I get some work I always look to create some script which can save my time.

This time I was working on Server Decommission Project and there are lots of tasks which I need to perform in large numbers of server.

I looked for a script which can help me and you, so first script which I am sharing that is for checking remote desktop is enabled on servers.

 

For this above script you would require a file computerlist.txt – which will contain the list of servers on which you want to check.  It’s working …

I have see some other commands which you can also use for same work – to check remote desktop from PowerShell remotely to other servers as well

 

Now lets look upon some scripts to enable the remote desktop with powershell

So in this below powershell script we are changing the registry value to enable and disable the Remote Desktop with PowerShell which we all are aware and you might have done that manually in the past…

I would also like to hear back from you and let me know did it worked for you? Let me know more queries which may help me to move and share more things for you all.

newsletter-aik

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!