1. Start PowerShell as Administrator
  2. Install-Module -Name VMware.PowerCLI -Scope CurrentUser
  3. Install-Module ImportExcel -scope CurrentUser
  4. Install-Module vDocumentation -Scope CurrentUser
  5. Set-ExecutionPolicy Unrestricted
  6. Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
  7. Connect-VIServer

Then you are up and runnig

Great work from Ariel Sanchez Mora  https://github.com/arielsanchezmora/vDocumentation

Get-Module vDocumentation -ListAvailable | Format-List

Get-ESXInventory Document host hardware inventory and host configuration
Get-ESXIODevice Document information from HBAs, NICs and other PCIe devices including PCI IDs, MACs, firmware & drivers
Get-ESXNetworking Document networking configuration information such as NICs, vSwitches, VMKernel details
Get-ESXStorage Document storage configurations such as iSCSI details, FibreChannel, Datastores & Multipathing
Get-ESXPatching Document installed and pending patches, including related time and KB information
Get-vSANInfo Document basic vSAN Cluster information
Get-ESXSpeculativeExecution Document ESXi host mitigation status for Spectre and Meltdown
Get-VMSpeculativeExecution Document VM mitigation status for Spectre and Meltdown