Register VeeamPSSnapIn

PowerShell script exchange

Register VeeamPSSnapIn

Veeam Logoby sssnapin » Mon Dec 13, 2010 3:01 pm

Hello,

I neet to know how can I register the VeeamPSSnapIn, right now if I do

PS C:\> Add-PSSnapin VeeamPSSnapIn

I receive an error message, also it doesn't get listed when I do:

PS C:\> Get-PSSnapin
sssnapin
Novice
 
Posts: 4
Liked: never
Joined: Mon Dec 13, 2010 2:57 pm

Re: Register VeeamPSSnapIn

Veeam Logoby Alexey D. » Mon Dec 13, 2010 3:23 pm

Hello,

What is the exact error message you are receiving?
Alexey D.
 

Re: Register VeeamPSSnapIn

Veeam Logoby sssnapin » Mon Dec 13, 2010 3:29 pm

This is the error message (spanish windows, sorry):

Add-PSSnapin : No se han registrado complementos de la versión 2 de Windows PowerShell.
En línea: 1 Carácter: 13
+ Add-PSSnapin <<<< VeeamPSSnapIn
+ CategoryInfo : InvalidArgument: (VeeamPSSnapIn:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

Translation: "no registered complements"

Also:

PS C:\> Get-PSSnapin


Name : Microsoft.PowerShell.Diagnostics
PSVersion : 2.0
Description : Este complemento de Windows PowerShell contiene cmdlets de Eventos de Windows y de contador de rendimient
o.

Name : Microsoft.WSMan.Management
PSVersion : 2.0
Description : Este complemento de Windows PowerShell contiene cmdlets (como Get-WSManInstance y Set-WSManInstance) que
usa el host de Windows PowerShell para administrar operaciones WSMan.

Name : Microsoft.PowerShell.Core
PSVersion : 2.0
Description : Este complemento de Windows PowerShell contiene cmdlets usados para administrar los componentes de Window
s PowerShell.

Name : Microsoft.PowerShell.Utility
PSVersion : 2.0
Description : Este complemento de Windows PowerShell contiene cmdlets de utilidad que sirven para manipular datos.

Name : Microsoft.PowerShell.Host
PSVersion : 2.0
Description : Este complemento de Windows PowerShell contiene cmdlets (como Start-Transcript y Stop-Transcript) proporc
ionados para su uso con el host de la consola de Windows PowerShell.

Name : Microsoft.PowerShell.Management
PSVersion : 2.0
Description : El complemento Windows PowerShell contiene cmdlets de administración para administrar los componentes de
Windows.

Name : Microsoft.PowerShell.Security
PSVersion : 2.0
Description : Este complemento de Windows PowerShell contiene varios cmdlets para la administración de la seguridad de
Windows PowerShell.
sssnapin
Novice
 
Posts: 4
Liked: never
Joined: Mon Dec 13, 2010 2:57 pm

Re: Register VeeamPSSnapIn

Veeam Logoby Alexey D. » Mon Dec 13, 2010 4:04 pm

Hello,

You get this error because VeeamPSSnapIn is not registered with powershell.
Please follow the link to discover how to do this (applicable to any other component): http://technet.microsoft.com/en-au/libr ... 47601.aspx - scroll down to Example 3.
Alexey D.
 

Re: Register VeeamPSSnapIn

Veeam Logoby sssnapin » Mon Dec 13, 2010 4:19 pm

Yes, I've been there. My initial question should have been: 'Against which DLL should I register Veeam ssnapi?'

set-alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil.exe
installutil C:\ROUTE\TO\VEEAM\DLL
sssnapin
Novice
 
Posts: 4
Liked: never
Joined: Mon Dec 13, 2010 2:57 pm

Re: Register VeeamPSSnapIn

Veeam Logoby Alexey D. » Tue Dec 14, 2010 9:18 am

The dll is:

Code: Select all
Veeam.Backup.PowerShell.dll


Actually, this registration is done by B&R installer, I'm wondering why this hasn't happened.
Or did you change anything manually, in powershell itself?

I would recommend you to run B&R setup once again and choose 'Repair' option. This should fix PS component registration.
Hope this helps!
Alexey D.
 

Re: Register VeeamPSSnapIn

Veeam Logoby sssnapin » Tue Dec 14, 2010 10:26 am

OK, probably it was because I installed PowerShell after I installed Veeam Backup...

Thank you very much Alexey!
sssnapin
Novice
 
Posts: 4
Liked: never
Joined: Mon Dec 13, 2010 2:57 pm

Re: Register VeeamPSSnapIn

Veeam Logoby Alexey D. » Tue Dec 14, 2010 10:32 am

I installed PowerShell after I installed Veeam Backup...


Yes, that is the point :) You're welcome!
Alexey D.
 

Re: Register VeeamPSSnapIn

Veeam Logoby skayser » Tue Jan 18, 2011 2:49 pm

Alexey, is the .dll name the same for VBR 5.0.1? Can't find the file on a W2K8 64-Bit system (where PowerCLI was also installed after VBR).

Sebastian
skayser
Enthusiast
 
Posts: 27
Liked: never
Joined: Tue Jul 13, 2010 8:28 am
Full Name: Sebastian Kayser

Re: Register VeeamPSSnapIn

Veeam Logoby Alexey D. » Tue Jan 18, 2011 3:07 pm

Hello Sebastian,

No changes for the name in 5.0.1.
Please take a look here: "%program files%\Veeam\Backup and Replication\Veeam.Backup.PowerShell.dll"
Alexey D.
 

Re: Register VeeamPSSnapIn

Veeam Logoby skayser » Tue Jan 18, 2011 3:23 pm

Thanks for the reply. The file wasn't there. Launched the setup agent again. "Modify" -> "PowerShell SnapIn" was deselected. Can't really remember that I did this during the initial setup (... OTOH I might have done so). Anyway, selected it for installation, finished the wizard and everythings working fine. Thanks again.
skayser
Enthusiast
 
Posts: 27
Liked: never
Joined: Tue Jul 13, 2010 8:28 am
Full Name: Sebastian Kayser

Re: Register VeeamPSSnapIn

Veeam Logoby Alexey D. » Tue Jan 18, 2011 3:27 pm

Ok!
Thanks for updating.
Alexey D.
 

Re: Register VeeamPSSnapIn

Veeam Logoby eantonio » Tue Jun 16, 2015 5:29 pm

Hi,

is it possible to install/register the Veeam Snapin to a remote computer where I don't have Veeam software installed? My goal is to run powershell in a remote computer and execute a Veeam backup job from the remote computer. Thank you.
eantonio
Influencer
 
Posts: 24
Liked: never
Joined: Tue Jan 27, 2015 9:14 pm
Full Name: Emil Antonio

Re: Register VeeamPSSnapIn

Veeam Logoby v.Eremin » Wed Jun 17, 2015 8:42 am

See my answer in the adjacent thread. Kindly, avoid posting the very same question in different topics in order not to multiple entities. Thanks.
v.Eremin
Veeam Software
 
Posts: 13285
Liked: 971 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests