PowerShell Function to Determine the Installed VSS Providers

I’ve been migrating one of my customers from some older EqualLogic storage area networks to a Nimble SAN. It has all been good with the exception of some problems with VSS (Volume Shadow Copy Service). They use Altaro for backups and from what I’ve found, Nimble and Altaro don’t play well together when it comes to VSS. Nimble’s software was installed on the Hyper-V hosts and all three vendors (Nimble, EqualLogic, and Altaro) VSS providers seemed to play well together until volumes were actually moved to the Nimble SAN. The backup for each and every VM failed consistently once they were onto the Nimble SAN.

Once the Nimble VSS provider was removed from the Hyper-V hosts, all was well again with the Altaro backups. With all of this drama about VSS problems, I was surprised to find that there aren’t any PowerShell cmdlets for working with VSS so I decided to write a function that could at least be used to determine what VSS providers exist on a computer without having to dig around in the registry manually.

Simply call the function, specify the server names, and credentials. If credentials aren’t specified, the currently logged on users credentials are used.

PowerShell remoting does need to be enabled on the targeted systems, but that shouldn’t be a problem for most since PowerShell remoting is enabled by default on Windows Server 2012 and higher and it can be enabled on others with the Enable-PSRemoting cmdlet as long as PowerShell version 2.0 or higher is installed.

The Get-MrVssProvider function shown in this blog article can be downloaded from my PowerShell repository on GitHub.


Leave a Reply

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

%d bloggers like this: