
July 1st, 2004, 11:01 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Remote Assistance
I am trying to find out how to enable the service for Remote Assistance in WinXp through a WSH script.
I have the following code that will start a service:
Code:
strComputer = InputBox("Computer to connect to?")
strService = InputBox("Exact name of service to start?")
strWMIMoniker = "winmgmts:!//" & strComputer
strQuery = "select * from Win32_Service where Name='" & strService & "'"
For Each wmiWin32Service in GetObject(strWMIMoniker).ExecQuery(strQuery)
wmiWin32Service.StartService()
Next
I have tested this code with the Messenger service and it appears to work. My problem is that I don't know what service controls Remote Assistance. The closest I've seend is Remote Desktop Help Session Manager which has one dependency - the Remote Proceedure Call. I tried to turn this service on with the script and it doesn't work. Can anyone tell me what I am doing wrong and point me in the right direction.
Thanks,
JRF2k
|