Solarwinds Monitoring Powershell failing

PowerShell script exchange

Solarwinds Monitoring Powershell failing

Veeam Logoby cvacanti » Fri Jun 02, 2017 9:25 pm

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?
cvacanti
Enthusiast
 
Posts: 35
Liked: 4 times
Joined: Fri Feb 28, 2014 7:36 pm
Full Name: Chris Vacanti

Re: Solarwinds Monitoring Powershell failing

Veeam Logoby mikeconjoice » Tue Jun 06, 2017 12:33 pm

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
mikeconjoice
Service Provider
 
Posts: 6
Liked: never
Joined: Mon May 09, 2016 3:59 pm
Location: UK
Full Name: Mike Conjoice


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests