Answered by:
Get a list of devices managed by Office 365 MDM

Question
-
I'm trying to find a way to get a list of devices that are managed by Microsoft office 365 MDM that show up on the portal.
I've tried various commands which bring back a list of devices with ActiveSync mailboxes, but I just wanted those with MDM
an policy enabled.
The idea is to remove mobile devices not managed by MDM.
Thanks in advance.
Sunday, October 20, 2019 3:57 PM
Answers
-
Thanks for your taking your time to get me the information. I will have a play with those commands and hopefully put together some logic in order to get what I need
Thanks
Regards
shenmue232
- Marked as answer by shenmue232 Friday, November 8, 2019 2:16 PM
Sunday, October 20, 2019 8:29 PM
All replies
-
Sunday, October 20, 2019 5:04 PM
-
Thanks, I've used that command and the updated version. It returns all mobile devices that have ActiveSync enabled.
I only want devices managed by our MDM policy.
Thanks in advance.
Sunday, October 20, 2019 6:01 PM -
This will get the policies: https://docs.microsoft.com/en-us/powershell/module/exchange/devices/get-activesyncmailboxpolicy?view=exchange-ps
This will get mobile device policies: https://docs.microsoft.com/en-us/powershell/module/exchange/devices/get-mobiledevicemailboxpolicy?view=exchange-ps
\_(ツ)_/
- Edited by jrv Sunday, October 20, 2019 7:13 PM
- Proposed as answer by LeeSeenLiMicrosoft contingent staff Monday, October 21, 2019 6:55 AM
Sunday, October 20, 2019 7:12 PM -
You need to understand what all of these are and what information they give you then learn some PowerShell - enough to design a solution - before using PowerShell with O365.
There are dozens of articles available that discuss device management. Also review ALL of the CmdLets available for Exchange Online and O365 until you understand how they are designed and how they are intended to be used.
Also investigate the O365 Community forums (linked from Admin Portal menu) where yo will find more complete information and users working in the same context as yourself.
\_(ツ)_/
- Proposed as answer by LeeSeenLiMicrosoft contingent staff Monday, October 21, 2019 6:55 AM
Sunday, October 20, 2019 7:18 PM -
Thanks for your taking your time to get me the information. I will have a play with those commands and hopefully put together some logic in order to get what I need
Thanks
Regards
shenmue232
- Marked as answer by shenmue232 Friday, November 8, 2019 2:16 PM
Sunday, October 20, 2019 8:29 PM -
Hi,
Was your issue resolved?
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.
Best Regards,
LeePlease remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Friday, November 8, 2019 1:28 PM