Microsoft 365 Scripts

Microsoft 365 scripts repository

All Posts
News
Security
Microsoft 365
Microsoft Teams
Exchange Online
SharePoint Online
The smarter way to manage Microsoft 365. Try AdminDroid for free!

Microsoft 365 Scripts

m365scripts.com

Browsed by Month

April 2022

Pavee
April 28, 2022
Manage Orphan Groups With Group Ownership Governance Policy

Manage Orphan Groups With Group Ownership Governance Policy

Configure Group Ownership Governance Policy to automatically manage ownerless Microsoft 365 groups. Send automated ownership requests to eligible members when group owners leave or accounts are deleted. Prevent orphaned groups from becoming unmanaged security risks through policy-based owner assignment.

Microsoft 365
M365Scripts Content Team
April 26, 2022
Get All Public Folders and Permissions using PowerShell

Get All Public Folders and Permissions using PowerShell

Export public folder permissions and statistics using Exchange Online PowerShell. List all public folders with Get-PublicFolder, retrieve mail-enabled folders, and check folder sizes including subfolders. Generate comprehensive public folder reports for permission auditing and storage monitoring.

Exchange Online
Pavee
April 21, 2022
List All Mailboxes User Has Access Using PowerShell

List All Mailboxes User Has Access Using PowerShell

List all mailboxes a user has access to in Exchange Online using PowerShell scripts. Identify Full Access, Send As, and Send on Behalf permissions across all mailboxes for specific users. Generate delegate permission reports for security audits and access reviews with downloadable scripts.

Exchange Online
M365Scripts Content Team
April 20, 2022
Get Mailbox Details in Microsoft 365 using PowerShell

Get Mailbox Details in Microsoft 365 using PowerShell

Retrieve Exchange Online mailbox details using Get-Mailbox PowerShell cmdlet with various filtering options. List all mailbox types, view specific properties, export shared mailboxes, and check mailbox sizes. Generate mailbox reports with archive status, storage quotas, and recipient type information.

Exchange Online
M365Scripts Content Team
April 14, 2022
Connect-MgGraph (Microsoft Graph)

Connect-MgGraph (Microsoft Graph)

Connect to Microsoft Graph PowerShell using Connect-MgGraph cmdlet with appropriate permission scopes. Authenticate with user credentials, certificate-based authentication, or access tokens. Specify TenantId for multi-tenant scenarios and configure context scope for session management.

Microsoft 365
M365Scripts Content Team
April 13, 2022
Connect to Microsoft Graph PowerShell

Connect to Microsoft Graph PowerShell

Install and connect to Microsoft Graph PowerShell SDK as Azure AD and MSOnline modules deprecate. Download the Microsoft.Graph module, determine required permission scopes, and establish authenticated sessions. Migrate existing scripts from deprecated modules to Graph PowerShell for future compatibility.

Microsoft 365
M365Scripts Content Team
April 7, 2022
Find Number of Emails Sent and Received by User in Office 365

Find Number of Emails Sent and Received by User in Office 365

Track emails sent and received by Office 365 users using Get-MailTrafficSummaryReport cmdlet. Generate mail traffic statistics for specific date ranges after Get-MailTrafficReport deprecation. Monitor top mail senders and recipients for the past 90 days through Exchange Online PowerShell.

Exchange Online
Pavee
April 6, 2022
Export Office 365 Nested Distribution Group Members using PowerShell

Export Office 365 Nested Distribution Group Members using PowerShell

Export nested distribution group members using PowerShell scripts for comprehensive membership reporting. Retrieve members from distribution lists containing other distribution groups as members. Generate detailed and summary reports for nested group structures to understand complex membership hierarchies.

Exchange Online

Recent Posts

  • How to Connect a Team Site to a Microsoft 365 Group
  • How to Revoke User Sessions Using Microsoft Entra ID
  • How to Set Up Draft Item Security in SharePoint Online
  • Manage User Deletions in Microsoft 365 Using PowerShell
  • Use Quick Steps in SharePoint Online to Automate Repetitive Tasks

Sign up for M365Scripts

AdminDroid
One tool solution for complete Microsoft 365 Management

Automate, audit, and more in one place.

Get Started for Free