Untitled
Anonymous
powershell
12/15/2021 12:44 PM
444 B
22
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...