New
#1
script for W7 / to enable rdp and from older client
Is there a script to enable rdp on w7 machines and also to allow older os's like wxp to rdp to w7 machines?
thanks
Is there a script to enable rdp on w7 machines and also to allow older os's like wxp to rdp to w7 machines?
thanks
Hello
Yes, I knew about that. I am looking for a way to do it remotely meaning with a script, batch file etc that I could run on target desktops W7 OS and enable it.
thanks
change strComputer="." to whatever machine you're trying to enable it on. "." is local machine.Code:Const ENABLE_CONNECTIONS = 1 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_TerminalServiceSetting") For Each objItem in colItems errResult = objItem.SetAllowTSConnections(ENABLE_CONNECTIONS) Next