Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


LastBootTime

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> LastBootTime
  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 >>
 LastBootTime - 3/4/2008 8:25:30 PM   
  Kapteinen

 

Posts: 9
Score: 0
Joined: 2/18/2008
Status: offline
Hi,
I'm running this script to determine the last boot time on the servers in my domain. (abt. 300 servers)

When running this script it outputs to an .xls.
My problem is that I have duplicate entries in the .xls, the inputlist does not.
The script does not always continue to the next line in the txt input file.

ex.

server1 ... 12.01.2008
server2.....14.01.2008
server3.....16.02.2008
server3.....16.02.2008
server3.....16.02.2008
server3.....16.02.2008
server3.....16.02.2008
server3.....16.02.2008
server4.....18.02.2008

If the server responds slowly, will it report it as an error and try again, but still write to the .xls?


      

any ideas?

Thanks!

Stian , Norway
 
 
Post #: 1
 
 RE: LastBootTime - 3/5/2008 1:44:29 AM   
  ebgreen


Posts: 4972
Score: 31
Joined: 7/12/2005
Status: online
Remove the On Error Resume Next and determine what error you are getting and code in a way to handle the error.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Kapteinen)
 
 
Post #: 2
 
 
 
  

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 >> LastBootTime 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