Enabling RDP Remotely

So I was just fucking about with my blog while watching House of cards, and trying to remember how I mangled word press and wtf all these shell scripts were… so now that I’ve done all that, I feel I need to post something, anything , before I hit the 2 years between posts limit :-)

So, here’s a tip for enabling RDP remotely using WMIC!

wmic /node:<IP> /user:administrator /password:password path  Win32_TerminalServiceSetting where AllowTSConnections=”0″ call SetAllowTSConnections “1″