Just a quick post on the script I submit for the second practice event of the Winter Scripting Games 2013 (last week).
Practice Event 2 - Covering Your Assets
Your organization is preparing to renew maintenance contracts on all of your server computers. You need to provide management with a report that details each inventory information for each server. Most of the servers do not have Windows PowerShell installed. None of the servers a separated from your client computer by a firewall. Computer names may be specified by a variety of means; your function must accept any collection of strings as computer names.
Minimum Requirements
Optional Criteria
- Display optional verbose output showing the computer name being contacted
- Prompt for computer names if none are specified when the function is run
- Accept computer names as strings from the pipeline
Desired Output
- ComputerName Model Manufacturer LogicalProcs PhysicalRAM BIOSSerial
My Script
# NAME : Get-ComputerInventory # AUTHOR: Francois-Xavier Cat # EMAIL : fxcat@LazyWinAdmin.com # DATE : 2013/02/10 Function Get-ComputerInventory { <# .SYNOPSIS The Get-ComputerInventory function gets information about a local or Remote machine(s) specified by the parameter ComputerName.
.png)