I'm having trouble with adding nodes using powershell. I've started with the CRUD.AddWMINode.ps1 script and am able to get all the information to go in properly but the authenticated user is not set on the node.
I think I've narrowed it down to the user definitions. I came to this conclusion by running the commands separately and there are 3 values that return for my user name, 2 of which are owned by "Orion". I've tried setting the ID number for the variable but that didn't make a difference.
$credentialName = "ValidCredentialName"
$credentialId = Get-SwisData $swis "SELECT ID FROM Orion.Credential where Name = '$credentialName'"
I've seen people have similar issues and it doesn't seem to have been resolved. I'm hoping someone can tell if the issue is in the script or something miss configured in the app.
Thanks in advance.
Charlie