$swis = Connect-Swis -Credential $creds -Hostname ServerName # creating a SWIS connection object
Get-SwisData -SwisConnection $swis -Query 'SELECT TOP 1 I.Status, I.DisplayName FROM IPAM.IPNode'
while trying above commands, i am getting below error:
Get-SwisData : An error occurred when verifying security for the message.
At line:2 char:1
+ Get-SwisData -SwisConnection $swis -Query 'SELECT TOP 1 I.Status, I.D ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-SwisData], MessageSecurityException
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.GetSwisData
Could anyone please guide to resolve the error.