PowerCLI: Dump virtual machine info as XML

From VI-Toolkit
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

get-VmInfoAsXML

Author: Doug Youd

Description

Based on the PowerCLI: Virtual Machine Disk (VMDK) info v2: Analyze data with Excel script by Arne Fokkema, this script will save your virtual machine info in an XML file.

The XML file is formatted for easier readability and contains -among others- the following information:

  • List of VMs with
 * port groups with VLAN info
 * Datastore
 * Capacity in GB
 * CPU count
 * Memory size
 * Nic count
 * Disk count
 * full guest name


Location

Dump Virtual Machine Info as XML (powershell)