Skip to content

Commit

Permalink
Fix hardcoded IP in Set-AMTDevice
Browse files Browse the repository at this point in the history
Signed-off-by: michaelmumenthaler <[email protected]>
  • Loading branch information
michaelmumenthaler committed Aug 18, 2022
1 parent f671faf commit ddd78e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerAMT/Public/Set-AMTDevice.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function Set-AMTDevice {
$body = $body | ConvertTo-Json

if($null -ne $GUID -and $GUID -ne ""){
return (Invoke-RestMethod -Uri 'https://192.168.200.200/mps/api/v1/devices' -Method PATCH -Headers $headers -ContentType 'application/json' -Body $body)
return (Invoke-RestMethod -Uri ("https://"+ $Global:AMTSession.Address + "/mps/api/v1/devices") -Method PATCH -Headers $headers -ContentType 'application/json' -Body $body)
}
}
}
Expand Down

0 comments on commit ddd78e3

Please sign in to comment.