Check Provisioning Type of a Windows Server Volume

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

One comment

Add Comment

Required fields are marked *. Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

This site uses Akismet to reduce spam. Learn how your comment data is processed.