I’ve recently had to audit and document several vSphere environments. Multiple hosts had been configured manually and there were some mistakes in the IP settings. I put together this POWERCLI function to report back on these settings and will now use it for documentation moving forward. Hopefully of some use to others too. Connect to a host or vCenter and give it a go.
I don’t know many people that enjoy writing documentation but it is a nessesary evil and can give you the opportunity to be creative with how you produce it. Often I will need to document a point in time install for ESXi hosts so have put together the below PowerCLI function to obtain some hardware and build information back. Running Get-HostDetails after connecting to a host or vCenter There are loads of good examples available but this works well for me. Output as below