Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Dell Battery Recall

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,38364
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Dell Battery Recall
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Dell Battery Recall - 10/4/2006 8:23:41 PM   
  gdewrance


Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
Can anyone see why this script does not log.
I would also like to modify this so it does not echo the results but logs them to a network share.
I have tried different things but just keep going in circles.


      

< Message edited by Snipah -- 10/4/2006 9:36:54 PM >
 
 
Post #: 1
 
 RE: Dell Battery Recall - 10/4/2006 10:01:40 PM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
change the following:

Line 16: bBatch = True
Line 67: Set fso = CreateObject("Scripting.FileSystemObject")


comment the next line out:

Line 57: If bBatch Then
Line 66: End If




_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to gdewrance)
 
 
Post #: 2
 
 RE: Dell Battery Recall - 10/4/2006 10:35:08 PM   
  gdewrance


Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
Thanks.
I get an error
Line67, Char1
Error: ActiveX component can't create object: 'winmgmts://MACHINEnAME'
CODE 800A01AD

(in reply to Snipah)
 
 
Post #: 3
 
 RE: Dell Battery Recall - 10/4/2006 10:37:22 PM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
quote:

MACHINEnAME


strComputer = MACHINEnAME    in your case....if that is not your PCname, you must alter it...

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to gdewrance)
 
 
Post #: 4
 
 RE: Dell Battery Recall - 10/4/2006 10:54:12 PM   
  gdewrance


Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
oops I'm the ****
changed the wrong line
I changed GetObject("winmgmts://"& strComputer) to Create

Thanks
Works now

< Message edited by gdewrance -- 10/4/2006 11:00:20 PM >

(in reply to Snipah)
 
 
Post #: 5
 
 RE: Dell Battery Recall - 10/4/2006 11:49:42 PM   
  gdewrance


Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
Final Script for whoever needs it
This will run through a logon script


      


//EDIT: added code TAGS

< Message edited by Snipah -- 10/5/2006 12:37:26 AM >

(in reply to gdewrance)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Dell Battery Recall Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts