I am having problems with the Import-VBRTapeMedium applet when trying to run it from the regular powershell (via a .ps1 file)
If I launch from within veeam the powershell console, the following command:
Code: Select all
Add-PSSnapin VeeamPSSnapin
Get-VBRTapeLibrary | Import-VBRTapeMedium -RunAsync
If I run the same code from within the ISE (as admin) it also works.
If I run the same code from Powershell ( as admin) I get the following:
Code: Select all
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 4.
At line:1 char:1
+ Add-PSSnapin "VeeamPSSnapin"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (VeeamPSSnapin:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand