Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH and NT Services
Message
 
 
To
13/12/2000 12:13:33
Josh Fedke
National Financial Corporation
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00452847
Message ID:
00452954
Views:
22
>Can you tell me what parameters I should change and to what values? I'm getting OLE error code 0x80005000 "Unknown COM status Code."
>
>I did this exact same statement except for "service" which I replaced with the name of the service I was trying to start.
>oservice = GetObject("WinNT://MyMachine/LanManServer,service")
>
>-Josh

Change LanManServer to the name of the service. The last service is used by GetObject and ADSI to filter the object it looks at. For example, if I want to start the PC Anywhere Host service on my machine, it would be:
oservice = GetObject("WinNT://MyMachine/awhost32,service")
oservice.Start
Also, this presupposes you have ADSI installed. If not, check out the MS web site and download it. Do a search on "Active Directory Service Interface".

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform