PowerShell script exchange
Post Reply
sssnapin
Novice
Posts: 4
Liked: never
Joined: Dec 13, 2010 2:57 pm

Register VeeamPSSnapIn

Post by sssnapin »

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
Alexey D.

Re: Register VeeamPSSnapIn

Post by Alexey D. »

Hello,

What is the exact error message you are receiving?
sssnapin
Novice
Posts: 4
Liked: never
Joined: Dec 13, 2010 2:57 pm

Re: Register VeeamPSSnapIn

Post by sssnapin »

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.
Alexey D.

Re: Register VeeamPSSnapIn

Post by Alexey D. »

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.
sssnapin
Novice
Posts: 4
Liked: never
Joined: Dec 13, 2010 2:57 pm

Re: Register VeeamPSSnapIn

Post by sssnapin »

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
Alexey D.

Re: Register VeeamPSSnapIn

Post by Alexey D. »

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!
sssnapin
Novice
Posts: 4
Liked: never
Joined: Dec 13, 2010 2:57 pm

Re: Register VeeamPSSnapIn

Post by sssnapin »

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

Thank you very much Alexey!
Alexey D.

Re: Register VeeamPSSnapIn

Post by Alexey D. »

I installed PowerShell after I installed Veeam Backup...
Yes, that is the point :) You're welcome!
skayser
Enthusiast
Posts: 27
Liked: never
Joined: Jul 13, 2010 8:28 am
Full Name: Sebastian Kayser

Re: Register VeeamPSSnapIn

Post by skayser »

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
Alexey D.

Re: Register VeeamPSSnapIn

Post by Alexey D. »

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"
skayser
Enthusiast
Posts: 27
Liked: never
Joined: Jul 13, 2010 8:28 am
Full Name: Sebastian Kayser

Re: Register VeeamPSSnapIn

Post by skayser »

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.
Alexey D.

Re: Register VeeamPSSnapIn

Post by Alexey D. »

Ok!
Thanks for updating.
eantonio
Influencer
Posts: 24
Liked: never
Joined: Jan 27, 2015 9:14 pm
Full Name: Emil Antonio
Contact:

Re: Register VeeamPSSnapIn

Post by eantonio »

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.
veremin
Product Manager
Posts: 20405
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Register VeeamPSSnapIn

Post by veremin »

See my answer in the adjacent thread. Kindly, avoid posting the very same question in different topics in order not to multiple entities. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests