0 pts.
 NIC info via script!!!
Hiya all, I have made a script (Copy and paste from microsoft, then tweak!!!!) to give me certain PC specs, and want to know how to add the NIC information to it, the script gvies me PC name, manufacturer, CPU make, model, speed, RAM, VGA adapter, and i just wanna add the NIC to it. If i can do this, my new Audit will then take me 1 days as opposed to 1 week!!! Any help'd be great, if you need the script, just ask me, it's a compilation, and not domain specific so i can post it if needed. Cheers, Carl.

Software/Hardware used:
ASKED: February 27, 2006  11:32 AM
UPDATED: May 29, 2008  10:30 AM

Answer Wiki:
Could you please post the script? <a href="http://itknowledgeexchange.techtarget.com/profile/Alessandro.panzetta">Alessandro Panzetta</a> Here is the solution: <pre>Set objWMIService = GetObject("winmgmts:\.rootcimv2") Set IPConfigSet = objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") For Each IPConfig in IPConfigSet If Not IsNull(IPConfig.IPAddress) Then For i=LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress) WScript.Echo IPConfig.Description(i) Next End If Next </pre>
Last Wiki Answer Submitted:  May 29, 2008  10:30 am  by  KProcopio   0 pts.
All Answer Wiki Contributors:  KProcopio   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

cheers for that, just checked and works!!!

Will tweak it to loose some info thats not needed.

Thats all i wanted, but a mate is doing the same thing but needs HDD size, is that possible?

Hate to sound cheecky, but if anyone knows????

Cheers,

Carl.

 0 pts.

 

Excellent!!! Thanks for all the help so far!!

All i did was copy and paste then worked out the rest (what i could cut!!) and i got people asking me for copys galore!!!!

Thanks to all for the help so far. I’ll post a easier to read copy up when i’ve done tweaking it, and i’ll check out the MSDN myself see what else i can find!!

Thanks again,

Carl.

 0 pts.

 

Excellent!!! Thanks for all the help so far!!

All i did was copy and paste then worked out the rest (what i could cut!!) and i got people asking me for copys galore!!!!

Thanks to all for the help so far. I’ll post a easier to read copy up when i’ve done tweaking it, and i’ll check out the MSDN myself see what else i can find!!

Thanks again,

Carl.

 0 pts.