4 Replies Latest reply on Apr 4, 2016 9:32 AM by tdanner

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

    db_berridg

      I keep getting the following error message when trying to connect to the Solarwinds application Server using a service account

       

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

      At line:1 char:1

      + Get-SwisData $swis "SELECT NodeID FROM Orion.Nodes"

      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          + CategoryInfo          : InvalidOperation: (:) [Get-SwisData], MessageSecurityException

          + FullyQualifiedErrorId : SwisError,SwisPowerShell.GetSwisData

       

      Add-PSSnapin SwisSnapin

      $Username = 'SolarWindsServAcct'

      $Password = ConvertTo-SecureString -String '*********' -AsPlainText -Force

      $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $Username,$Password

      $swis = connect-swis -Host '133.33.33.33' -Credential $Cred

       

       

      # check if node with vmIP exists in SolarWinds

      Get-SwisData $swis "SELECT NodeID FROM Orion.Nodes"

       

      I can connect to the Solarwinds database using SWQL studio just fine.

       

      Any ideas why this is happening?

       

      Thank you in advance!!!