cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 12

Cannot resolve property error am getting while try to unmange node using powershell

Jump to solution
Am passing the caption in $Caption to set that node to unmange using powershell but am getting cannot resolve could you please help me in this ?
I dont have the Uri for that node then how i can update the custom property only using the node name ??

 

##------------------------------------UnmanageNode & Update custom property in solarwidns-----------------------------------##

Invoke-SwisVerb $swis Orion.Nodes Unmanage @("N:$Caption", $start, $end, $false)

##Set-SwisObject -SwisConnection $swis -Uri $NodeCaption -Properties @{ "XXX" = $Decomission }

 

 

PS C:\> Invoke-SwisVerb $swis Orion.Nodes Unmanage @("N:$Caption", $start, $end, $false)

Invoke-SwisVerb : Cannot resolve property XXXX

At line:1 char:1

+ Invoke-SwisVerb $swis Orion.Nodes Unmanage @("N:$Caption", $start, $e ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1

    + FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb

Labels (3)
Tags (3)
0 Kudos
1 Solution

mesverrum_0-1583776317288.png

 

The first argument should be a nodeid, not a caption

 

- Marc Netterfield, Github

View solution in original post

1 Reply

mesverrum_0-1583776317288.png

 

The first argument should be a nodeid, not a caption

 

- Marc Netterfield, Github

View solution in original post