Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: script terminates before here

HTVi
TV Discussion Newsgroups

script terminates before here
"joey" <joe[ at ]abc.com> 10/31/2008 4:28:24 AM
Set objUser = GetObject _
("LDAP://localhost:51008/xxxxxxxxxxxxxxxxxxxxxxxxxx")
objUser.Put "KeyValueString", "true"
objUser.SetInfo


'===================================================================================================================

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colServices = objWMIService.ExecQuery _
("Select * from Win32_Service Where Name = 'Service")
For each objService in colServices
objService.StopService()
Next


I want to restart a service after I input this keyvalue in ADAM in the same
script. But its terminates before it reaches strComputer"."

any idea?



Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen