Untitled

 avatar
unknown
powershell
4 years ago
332 B
6
Indexable
 
$SerialNumberList= Get-Content -Raw -Path C:\temp\SerialNumberlist.json | ConvertFrom-Json

ForEach($SerialNumber in $SerialNumberList) {
    $devices2 = Invoke-RestMethod -Uri "https://as763.awmdm.com/API/mdm/devices?searchby=SerialNumber&id=$SerialNumber" -Method Get -Headers $header_v2 
       Write-Output $devices2
    }
} 
Editor is loading...