If you do mean the client, you can deploy the MSI install via Active
Directory or WMI. If you mean activating the host on XP Pro boxes, that
can be done via WMI, policies, or a registry script. Some more details
about what you're trying to do and the environment, and I can probably
suggest details on how to do this without you getting out of your chair
(that's how I like to work myself).
--
Please respond in the newsgroup so everyone may benefit.
http://dev.remotenetworktechnology.com
----------
Subscribe to Microsoft's Security Bulletins:
http://www.microsoft.com/technet/security/bulletin/notify.asp
"Ray Meche" <NoS...@NoSpam.com> wrote in message
news:uxiIr1xXCHA.2540@tkmsftngp09...
"Alex K. Angelopoulos (MVP)" <a...@mvps.org> wrote in message
news:OwwYX8xXCHA.1668@tkmsftngp10...
Here's the scoop on the config - and I would absolutely love it if you
could confirm some details for me, since I haven't been able to try this
in a mass environment.
First, I have an applet which can be used locally on a system to do a
quick check on whether remote desktop or remote assistance is enabled:
http://dev.remotenetworktechnology.com/files/tsrdexaminer.zip
It does nothing exciting, but when you launch it it will pop up the
status of both, the listening ports, any local IP addresses, and the
hostname in a box.
What you are after is under the following key in the local registry:
"HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\"
The value of interest is a DWORD named:
"fDenyTSConnections"
Setting this flag to FALSE (0) should handle it for you.
Here's the problem: I cannot confirm that doing this programmatically
enables/disables RD. It MAY need a reboot to take effect after the
state change. Doing the registry edit in the GUI makes the chnage
instantly; doing it from script makes the change in the registry, but
the service does not start listening right away, so a "change and run"
script would require remotely reinitializing this somehow - probably
telling the service to re-read its settings, which I haven't looked into
yet.
Here's a VBScript function that does the state change, then returns a
result of "true if it succeeds and "false" if it doesn't. The reboot
test needs to be done... :-)
Function SetRdState(desiredState)
' Set to true to enable RD on XP Pro
' False to disable
' returns true if call succeeds, false on error
Dim Sh, key_TS, keyValue
SetRdState = False
Set Sh = CreateObject("WScript.Shell")
Key_TS = "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\"
keyValue = Clng(Abs(CInt(desiredState)))
WScript.Echo "Desired value is", keyValue
On Error Resume Next
Err.Clear
Sh.RegWrite Key_TS & "fDenyTSConnections", keyValue, "REG_DWORD"
If Err.Number = 0 Then SetRdState = True
Err.Clear
On Error Goto 0
End Function
--
Please respond in the newsgroup so everyone may benefit.
http://dev.remotenetworktechnology.com
----------
Subscribe to Microsoft's Security Bulletins:
http://www.microsoft.com/technet/security/bulletin/notify.asp
"Ray Meche" <NoS...@NoSpam.com> wrote in message
news:emfeGHyXCHA.2544@tkmsftngp11...
"Alex K. Angelopoulos (MVP)" <a...@mvps.org> wrote in message
news:u5J9QzyXCHA.1432@tkmsftngp10...
I have some WSH pieces for doing this, but they are all local and I
haven't grunged back through the WMI stuff which needs to be done to
correctly use StdRegProv for remote changes. The WMI route has another
annoyance, which is that it takes up to a minute to fail if the remote
system isn't up, so a "pull" install (which yours effectively is since
it waits for the machine to contact AD) is better anyway.
In news:#J8y6l1XCHA.2416@tkmsftngp09,
Ray Meche typed: