This PowerShell script runs a series of WMI and other queries to collect information about Windows servers.
Each server's results are output to a HTML file.
- -Verbose, See more detailed progress as the script is running.
Collect information about a single server named SERVER1.
.\Collect-ServerInfo.ps1 SERVER1
Collect information about multiple servers.
"SERVER1","SERVER2","SERVER3" | .\Collect-ServerInfo.ps1
Collect information about all servers in Active Directory.
Get-ADComputer -Filter {OperatingSystem -Like "Windows Server*"} | %{.\Collect-ServerInfo.ps1 $_.DNSHostName}
Download the latest release from Github or from the TechNet Script Gallery.
Written by: Paul Cunningham
Find me on:
- My Blog: https://paulcunningham.me
- Twitter: https://twitter.com/paulcunningham
- LinkedIn: https://au.linkedin.com/in/cunninghamp/
- Github: https://github.com/cunninghamp
Additional contributions by: