PowerShell script exchange
Post Reply
cvacanti
Enthusiast
Posts: 35
Liked: 4 times
Joined: Feb 28, 2014 7:36 pm
Full Name: Chris Vacanti
Contact:

Solarwinds Monitoring Powershell failing

Post by cvacanti »

Running this template: https://thwack.solarwinds.com/docs/DOC-189961

Everything tests fine against the Veeam server except for the Job Status and Failed Jobs. I get this error when testing:
Output: ==============================================
Message: ERROR executing "Get-VBRJob": The term 'Get-VBRJob' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Errors: ==============================================
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 2.
At line:4 char:15
+ { Add-PSSnapin <<<< VeeamPSSnapIn; }
+ CategoryInfo : InvalidArgument: (VeeamPSSnapIn:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand


Troubleshooting:

Running ISE as admin I can add snapins: Add-PSSnapin VeeamPSSnapin
I can get-pssnapin veeampssnapin and see this: Name : VeeamPSSnapIn
PSVersion : 4.0
Description : This is a PowerShell snap-in that includes the Veeam's cmdlet.
I can get-vbrjob and see all the jobs in ISE output.
I can run the script in ISE that Solarwinds runs and it works fine there.

Does anyone have any thoughts/tips on this?
mikeconjoice
Novice
Posts: 7
Liked: 1 time
Joined: May 09, 2016 3:59 pm
Full Name: Mike Conjoice
Location: UK
Contact:

Re: Solarwinds Monitoring Powershell failing

Post by mikeconjoice »

Which Powershell version is installed on the Solarwinds server itself?

Code: Select all

PS C:\> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14393  1198
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests