Forum Discussion
Remove devices from MDATP portal
- May 29, 2020
neilcarden Sorry for the confusion, it's poorly labeled in ATP. Here is a screenshot of what it should look like before you run the query (it looks like you're entering the comment in the bottom "Response body" when it should be the top unlabeled input box):
Thank you,
Kate
Hello
I have ran into this issue previously and found a great fix that doesn't involve contacting the users or even having physical access to their machine. Please follow these steps:
- Copy the machine you want to offboard in the machine list and obtain the machine ID from the URL (…/machines/<machine ID>)
- Navigate to API explorer (Left pane in ATP > Partners & APIs > API explorer)
- Change first drop-down to "POST"
- Paste this URL (https://api.securitycenter.windows.com/api/machines/%7bmachine-id%7d/offboard)
- Enter machine ID in the URL (keep the entire URL, just replace <MachineID>)
- Run query (This will force machine to run the offboarding script next time the machine checks in.)
- Include this comment (remove the first and last quotations):
"{
"Comment": "Offboard machine by automation"
}"
8. Repeat 1-6 for each machine you'd like to remove
Hope that helps!
Thanks,
Kate
KateAWin Thanks for your response... I have tried this on two machines... and get the following error
- KateAWinMay 27, 2020Brass Contributor
neilcarden In order to post the HTML on this web page, I had to include quotation marks before and after the brackets: "{}"
Remove only those two quotation marks, but keep the rest of the code. Also, you can give it a try without entering anything in the body. I would assuming the comment is optional, though I've never tried it myself.
Thank you,
Kate
- neilcardenMay 29, 2020Brass Contributor
KateAWin Thanks again for responding however I am a bit confused.
So I am running this query (not real machine id)
https://api.securitycenter.windows.com/api/machines/aaf8969262fd9031978bf7955b102547d22ff302/offboard
Do I need { } either side of the machine ID?
And where do I type the comments bit??
I have attached a pic.
- KateAWinMay 29, 2020Brass Contributor
neilcarden Sorry for the confusion, it's poorly labeled in ATP. Here is a screenshot of what it should look like before you run the query (it looks like you're entering the comment in the bottom "Response body" when it should be the top unlabeled input box):
Thank you,
Kate