Create Hardware Inventory

If you need to collect hardware and/or software information from a bunch of remote systems, you should take advantage of the Check-Online filter discussed in the previous tip, and use WMI:

"127.0.0.1", "server12", "pc-01-w3" | Check-Online |
Foreach-Object { Get-WMIObject Win32_BIOS -computerName $_ }

You can replace the computer names at the beginning of this pipeline with real computer names or IP addresses in your environment. Check-Online will sort out all systems that are currently offline. You will need to run Check-Online from the previous tip to use this command. Finally, Get-WMIObject retrieves BIOS information from all systems. Pick a different WMI class to get other information:

Get-WMIObject -list

Twitter This Tip! ReTweet this Tip!


Posted Oct 26 2009, 08:00 AM by ps1

Comments

Twitter Trackbacks for Create Hardware Inventory - Power Tips - PowerShell.com [powershell.com] on Topsy.com wrote Twitter Trackbacks for Create Hardware Inventory - Power Tips - PowerShell.com [powershell.com] on Topsy.com
on 10-28-2009 8:20 AM

Pingback from  Twitter Trackbacks for                 Create Hardware Inventory - Power Tips - PowerShell.com         [powershell.com]        on Topsy.com

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.