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 $_ }
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