PowerCLI: Match VM and Windows hard disks

From VI-Toolkit
Revision as of 19:44, 30 October 2010 by Wila (talk | contribs) (Created page with '=== Map VM Disks === Author: Arnim van Lieshout ==== Description ==== Based on the [http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/ Get VMwar...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Map VM Disks

Author: Arnim van Lieshout

Description

Based on the Get VMware Disk Usage with Powershell script by Hugo Peeters, this script will identify the locations of the virtual disks used by your virtual machines.

Arnim explains how the mechanism in windows works, which is a little bit different from what you would expect and then applies his knowledge to both Powershell as well as WMI scripts to retrieve the details he needs for getting this to work. He even throws in how-to add this code to the VESI Powerpack

The information retrieved per VM is:

  • SCSI Controller
  • DiskName
  • SCSI ID
  • Disk File
  • Disk Size
  • Windows Disk ID


Location

Match VM and Windows harddisks using PowerCLI

Match VM and Windows harddisks part 2