string(7) "English"

Check Provisioning Type of a Windows Server Volume

This post was originally published on this site

I had a question asked about how to determine whether or not a connected volume to a Windows Server host is thin provisioned or not. I put together the below PowerShell script to do the following:

  • Retrieve the locally connected volumes. Since this is using Get-WMIObject this is usable across all versions of Windows Server supported by Pure Storage.
  • Connect to the FlashArray and retrieve volumes.
  • Compare the UniqueId of the locally connected volumes to the FlashArray volume serial numbers.
  • Return the volume name which has the correlated serial number.

PowerShell:

Example Output:

I will be adding this as a cmdlet to the PowerShell Toolkit.

Thanks,
Barkz