Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20396

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

$
0
0

#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 20396

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>