Hi Brett,
Here is VBS script that would enable Remote Desktop on remote PC.
********************
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colTSSettings =
objWMIService.InstancesOf("Win32_TerminalServiceSe tting")
For Each colTS in colTSSettings
colTS.SetAllowTSConnections(1)
Next
********************
Replace "." in strComputer with name of computer where you want to enable
RDP. If you do not, the script will try to enable RDP on local PC where the
script is run.
Note: if remote PC has personal firewall enabled, the script will not work.
I also posted it here
http://freeweb.siol.net/mpihler/rdp.txt
--
Mike
Microsoft MVP - Windows Security
"Brett Evanson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Everyone-
> I was wondering if there is a command to enable remote desktop on a remote
> machine with some kind of ssh command. Obviously this might have some
> security implications, but I just want to know if it can be done and how
> to
> prevent it from happening.
>
> Brett
>
>