In news:%(E-Mail Removed),
Miha Pihler <mihap-(E-Mail Removed)> made a post then I commented below
> Hi Martin,
>
> I don't know about GPO (I don't think there is one yet for RDP), but
> you can use this script to turn on RDP remotely or via startup scrip.
>
> *********************************
> 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 this "." (strComputer = ".") with name of remote computer
> (e.g. strComputer = "Mike").
>
> strComputer = "." means "this computer"
>
> I hope this helps,
>
> Mike
>
Nice script Mike. Thanks for posting that!
:-)
--
Regards,
Ace
Please direct all replies ONLY to the Microsoft public newsgroups
so all can benefit.
This posting is provided "AS-IS" with no warranties or guarantees
and confers no rights.
Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft Windows MVP - Windows Server - Directory Services
Security Is Like An Onion, It Has Layers
HAM AND EGGS: A day's work for a chicken;
A lifetime commitment for a pig.
--
=================================
|