Enable RDP Remotely

Sometimes one forgets to enable RDP before one removed the keyboard and mouse and places the server somewhere else. Here is easiest way to enable it.

Enter-PSSession Server01
netsh firewall set service remotedesktop enable
netsh firewall set service remoteadmin enable

First line makes a remote connection.

Next two lines are executed on the remote machine.

Note: these only work if powershell remoting has been enabled on all servers, by default it is. For windows clients you will need to have run this command first on the remote machine (so you need to do this when you install).


For more information see:

Of course if you now have PS remoting working maybe you don’t need RDP 😉

0 0 votes
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments