The most recent content from our members.
I am trying to query the subnet and CIDR from the table based on a Location variable that I am providing. Does anyone know the syntax to get this same query with the Get-SwisData command instead of the Invoke-Sqlcmd which requires the logged in user to have access to the database? this is what currently works: $SWIS =…
Very simple test query to get a list of nodes that start with a certain string. Here is the code: Add-PSSnapin SwisSnapIn $DataPath = '<path>' $OrnUsr = '<username>' $OrnSvr = '<srvrname>' $OrnCredFile = "$DataPath\User$OrnUsr.txt" $OrnCreds = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList…
So, I'm trying to get a SWIS query going from powershell. The goal at first is to basically read data via SWIS and I'm using $cred = New-Object System.Management.Automation.PSCredential ($login, $pass)$swis = Connect-Swis -host $hostname -cred $cred to pass my password to the script and connect, no problems there. However,…
It looks like you're new here. Sign in or register to get started.