Tuesday, August 25, 2015

Enable Remote Desktop from command line or SSH

Found this recently, and its very useful if you have SSH/CMD access to a box, but forgot to enable Remote Desktop.

C:\>netsh firewall set service remoteadmin enable
C:\>netsh firewall set service remotedesktop enable

Tested in Windows 7, but resulted in a deprecated message. Still worked though, so probably ok for now. Windows 10 users might need something else.

Original post:

http://superuser.com/questions/181242/enabling-rdp-or-installing-a-vnc-server-on-windows-7-from-the-command-line

No comments: