Quantcast
Viewing all articles
Browse latest Browse all 20607

Re: Add WMI node with CRUD.AddWMINode.ps1 failed

#Adding NodeSettings

$nodeSettings = @{

    NodeID=$nodeProps["NodeID"];

    SettingName="WMICredential";

    SettingValue="12";

}

 

#Creating node settings

$newNodeSettings = New-SwisObject $swis -EntityType "Orion.NodeSettings" -Properties $nodeSettings

 

Instead of SettingValue=($credentialId.ToString());, I just set the value to a string value of 12.

 

The script can never add the WMI credential no matter what I do.


Viewing all articles
Browse latest Browse all 20607

Trending Articles