I have managed to piece together some scripts to manage various aspects of our office 365 tenant. However, I am having trouble right now determining what is the best direction going forward for managing AAD/Intune devices and users. There seem to be several ways including:
- older modules (MSOL) that don't expose some of the attributes I need.
- Directly accessing the Graph API using Invoke-RestMethod
- Newer attempts at hiding the graph calls behind PowerShell commands, eg get-mgdevice. (I believe this is still beta.)
Thanks so much!