Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


0x80041010 error on Win32_PingStatus

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> 0x80041010 error on Win32_PingStatus
  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 >>
 0x80041010 error on Win32_PingStatus - 2/4/2008 9:33:20 PM   
  pscript

 

Posts: 6
Score: 0
Joined: 1/28/2008
Status: offline
Hi everybody,

I am getting a syntax error when executing a ping on a Windows2000 server.
The error is:
ping.vbs (2, 1) (null): 0x80041010
which is line "set objping" in the script below:

      

Even when trying with root/cimv2 method I get this error.
That's strange.I use his method in other scripts which do not make the error.
I guess it wll be somewhat as WMI corruption.

Any ideas?

Regards,
Peter

< Message edited by pscript -- 2/4/2008 9:47:14 PM >
 
 
Post #: 1
 
 RE: 0x80041010 error on Win32_PingStatus - 2/4/2008 10:18:25 PM   
  pscript

 

Posts: 6
Score: 0
Joined: 1/28/2008
Status: offline
I resolved the problem by using the following code instead:


      

Peter

(in reply to pscript)
 
 
Post #: 2
 
 RE: 0x80041010 error on Win32_PingStatus - 2/4/2008 11:51:08 PM   
  Country73


Posts: 732
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
Along the lines of your first post; this is what I normally use:


      

To use just call the function like this:

      
Just in case you are interested...

(in reply to pscript)
 
 
Post #: 3
 
 RE: 0x80041010 error on Win32_PingStatus - 2/5/2008 5:47:58 AM   
  dm_4ever


Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Win32_Ping can only be used FROM WinXP/Win2k3 or better...the destination OS does not matter.

< Message edited by dm_4ever -- 2/5/2008 6:09:40 AM >


_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to pscript)
 
 
Post #: 4
 
 
 
  

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 >> 0x80041010 error on Win32_PingStatus 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