I successfully installed the PowerShell .dll file for both 32-bit and 64-bit shells, and loaded SwisSnapin in my PS runspace using this command;
Add-PSSnapin SwisSnapin
Then ran $swis = Connect-Swis and provided my credentials when prompted
Then I do this query;
Get-SwisData $swis 'SELECT NodeID, Caption FROM Orion.Nodes'
but I get this message;
Get-SwisData : The communication object, System.ServiceModel.Security.SecuritySessionClientSettings`1+ClientSecurityDup
lexSessionChannel[System.ServiceModel.Channels.IDuplexSessionChannel], cannot be used for communication because it is i
n the Faulted state.
At line:1 char:13
+ Get-SwisData <<<< $swis 'SELECT NodeID, Caption FROM Orion.Nodes'
+ CategoryInfo : NotSpecified: (:) [Get-SwisData], CommunicationObjectFaultedException
+ FullyQualifiedErrorId : System.ServiceModel.CommunicationObjectFaultedException,SwisPowerShell.GetSwisData
I'm using the Orion NPM administrator credentials. What am I missing?