2007-10-23

Enable Remote Desktop Remotely

Categories: tech

Enable Remote Desktop


wmic /node:"computername.domain.local" /USER:"DOMAINuser" RDTOGGLE WHERE ServerName="computername" CALL SetAllowTSConnections 1

Disable Remote Desktop


wmic /node:"computername.domain.local" /USER:"DOMAINuser" RDTOGGLE WHERE ServerName="computername" CALL SetAllowTSConnections 0

Source

http://msgoodies.blogspot.com/2005/02/enable-remote-desktop-connections_08.html