September 2013
Intermediate to advanced
182 pages
4h 13m
English
$Url = "{Orchestrator Web Service URL from "Initialize Data"}" $ActivityID = "{Runbook Activity ID from "Initialize Data"}" $RootPath = "{Root Path from "Initialize Data"}" $ErrorState = 0 $ErrorMessage = "" $Action = "Get Runbook Path" $Trace = "Begin '$Action' `r`n" try { $Trace += "Calling Get-ActivityRunbookPath with URL '$Url' and ActivityID '$ActivityID'. `r`n" if(!($Url.EndsWith('/') -Or $Url.EndsWith('\'))) { $Url += "/" } $Url = $Url + "Activities(guid'$ActivityID')/Runbook" $Trace += "Completed URL: $Url `r`n" $URI = New-Object System.Uri($Url,$true) $counter = 0 $max = 6 $completed = $false while ($counter -le $max -and !$completed) { try { $counter ...Read now
Unlock full access