script for W7 / to enable rdp and from older client


  1. Posts : 2
    w7
       #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
      My Computer


  2. Posts : 1,299
    Windows 7 Home Premium (64-bit) *** Windows XP SP3 (32-bit), OSX 10.6
       #2

    Hi gogiants1998,

    Here's an article about enabling Remote Desktop in Windows 7 & Vista. I hope it's helpful to you.

    Cheers,

    Walker
      My Computer


  3. Posts : 2
    w7
    Thread Starter
       #3

    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
      My Computer


  4. Posts : 1,426
    7 Pro
       #4

    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
    change strComputer="." to whatever machine you're trying to enable it on. "." is local machine.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:44.
Find Us