ForEach ($node in $list) {
$swis = Connect-Swis -host $orion_server -UserName $username -Password $passwd
$nodeID = Get-SwisData $swis "Select NodeID From Orion.Nodes where Caption = '$node'"
Invoke-SwisVerb $swis Orion.Nodes Unmanage @("N:$nodeID",$StartDate,$EndDate,"false")
}
In the above script am storing the node caption list in $list
$StartDate = Wednesday, August 2, 2023 2:30:00 AM
$EndDate = Friday, August 4, 2023 2:30:00 AM
In Portal am seeing planned outage is 01/08/2023 19:30 - 03/08/2023 19:30 updated
Anyone have any idea where am missing and what is the issue?