Is MS Graph Replacing All My Old PowerShell Cmdlets?
Asked by
UserFriendly99
Hey everyone! I need some help with transitioning some of my PowerShell scripts that utilize older cmdlets like MSolService, AzureAD, and ExchangeOnlineManagement to use MS Graph instead. I heard that MS Graph is supposed to be replacing some of these older tools, particularly MSolService and AzureAD, but I'm confused about Exchange. I thought they just released a new version of Exchange Online PowerShell. Do I really need to rewrite all my scripts related to Exchange as well? I'm particularly struggling with exporting mail rules for users using Graph. Thanks for any insights!
Answers
Graph is intended to be an all-in-one access point for Microsoft services via a REST API. While it can be a hassle to rewrite scripts to adapt to this new approach, that's the direction Microsoft is taking. Theyโre gradually moving everything over to Graph, so you're likely on the right track by making the switch, even if it feels daunting.
Reply to this answer
In the long run, I think all the PowerShell modules will be replaced with Graph as Microsoft seems to be taking steps towards simplifying how we access their services. Itโs just that right now, there are still some features missing in Graph that we rely on from older modules.
Reply to this answer
Graph aims to centralize API access for Microsoft 365 apps. While not all the functionality is there yet, Microsoftโs goal will likely make older APIs obsolete in the future. Currently, Graph is missing some basics, but itโs supposed to facilitate smoother operations across different services.
SkepticalTechie: Absolutely, but it's definitely a hefty task to fully transition to Graph.
Reply to this answer
Iโve started converting some scripts to Graph too. One challenge I hit is that Graph canโt see mailbox delegation, so I had to stick with Exchange Online for that specific task. Also, Graph doesnโt support certain operations yet, like converting UserMailboxes to SharedMailboxes, which means I still need to rely on the Exchange cmdlets from time to time.
SkepticalTechie: Honestly, using certs for authentication seems better anyway, but it's frustrating that not all services support them.
Reply to this answer
As for Exchange Online, itโs not going anywhere just yet. Theyโve updated the PowerShell module to use REST APIs and modern authentication, so it still works. Check out the details on their site to make sure youโre using the latest.
CuriousCoder88: I thought Entra PowerShell wasn't ready for widespread use yetโhas there been an update on that?
GratefulUser67: Thanks! Really appreciate the clarity.
Reply to this answer
Add your answer
Answers are reviewed before publication.
PowerShellJedi: I've actually switched to using Python for this stuff. It suits my needs better for now.