Getting Error - PowerShell Query

Hi,

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"
$nodes

Regards

Sandeep

 

Parents
  • 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.

Reply
  • 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.

Children