This PowerShell script retrieves VM details from a vCenter or ESXi host and exports them to a CSV file.
- Connects to a specified vCenter or ESXi host.
- Retrieves the following VM details:
- VM Name
- IP Address
- Guest OS
- Notes
- Exports the gathered data to a CSV file.
- Ensure you have VMware PowerCLI installed.
- Run the script, specifying the server and output path.
.\Export-VMInfo.ps1 -Server 'my.vcenter.com' -OutputPath "C:\path\to\output.csv"When prompted, enter the username and password for the vCenter or ESXi host.
- VMware PowerCLI.
- Necessary permissions to query the vCenter or ESXi host.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.