Written by:R Teachout11/17/2006 2:22 AM
strComputer = "."' Change The Line Above to be similar to the following commented line' strComputer = "192.168.x.x"' and it will enable on a remote machine instead of the local machineSet objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")Set colTSSettings = objWMIService.InstancesOf("Win32_TerminalServiceSetting")For Each colTS in colTSSettingscolTS.SetAllowTSConnections(1)Nextwscript.echo "Enabled on " & strComputerEnableRemoteDesktop.vbs.txt