Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 8

Getting Error - PowerShell Query


I am getting below error when trying to pull data from query using powershell. Please help

Get-SwisData : An error occurred when verifying security for the message.

Query I am using:

$SwisHost = "xxxxxxx"
$user = "xxxx"
$creds= Get-Credential -UserName $user -Message "Enter password"
$Swis = Connect-Swis -Hostname $SwisHost -Credential $creds

$nodes = Get-SwisData $swis -Query "Select NodeID, Caption FROM Orion.Nodes"





0 Kudos
4 Replies

Have you ever been able to successfully query SolarWinds?

0 Kudos
Level 13

Have you tried with a local orion account?

Can also work when using a domain account to add "-Trusted" on the "Connect-SWIS"-command. Not sure if that is due to a certificate issue of different domains issue.

0 Kudos

when I used -Trusted in Connect-Swis, its giving different error.

Connect-Swis : Parameter set cannot be resolved using the specified named parameters.


0 Kudos
Level 8

0 Kudos