1 of 1 people found this helpful
When you run "Get-SwisData" with no arguments, PowerShell asks you for a value for the required "SwisConnection" parameter. You typed "Connect-Swis -Hostname ..." at the prompt. The problem is that this is not a prompt for a PowerShell command - it is a prompt for a string that PowerShell will use for this parameter.
It will work better if you supply the arguments up front. Like this:
$swis = Connect-Swis -Hostname xxxx -Username xxxx -Password xxxx
Get-SwisData $swis "Select IPaddress, nodeid, caption From orion.nodes"