Use TSEnvironment or Powershell to get Devicename, then: $DeviceName = "Test01" $URL = "https://SITESERVER/AdminService/v1.0/Device?$filter=startswith(Name,'$Device')" $DeviceInf = Invoke-RestMethod -Method '
Powershell(Credits go to Herbert Fuchs for this script): $SiteCode='FOX'$MT=Get-CMSiteMaintenanceTask-SiteCode$SiteCode-Name'Delete Aged Scenario Health History'$MethodParam=New-Object'System.Collections.Generic.Dictionary[String,Object]'$MethodParam.Add('SiteCo...