Pure PowerShell SDK: Find All Disconnected Volumes

There are many ways to determine what volumes are connected to a host or host group, but there is no way to easily see disconnected volumes via the PowerShell SDK.

DAS

This blog was last updated in May of 2017.


5/2/2017 – Added size of disconnected volume output.
5/1/2017 – Fixed bugs.

There are many ways to determine what volumes are connected to a host or host group, but there is no way to easily see via the PowerShell SDK what volumes are disconnected/unused.

PowerShell:

Output example:

Download the scriptGet-DisconnectedVolumes.ps1 from https://github.com/PureStorage-OpenConnect/powershell-scripts.

Cheers,
Barkz