MECM - Get DeviceResourceID in a Task Sequence - Microsoft Q&A
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 '