Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Get Dell Hardware Info from WMI

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Get Dell Hardware Info from WMI
  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 >>
 Get Dell Hardware Info from WMI - 8/22/2007 10:29:08 PM   
  turranx


Posts: 38
Score: 0
Joined: 2/7/2006
Status: offline
I struggled for quite a while trying to figure out how to extract hardware information from my Dell servers. Searching the Dell Forums revealed that a lot of people were looking to do the same thing. Answers were far and few between; when they did come, forum patrons were pushed towards using OpenManage Command Line Interface (of which I can't really get excited about).

After a couple hours with my nose inside WMI, I present to you my solution:



      



Big thanks to Marcin Policht who showed me how to program with WMI in ways Microsoft couldn't show me. http://www.serverwatch.com/tutorials/article.php/1548421

This was tested against a PowerEdge 1750 Server running Windows Server 2003 SP2 x86. OpenManage Server Administrator 5.1.0 was installed. The script was run from a Windows Vista Ultimate x32 workstation. Both machines are in the same domain. I used my Domain Admin account to run the script.

I received no errors during the running of the code, but you might have an extra line break or other formatting error to fix before it will run right on your workstation. If you have comments, questions, or think you found a bug, lemee know here.

_____________________________

Microsoft Windows 2000 Scripting Guide - The best book for newbie scripters
http://www.myspace.com/Evil__Overlord
 
 
Post #: 1
 
 RE: Get Dell Hardware Info from WMI - 8/22/2007 10:30:03 PM   
  turranx


Posts: 38
Score: 0
Joined: 2/7/2006
Status: offline
And here is the output of the Sub:


      

_____________________________

Microsoft Windows 2000 Scripting Guide - The best book for newbie scripters
http://www.myspace.com/Evil__Overlord

(in reply to turranx)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Get Dell Hardware Info from WMI 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