Updates
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