PowerShell script exchange
Post Reply
DavoudTeimouri
Enthusiast
Posts: 36
Liked: 3 times
Joined: Nov 27, 2013 7:58 am
Full Name: Davoud Teimouri
Contact:

VeeamPSSnapIn registration problem

Post by DavoudTeimouri » Jul 02, 2015 11:26 am

Hi,
I'm using Veeam BR U2 and I get the below error when I try to open PowerShell via Veeam BR GUI console:

Code: Select all

Add-PSSnapin : The Windows PowerShell snap-in 'VeeamPSSnapIn' is not installed
on this computer.
At C:\Program Files\Veeam\Backup and
Replication\Backup\Initialize-VeeamToolkit.ps1:123 char:1
+ Add-PSSnapin VeeamPSSnapIn
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (VeeamPSSnapIn:String) [Add-PSS
   napin], PSArgumentException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.Ad
   dPSSnapinCommand

Get-PSSnapIn : No Windows PowerShell snap-ins matching the pattern
'VeeamPSSnapIn' were found. Check the pattern and then try the command again.
At C:\Program Files\Veeam\Backup and
Replication\Backup\Initialize-VeeamToolkit.ps1:126 char:11
+ $snapIn = Get-PSSnapIn "VeeamPSSnapIn"
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (VeeamPSSnapIn:String) [Get-PSS
   napin], PSArgumentException
    + FullyQualifiedErrorId : NoPSSnapInsFound,Microsoft.PowerShell.Commands.G
   etPSSnapinCommand

I have try to register the file manually but I get this:

Code: Select all

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.dll assembly's 
progress.
The file is located at C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.InstallLog.
Installing assembly 'C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.dll'.
Affected parameters are:
   logtoconsole = 
   assemblypath = C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.dll
   logfile = C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.InstallLog
An exception occurred while trying to find the installers in the C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.Po
werShell.dll assembly.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions prope
rty for more information.
Aborting installation for C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.dll.

An exception occurred during the Install phase.
System.InvalidOperationException: Unable to get installer types in the C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Bac
kup.PowerShell.dll assembly.
The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message: Unable to load one or 
more of the requested types. Retrieve the LoaderExceptions property for more information..

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.dll assembly's 
progress.
The file is located at C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.InstallLog.
Rolling back assembly 'C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.dll'.
Affected parameters are:
   logtoconsole = 
   assemblypath = C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.dll
   logfile = C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.InstallLog
An exception occurred while trying to find the installers in the C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.Po
werShell.dll assembly.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions prope
rty for more information.
Aborting installation for C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Backup.PowerShell.dll.
An exception occurred during the Rollback phase of the System.Configuration.Install.AssemblyInstaller installer.
System.InvalidOperationException: Unable to get installer types in the C:\Program Files\Veeam\Backup and Replication\Backup\Veeam.Bac
kup.PowerShell.dll assembly.
The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message: Unable to load one or 
more of the requested types. Retrieve the LoaderExceptions property for more information..
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. H
owever, the machine might not fully revert to its initial state after the rollback is complete.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed. 

Is there any solution for this?

Best Regards
Best Regards

v.Eremin
Product Manager
Posts: 15967
Liked: 1284 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: VeeamPSSnapIn registration problem

Post by v.Eremin » Jul 02, 2015 11:41 am 1 person likes this post

Check the adjacent thread and see whether the approach proposed there solves the issue for you. Thanks.

DavoudTeimouri
Enthusiast
Posts: 36
Liked: 3 times
Joined: Nov 27, 2013 7:58 am
Full Name: Davoud Teimouri
Contact:

Re: VeeamPSSnapIn registration problem

Post by DavoudTeimouri » Jul 08, 2015 2:12 pm

The issue is resolved.
Many thanks for sharing that.
Best Regards

v.Eremin
Product Manager
Posts: 15967
Liked: 1284 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: VeeamPSSnapIn registration problem

Post by v.Eremin » Jul 08, 2015 2:49 pm

You're welcome. Should other help be needed, let us know.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests