Dwarfsoft [GPA]

Tag: WMI

Windows Disk LUN WWID

by on Aug.28, 2014, under Scripting, Storage, Tweet, Work

One of my main issues with attempting to identify storage on Windows Systems is that the Bus/LUN Id can be stored in multiple places, and trying to track that back to a Volume is pretty hard. So after doing some fairly deep investigation into DeviceIOControl calls to query Page 80 (Device information such as Vendor and type) and Page 83 (which returns the WWID object) I have managed to wrangle the C# into a Type usable from a PowerShell Script.

What is a WWID?

(continue reading…)

3 Comments :, , , , , , , , , , , , , , , , more...

PowerCLI – Virtual Machine Disk Usage Report

by on Oct.25, 2012, under Scripting, Work

So, this is one of my largest PowerCLI/PowerShell scripts. This maps for each Virtual Machine, every Disk that is attached and trace back to what the LUN ID is that the disk is stored on, be it a VMDK, Thick/Thin provisioned disk, Physical/Virtual mode RDM, etc.

For the moment I will just paste the script as it stands, but I hope to return and explain some of the components.

(continue reading…)

Leave a Comment :, , , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!