ISSUE
Installed Veeam 9 Backup and Recovery. Installed the Veeam Powershell after a couple days of demoing. When launching the Veeam powershell module via Veeam menu it opens1)http://forums.veeam.com/powershell-f26/how-do-you-even-get-powershell-to-work-with-veeam-t26429.html?hilit=icon#p137617p and works just fine. However when attempting to launch the Veeamssnapin using the command ‘Add-PsSnapIn VeeamPSSnapIn’ I received an error (below). As you can see, when running ‘get-pssnapin’ Veeam isn’t listed.
Solution:
- Install latest version of Powershell (see below)
- Run ‘add-pssnapin veeampssnapin’ via Veeam powershell module from GUI
I attempted many steps to resolve, check sources.
- Backing up registry and using the infamous ‘registry key fix’ unsuccessfully2)https://forums.veeam.com/powershell-f26/veeampssnapin-not-found-t26632.html#p148605
- Installing the toolkit ps in the original installer ISO
- Updating Powershell from 2.03)https://www.microsoft.com/en-us/download/details.aspx?id=40855
The actual solution for my instance was that I was on powershell version2 coupled with an additional undocumented step for adding the plugin since I’m on 9.x. You can verify your powershell4)http://stackoverflow.com/questions/1825585/determine-installed-powershell-version version by running the command:
1 2 3 4 5 6 7 8 9 10 11 |
PS C:\Users\moo> $PSVersionTable Name Value ---- ----- PSVersion 4.0 WSManStackVersion 3.0 SerializationVersion 1.1.0.1 CLRVersion 4.0.30319.34209 BuildVersion 6.3.9600.16406 PSCompatibleVersions {1.0, 2.0, 3.0, 4.0} PSRemotingProtocolVersion 2.2 |
or
1 2 3 4 5 |
PS C:\> $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 4 0 -1 -1 |
After you have 3.0+ installed (I installed 4.0) I launched Veeam application and ran command ‘add-pssnapin veeampssnapin’, then launched standard PS to confirm and it worked without issues.
Enjoy!
- Installing ssacli – view raid ESXI 6.5 - December 6, 2017
- Installing hpacucli on Proxmox - December 5, 2017
- Finding your node name Graylog 2.2.x - May 22, 2017
Notes & References