This is a *clean* install of 6.5--not upgraded. I have installed it with the powershell option checked in the install process. For some reason the powershell snapin is not automatically registered. Also, this is a clean install of Windows 2008 R2 STD with all the patches up-to-date from MS. This is a new environment--it is all up to date. FWIW, the vCenter is 5.1 and ESXi hosts are 5.1 as well--but i havent got that far yet.
When i try to manually register the snapin, i get an error:
- Code: Select all
PS C:\> Add-PSSnapin -name "VeeamPSSnapIn"
Add-PSSnapin : The Windows PowerShell snap-in 'VeeamPSSnapIn' is not installed on this machine.
At line:1 char:13
+ Add-PSSnapin <<<< -name "VeeamPSSnapIn"
+ CategoryInfo : InvalidArgument: (VeeamPSSnapIn:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
When i try to "add-type" to register the DLL (i think this is the correct process). I get an error:
- Code: Select all
PS C:\> Add-Type -path 'C:\Program Files\Veeam\Backup and Replication\Veeam.Backup.PowerShell.dll'
Add-Type : Could not load file or assembly 'file:///C:\Program Files\Veeam\Backup and Replication\Veeam.Backup.PowerShe
ll.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and can
not be loaded.
At line:1 char:10
+ Add-Type <<<< -path 'C:\Program Files\Veeam\Backup and Replication\Veeam.Backup.PowerShell.dll'
+ CategoryInfo : NotSpecified: (:) [Add-Type], BadImageFormatException
+ FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.AddTypeCommand
I have found some links suggesting that I change my powershell.exe.config file if the binary is created by .Net v4. But it does not seem to work either. I still cant add the DLL, nor the snapin.
http://tfl09.blogspot.com/2010/08/using ... -with.html
http://stackoverflow.com/questions/2094 ... -4-runtime
Did something change in 6.5 that requires a modification to powershell in order to register the DLL and then be able to Add-PSSnapIn?