Removing Items from Exchange Online Mailboxes Using the Microsoft Graph
This article explains how to write a PowerShell script using Graph APIs to find and remove messages from Exchange Online mailboxes.
This article explains how to write a PowerShell script using Graph APIs to find and remove messages from Exchange Online mailboxes.
In this article, we consider the best way to use PowerShell to find the set of Microsoft 365 Groups with guest members. And once we find those groups, we can check if they have a suitable sensitivity label.
On the surface, it seems easy to run the Remove-Mailbox cmdlet to permanently remove an Exchange Online mailbox. But when you need to remove inactive mailboxes, things are more complex.
Microsoft 365 PowerShell is not a single entity. Rather, it spans a mixture of workload-specific modules and the Microsoft Graph PowerShell SDK. When the time comes to write a new script, what should a developer choose to use?
In this article we discuss how to create a new Microsoft 365 group using cmdlets from the Microsoft Graph PowerShell SDK. After creating the new group, we use the New-MgTeam cmdlet to team-enable the group.
The complexities of Office 365 tenants only increases the complexities of creating an Office 365 migration plan. To generate an initial assessment for a tenant, I created a PowerShell script to report the most important information that influences migration planning.
PowerShell uses a concept called pipelining to combine two or more cmdlets to perform a cohesive task. The PowerShell pipeline combines singularly useful cmdlets together to process data. Used intelligently, the pipeline is a great way to process data through a series of steps to automate common administrative operations. Mastering the pipeline, or at least becoming comfortable with pipelining cmdlets, is an essential skill for anyone using PowerShell to manage Microsoft 365 tenants.
The Microsoft Graph operates on a least permission model, which means that developers are forced to ask for permissions for the actions they wish to perform. This is a very different approach to the way traditional PowerShell modules work, so it's an area to focus on when converting scripts which use cmdlets from the Azure AD and MSOL modules to the Microsoft Graph PowerShell SDK. In this article, we look at four ways to find out what permissions are needed to perform different actions and explain how the Graph use the permissions.
Exchange Server on-premises organizations need somewhere to test scenarios for updating, testing configurations, and running occasional “what-if” testing. This article provides guidance on notable alternatives for delivering suitable Exchange 2019 lab environments - without breaking the bank.
Exchange Online boasts a set of mailbox permissions that allow delegate access to some (or all) content. In this article, we describe how to notify mailbox owners when administrators assign new permissions over their mailbox. Naturally, the notification is via email, but there are some twists along the way.
It's common to find a requirement to create new Microsoft 365 accounts with PowerShell. We're at a point of transition when the old method of using the Azure AD module will switch to the Microsoft Graph PowerShell SDK or Graph API queries. In this article, we explain how to create new accounts and assign licenses with both the Azure AD module and the Microsoft Graph PowerShell SDK.