Powershell snapin for V8 not working

PowerShell script exchange

Powershell snapin for V8 not working

Veeam Logoby bgalante » Wed Jul 29, 2015 5:47 pm

Hi,

I just installed the powershell snap-in on my Veeam B&R environment.

When I am in the B&R application console, I click on the powershell icon in the menu, and it gives this error:

Code: Select all
Add-PSSnapin : No snap-ins have been registered for windows powershell version 4.
At C:\Program Files\Veeam\Backup and Replication\Backup\Initialize-VeeamToolKit.ps1:137 char:1


And none of the commands work.

Does anyone have experience with this issue?
bgalante
Enthusiast
 
Posts: 35
Liked: 1 time
Joined: Mon Jul 27, 2015 5:14 pm
Full Name: Brian Galante

Re: Powershell snapin for V8 not working

Veeam Logoby v.Eremin » Wed Jul 29, 2015 5:54 pm

Have you tried already to reinstall PS snap-in?
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Powershell snapin for V8 not working

Veeam Logoby bgalante » Wed Jul 29, 2015 6:30 pm

Yes, I've tried to reinstall it. I'm still getting the same error.
bgalante
Enthusiast
 
Posts: 35
Liked: 1 time
Joined: Mon Jul 27, 2015 5:14 pm
Full Name: Brian Galante

Re: Powershell snapin for V8 not working

Veeam Logoby v.Eremin » Wed Jul 29, 2015 6:39 pm

What happens if you try to load the snap-in outside of VB&R GUI? Just open a PS console, and try to add the snap-in, using "Asnp VeeamPSSnapin" code.

If you get something like "VeeamPSSnapIn not found", take a look at the solution provided in this thread. Also, this thread might be useful.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Powershell snapin for V8 not working

Veeam Logoby bgalante » Wed Jul 29, 2015 7:44 pm 1 person likes this post

Thanks for your help, I had to reapply the 2b patch. Works now...
bgalante
Enthusiast
 
Posts: 35
Liked: 1 time
Joined: Mon Jul 27, 2015 5:14 pm
Full Name: Brian Galante

Re: Powershell snapin for V8 not working

Veeam Logoby v.Eremin » Thu Jul 30, 2015 8:22 am

Yep, re-applying the latest update seems to be the most common solution for the issue described.

Thank you for confirming that it's helped you, as well; appreciated.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Powershell snapin for V8 not working

Veeam Logoby Memmy » Thu Jul 30, 2015 9:48 am 1 person likes this post

I've had the same problem. I can confirm that re-applying the latest patch solves the problem.
Memmy
Novice
 
Posts: 6
Liked: 1 time
Joined: Thu Jul 04, 2013 1:02 pm
Full Name: Marco Menegazzi

Re: Powershell snapin for V8 not working

Veeam Logoby nsiakotos » Tue Aug 04, 2015 7:14 pm

I had this same issue, no amount of re-installing/re-patching worked for me. I had to set the registry key manually.

Put this in a text file and rename it to VeeamPSSFix.reg

Code: Select all
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\VeeamPSSnapIn]
"PowerShellVersion"="2.0"
"Vendor"="Veeam"
"Description"="This is a PowerShell snap-in that includes the Veeam's cmdlet."
"VendorIndirect"="VeeamPSSnapIn, Veeam"
"DescriptionIndirect"="VeeamPSSnapIn,This is a PowerShell snap-in that includes the Veeam's cmdlet."
"Version"="8.0.0.0"
"ApplicationBase"="C:\\Program Files\\Veeam\\Backup and Replication\\Backup"
"AssemblyName"="Veeam.Backup.PowerShell, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bfd684de2276783a"
"ModuleName"="C:\\Program Files\\Veeam\\Backup and Replication\\Backup\\Veeam.Backup.PowerShell.dll"
nsiakotos
Lurker
 
Posts: 1
Liked: never
Joined: Tue Jan 10, 2012 8:02 pm
Full Name: Nick Siakotos

Re: Powershell snapin for V8 not working

Veeam Logoby bgalante » Tue Aug 11, 2015 11:48 am

Re-applying the patch did work, thank you for you help!
bgalante
Enthusiast
 
Posts: 35
Liked: 1 time
Joined: Mon Jul 27, 2015 5:14 pm
Full Name: Brian Galante

Re: Powershell snapin for V8 not working

Veeam Logoby riahc3 » Sun Nov 29, 2015 1:10 am

bgalante wrote:Re-applying the patch did work, thank you for you help!
Could you add a step by step? Is rebooting necessary?
riahc3
Enthusiast
 
Posts: 33
Liked: 3 times
Joined: Wed Oct 21, 2015 10:01 am
Full Name: John


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests