Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > script terminates before here

Reply
Thread Tools Display Modes

script terminates before here

 
 
joey
Guest
Posts: n/a

 
      10-31-2008
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?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NDIS 6.0 test -- 2c_oidndisrequest.wsf script terminates abnormally abrahamlincolng@gmail.com Windows Vista Drivers 1 03-06-2008 01:38 PM
Backup script terminates with 0x40010004 error Richard@dt Windows Server 0 07-26-2006 09:33 AM
Startup Script Terminates with Event ID 1217 Gerhard Feige Active Directory 0 02-01-2006 07:18 AM
RPC service terminates emshighway Windows Update 0 09-04-2004 08:43 PM
Re: audio terminates by itself Stephen Harris Windows MSN Messenger 2 09-02-2004 02:55 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59