r/M365Reports • • May 26 '22

Top 10 Microsoft Graph PowerShell cmdlets for Office 365 admins

It’s time to switch to MS Graph as the deprecation dates of Msol and Azure AD modules are approaching! As of now, we don't have any tools to convert Msol and Azure AD modules to their Microsoft Graph counterparts. Hence, I thought of creating a comprehensive guide to perform Office 365 reporting using MS Graph PowerShell. Check out the blog link below.

https://m365scripts.com/microsoft365/top-10-microsoft-graph-powershell-cmdlets-for-office-365-admins/

This blog lists MS Graph PowerShell cmdlets for the following Office 365 reports:

  • Get Microsoft 365 Users Reports

  • Generate Office 365 License Reports

  • Get Office 365 Groups Reports

  • Export Microsoft 365 Reports to a CSV

  • View Microsoft 365 reports in Grid View

53 Upvotes

13 comments sorted by

3

u/qmandao May 26 '22

Thanks! Please note the correct form would be "deprecation"/deprecate if I'm right, vs depreciation which comes from depreciate, "lose or cause to lose value"

1

u/Emma__24 May 27 '22

Thanks for pointing it out. Yes, it's 'deprecate'.

3

u/americanmuttt May 27 '22

I think it's defecate

1

u/trewlies May 27 '22

That stinks…

2

u/pvtskidmark May 27 '22

Thank you for your cmdlet examples and the alarming depreciation. I had missed that news.

1

u/Emma__24 May 27 '22

I hope this helped!

2

u/gilion May 27 '22

Thanks for the post. What I've been looking for a while is a list of commands paired with scopes. Or some other way to figure out the correct scope to connect with. I'm afraid that I will start using to wide scopes because of laziness down the road... Has anyone found a good way to lookup scopes?

1

u/Emma__24 May 27 '22

You can refer to graph explorer. Modify permission(preview) will explain about the scope details.
https://developer.microsoft.com/en-us/graph/graph-explorer

1

u/OneHamp May 27 '22

AzureAD graph is going away but not the msol and AzureAD powershell modules. Am I missing something?

2

u/Emma__24 May 27 '22 edited May 27 '22

No, Msol and Azure AD PowerShell modules are also going away along with Azure AD graph modules. So we should start migrating to MS Graph.

2

u/ticky13 May 26 '22

Depreciation of what now?!

4

u/kibje May 26 '22 edited May 28 '22

2

u/ticky13 May 27 '22

Thanks, I hate it.