mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-23 06:13:41 +00:00
Advanced Hunting - Fix code samples after WDATP service change
This commit is contained in:
@ -71,7 +71,7 @@ $headers = @{
|
||||
Accept = 'application/json'
|
||||
Authorization = "Bearer $aadToken"
|
||||
}
|
||||
$body = ConvertTo-Json -InputObject $query
|
||||
$body = ConvertTo-Json -InputObject @{ 'Query' = $query }
|
||||
$webResponse = Invoke-WebRequest -Method Post -Uri $url -Headers $headers -Body $body -ErrorAction Stop
|
||||
$response = $webResponse | ConvertFrom-Json
|
||||
$results = $response.Results
|
||||
|
Reference in New Issue
Block a user