7 Must-Have Graph PowerShell Scripts to Manage Microsoft 365 Groups & Teams

Microsoft 365 Groups and Teams are central to collaboration — but without automation, managing them at scale becomes tedious. These Graph PowerShell scripts will help you create, manage, audit, and optimize your Groups and Teams effortlessly. This blog contains 7 must-have scripts for every Microsoft 365 admin.

Introducing Graph PowerShell Cmdlet Finder: Find the Right Microsoft Graph PowerShell Cmdlet Instantly!

Managing Microsoft 365 with Graph PowerShell just got a whole lot easier! We’re excited to launch our brand-new Graph PowerShell Cmdlet Finder — a free, interactive tool that helps you find the exact cmdlet you need in just two clicks. Whether you’re trying to: Manage users or groups, Assign licenses, Handle Outlook mails, Or simply connect to Microsoft Graph...This tool has your back.

Introducing the Graph PowerShell Cmdlet Explorer Widget

Managing Microsoft 365 with Graph PowerShell often requires finding the right cmdlet and a working example that actually does what you need. However, digging through extensive documentation or outdated blog posts just to locate a simple usage example can be frustrating.

To simplify this, we’re excited to introduce the Graph PowerShell Cmdlet Explorer Widget – a quick-access tool that allows M365 admins to instantly retrieve cmdlet usage examples either by selecting the cmdlet from a dropdown or using a search box.

Comprehensive List of Microsoft 365 Applications and Services

Microsoft 365 (formerly Office 365) is a robust productivity suite designed to support businesses, educational institutions, and individual users. With a vast range of Microsoft 365 tools, applications, and services, it empowers users to collaborate, automate, and enhance productivity effortlessly.

Which Microsoft 365 Tools Are Best to Track Projects?

In today’s fast-paced work environment, effective project tracking is essential to ensure deadlines are met, tasks are completed, and teams stay aligned. Microsoft 365 offers a range of project management tools that make tracking projects seamless and collaborative. But with so many options, how do you decide which ones are best for your needs?

Microsoft 365 vs Office 365: What’s the Difference?

If you’ve ever wondered about the difference between Microsoft 365 vs Office 365, you’re not alone. While the names sound similar, these two offerings are distinct in terms of features, benefits, and target audiences. Understanding their differences can help you choose the right solution for your personal or business needs.

Ultimate Guide for Using Get-MgUser Cmdlet

Managing users in Microsoft 365 doesn’t have to be a headache. With the Get-MgUser cmdlet, you can easily fetch user details, filter results, and automate repetitive tasks—all in just a few lines of PowerShell. This blog breaks it all down for you with real-world examples, easy tips, and best practices to make your admin life easier. Whether you're new to PowerShell or looking to level up your skills, this guide is your go-to resource for mastering user management!

Ultimate Guide for Using Get-MgGroup Cmdlet

Managing groups in Microsoft 365 is a critical task for administrators. Groups enable seamless collaboration by connecting users, applications, and shared resources like Teams, SharePoint, and Outlook. While the Microsoft 365 Admin Center provides a user-friendly interface to manage groups, it may not always be efficient for handling bulk tasks or advanced queries. In this guide, we’ll dive deep into the Get-MgGroup cmdlet...

What Are Disabled Users in Microsoft 365 and How to Manage Them Effectively?

Managing users is a cornerstone of Microsoft 365 administration. Among these, disabled users require particular attention for maintaining security, compliance, and operational efficiency. In this blog, we’ll explore what disabled users are, why managing them is crucial, and how you can streamline this process.

Importance of Searching Microsoft 365 Users Based on Attributes

Managing users in Microsoft 365 is a core responsibility for admins, but it can quickly become overwhelming, especially in large organizations. One critical aspect of user management is the ability to search for users based on specific attributes, such as department, job title, admin roles, and usage location.

Understanding Active Users in Microsoft 365: Key Metrics and Management Tips

Active users form the heartbeat of any Microsoft 365 tenant, driving collaboration, communication, and productivity across the organization. But what exactly defines an active user, and why is tracking their activity important? In this blog, we’ll dive into the essentials of active users, explain how to identify and track them, and introduce a simple way to streamline this process.

Who Are Unlicensed Users in Microsoft 365?

Unlicensed users in Microsoft 365 are accounts that exist in your tenant but do not have an active license assigned. These users can include external collaborators, inactive employees, or placeholders for future onboarding. While they don’t consume a paid license, they can still be a potential source of clutter, making it challenging to manage your tenant efficiently.

Monitor Recently Created Microsoft 365 Users: Key Metrics and Management Tips

Managing users in a Microsoft 365 environment is not just about maintaining current accounts—understanding the creation of new users is equally critical. A recently created user refers to any account added to your tenant within a specific time frame. Tracking these users allows administrators to ensure compliance, allocate resources efficiently, and detect anomalies in account creation patterns.

Tracking Microsoft 365 Group Memberships

Microsoft 365 Groups provide a centralized way to manage collaboration among users in an organization. These groups are built around shared resources such as Outlook mailboxes, calendars, SharePoint sites, and more. Whether for a project team, department, or interest-based community, Microsoft 365 Groups simplify communication and teamwork by giving members seamless access to these shared resources.

Tracking Recently Deleted Microsoft 365 Users

Managing a Microsoft 365 environment can be challenging, especially when dealing with user accounts. Ensuring proper visibility into recently deleted users can save time and protect your organization from potential risks. That’s where our Recently Deleted Users tool steps in to simplify the process.

Ultimate Guide for Using Get-MgGroupMember Cmdlet

Managing group memberships in Microsoft 365 is a crucial part of ensuring that the right individuals have access to the resources and tools they need. Whether it’s adding or removing users, monitoring group memberships, or automating routine tasks, administrators need a reliable way to manage and query group members.

Tracking Microsoft 365 User Managers

In Microsoft 365 environments, understanding organizational hierarchies and relationships is vital for effective user management. One such relationship is the user-manager connection, which plays a key role in workflow approvals, reporting, and security delegation. In this blog....

Ultimate Guide for Using Get-MgGroupOwner Cmdlet

Managing group ownership in Microsoft 365 is a key responsibility for administrators. Group owners play a pivotal role in maintaining the group’s functionality and security, as they manage memberships, configure settings, and oversee group access to resources like Teams, SharePoint, and Planner.

Ultimate Guide for Using Get-MgTeam Cmdlet

Microsoft Teams has become a cornerstone of collaboration for organizations using Microsoft 365. Managing Teams effectively is critical for ensuring smooth communication, organized workflows, and secure operations. While the Microsoft Teams Admin Center offers a user-friendly interface for.....

Ultimate Guide for Using New-MgUser Cmdlet

Managing users is one of the most fundamental tasks for Microsoft 365 administrators. Whether onboarding new employees, managing existing accounts, or handling bulk user imports, a streamlined approach to creating user accounts is essential for efficiency and accuracy.

Track Microsoft 365 User Managers Without Managers

Managing users in a Microsoft 365 environment can be challenging, especially when some users are not assigned a manager. Such cases can lead to inefficiencies in workflow, accountability, and organizational hierarchy. To address this, we’ve developed the Microsoft 365 Users Without Manager Report

Ultimate Guide for Using New-MgGroup Cmdlet

Microsoft 365 Groups are essential for enabling collaboration across organizations. Whether you’re setting up a Team in Microsoft Teams, configuring a shared mailbox in Exchange Online, or creating a SharePoint site, groups form the foundation of seamless teamwork and resource sharing.

Ultimate Guide for Using Get-MgTeamMember Cmdlet

Microsoft Teams has revolutionized collaboration in the workplace, making it easier for teams to communicate, share files, and manage projects. As a Microsoft 365 administrator, managing Teams memberships is a critical part of ensuring the right people have access to the right resources.

Ultimate Guide for Using New-MgTeam Cmdlet

Creating and managing Teams efficiently is a key responsibility for Microsoft 365 administrators. While the Teams Admin Center provides a graphical interface, the New-MgTeam cmdlet offers a powerful way to automate Team creation tasks and integrate them into larger workflows.

Ultimate Guide for Using New-MgGroupMember Cmdlet

Managing group memberships is one of the essential tasks for Microsoft 365 administrators. Groups are the backbone of collaboration in Microsoft 365, giving users access to shared resources like Teams, SharePoint sites, and mailboxes. Adding members to groups efficiently is critical to maintaining productivity and access control.

Ultimate Guide for Using Get-MgUserManager Cmdlet

The Get-MgUserManager cmdlet, part of the Microsoft Graph PowerShell module, allows administrators to retrieve manager information for users in Microsoft 365. This guide walks you through everything you need to know, including practical examples and best practices.

Ultimate Guide for Using Set-MgUserManagerByRef Cmdlet

The Set-MgUserManagerByRef cmdlet, part of the Microsoft Graph PowerShell module, allows administrators to programmatically assign or update a user’s manager. This guide provides a comprehensive walkthrough of its usage, including practical examples and best practices.

Ultimate Guide for Using Get-MgUserDirectReport Cmdlet

The Get-MgUserDirectReport cmdlet, part of the Microsoft Graph PowerShell module, allows administrators to retrieve a list of users who report to a specific manager. This guide will take you through its use, from setting up Graph PowerShell to practical examples and best practices.

Ultimate Guide for Using Get-MgApplication Cmdlet

Microsoft 365 administrators often need to manage and monitor registered applications in their Azure Active Directory (Microsoft Entra ID). These applications can be enterprise apps, service principals, or custom apps registered by developers for integration with Microsoft 365 services.

Ultimate Guide for Using Get-MgUserMemberOf Cmdlet

Managing user group memberships in Microsoft 365 is crucial for ensuring proper access control, security, and streamlined IT administration. Whether you're auditing user permissions, troubleshooting access issues, or automating group management, knowing which groups a user belongs to is essential.

Ultimate Guide for Using New-MgGroupOwnerByRef Cmdlet

The New-MgGroupOwnerByRef cmdlet is a powerful Microsoft Graph PowerShell command that allows administrators to assign owners to Microsoft 365 groups efficiently. By using this cmdlet, IT admins can streamline group management, ensure appropriate delegation, and enhance security by designating multiple owners.

Microsoft 365 Pricing: A Complete Guide for Businesses and Individuals

Microsoft 365 offers a versatile range of pricing plans designed to cater to various needs, from small businesses and large enterprises to educational institutions and government organizations. Understanding the Microsoft 365 pricing structure is essential for selecting the right plan for your organization.

Microsoft 365 Apps for Business: The Ultimate Productivity Suite for Modern Workplaces

In today's fast-paced business environment, efficiency and collaboration are key to success. Microsoft 365 Apps for Business offers a comprehensive suite of tools that help organizations streamline their operations, enhance communication, and improve productivity. This cloud-based solution is trusted by millions of businesses worldwide for its reliability, scalability, and seamless integration with existing workflows.

Microsoft 365 Admin Center: Your Hub for Efficient IT Management

Managing an organization's Microsoft 365 environment can be challenging, but the Microsoft 365 Admin Center simplifies this task with its user-friendly interface and powerful management tools. Whether you're an IT professional or a business owner, the Microsoft 365 Admin Center is your go- to platform for managing users, services, and security efficiently.

Microsoft 365 Subscription: A Complete Guide for Businesses and Individuals

Microsoft 365 offers a versatile range of subscription plans designed to cater to various needs, from small businesses and large enterprises to educational institutions and government organizations. Understanding the Microsoft 365 subscription structure is essential for selecting the right plan for your organization. In this guide, we'll break down the different Microsoft 365 subscription models to help you make an informed decision.

Get-MgUserLicenseDetail Graph PowerShell Cmdlet

The Get-MgUserLicenseDetail cmdlet in Microsoft Graph PowerShell helps administrators retrieve detailed information about assigned licenses for specific users. This cmdlet is useful for: Auditing assigned licenses within the organization, Ensuring compliance with purchased license quotas, Tracking license usage trends, Identifying unlicensed users or those with redundant assignments, Automating reports for license management.

Get-MgUserMessage Graph PowerShell Cmdlet

The Get-MgUserMessage cmdlet in Microsoft Graph PowerShell allows administrators and users to retrieve email messages from a specific mailbox in Microsoft 365. This cmdlet enables users to fetch individual or multiple messages, apply filters, and extract specific email properties for reporting or automation purposes.

New-MgUserMessage Graph PowerShell Cmdlet

The New-MgUserMessage cmdlet in Microsoft Graph PowerShell enables administrators and users to create new email messages programmatically within Microsoft 365 mailboxes. This cmdlet allows the creation of simple or HTML-formatted emails, as well as messages with attachments, providing a powerful way to automate email communication.

Remove-MgUserMessage Graph PowerShell Cmdlet

The Remove-MgUserMessage cmdlet in Microsoft Graph PowerShell allows administrators and users to delete email messages from a specific mailbox in Microsoft 365. This cmdlet is useful for managing mailbox cleanup, enforcing retention policies, and automating email deletion based on specific conditions.

Teams Admin Center: A Comprehensive Guide for Microsoft Teams Management

The Teams Admin Center serves as the primary web-based management portal for Microsoft Teams. This guide explores the Teams Admin Center, its functionalities, different access methods, and how administrators can manage Teams using the Microsoft 365 Admin Center, Teams Admin Center, and Graph PowerShell.

Exchange Admin Center: A Comprehensive Guide for Microsoft Exchange Management

Microsoft Exchange is a critical component of Microsoft 365, providing robust email management, calendaring, and collaboration features. To streamline Exchange administration, Microsoft offers the Exchange Admin Center (EAC)—a powerful web-based portal designed for managing mailboxes, policies, and security settings.

Send-MgUserMessage Graph PowerShell Cmdlet

The Send-MgUserMessage cmdlet in Microsoft Graph PowerShell enables administrators and users to send email messages from a Microsoft 365 mailbox programmatically. It works in conjunction with the New-MgUserMessage cmdlet, allowing messages to be created as drafts and then sent.

Microsoft Entra Admin Center: Managing Azure Active Directory Effectively

Microsoft Entra Admin Center, formerly known as the Azure Active Directory (Azure AD) portal, is a cloud-based identity and access management service designed to help organizations securely manage users, groups, applications, and devices. It is an integral component of Microsoft Entra ID, providing a centralized interface for administrators to control identity and security policies across Microsoft 365 and Azure services.

Send-MgUserMail Graph PowerShell Cmdlet

The Send-MgUserMail cmdlet in Microsoft Graph PowerShell enables administrators and users to send email messages programmatically from a Microsoft 365 mailbox. This cmdlet allows emails to be sent with CC recipients, attachments, and custom internet message headers.

How to Use Get-MgUserManager to Fetch User Manager Details

The Get-MgUserManager cmdlet is part of the Microsoft Graph PowerShell module and is used to retrieve the manager of a specific Microsoft 365 user. This cmdlet helps administrators identify reporting structures within an organization by fetching the manager details of a given user.

Generating Reports on Team Count in Microsoft 365 Using Graph PowerShell

Microsoft Teams has become an essential collaboration tool for organizations worldwide. As an administrator, tracking the number of teams within your tenant is crucial for monitoring adoption, ensuring compliance, and managing resources effectively.

How to Use Get-MgUser to Fetch Microsoft 365 Users?

If you're managing a Microsoft 365 environment, chances are you need to retrieve user details often. Whether it's for auditing, reporting, or user management, the Get-MgUser cmdlet in Microsoft Graph PowerShell is a powerful tool to fetch user information quickly and efficiently.

How to Use Get-MgUserDirectReport to Fetch Microsoft 365 User Direct Reports

Microsoft Teams is a powerful collaboration tool that allows organizations to improve communication, streamline workflows, and enhance productivity. If you're an IT admin, there are multiple ways to create a Microsoft Team within Microsoft 365. In this blog post, we will explore three different methods:

3 Ways to Create Microsoft Team in Microsoft 365

Microsoft Teams is a powerful collaboration tool that allows organizations to improve communication, streamline workflows, and enhance productivity. If you're an IT admin, there are multiple ways to create a Microsoft Team within Microsoft 365. In this blog post, we will explore three different methods:

How to Use Get-MgGroup to Fetch Microsoft 365 Groups

Microsoft 365 administrators often need to retrieve details about groups within their tenant for reporting, auditing, or management purposes. The Get-MgGroup cmdlet, part of the Microsoft Graph PowerShell module, allows you to fetch group details efficiently using various filters and search parameters.

How to Use Get-MgGroupMember to Fetch Group Members

The Get-MgGroupMember cmdlet is part of the Microsoft Graph PowerShell module, which enables administrators to manage Microsoft 365 resources efficiently. This cmdlet is specifically designed to retrieve the members of a given Microsoft 365 group, making it an essential tool for user and group management.

How to Use Get-MgGroupOwner to Fetch Group Owners

The Get-MgGroupOwner cmdlet is part of the Microsoft Graph PowerShell module, designed to retrieve the owners of a specified Microsoft 365 group. Group owners have administrative privileges over the group, including managing memberships and settings.

How to Fetch Disabled Users Using Graph PowerShell?

Managing user accounts efficiently is a crucial task for IT administrators. One common scenario is identifying and tracking disabled user accounts. In this blog, we’ll discuss who disabled users are, why accounts get disabled, and how to fetch disabled user accounts using Microsoft Graph PowerShell.

How to Fetch Inactive Users Using Graph PowerShell?

Inactive user accounts can pose security risks and consume unnecessary Microsoft 365 licenses. Identifying these accounts helps administrators optimize resource usage and enforce security policies. In this guide, we’ll explore what defines an inactive user, how long a user account should be inactive before being flagged, and how to fetch inactive user accounts using Microsoft Graph PowerShell.

How to Restore Microsoft 365 User Using Graph PowerShell?

Accidentally deleted a user in Microsoft 365? Don’t worry — you can restore them easily using Microsoft Graph PowerShell. This guide walks you through what user restore means, why it's important, and how to do it step by step with a simple PowerShell command.

How to Use New-MgUser to Create Microsoft 365 Users?

Creating users in Microsoft 365 is a foundational task for IT administrators. Whether you're onboarding a new employee or provisioning multiple accounts at once, automation using PowerShell can save you time and reduce manual errors. In this guide, we’ll explore how to use the New-MgUser cmdlet from the Microsoft Graph PowerShell module to create users efficiently.

How to Use New-MgGroup to Create Microsoft 365 Groups?

Microsoft 365 Groups are the backbone of collaboration across Microsoft Teams, Outlook, SharePoint, and other M365 services. Whether you're creating a security group or a collaborative Office 365 Group (also known as a unified group), the New-MgGroup cmdlet from Microsoft Graph PowerShell offers a powerful and flexible way to automate the process.

How to Use New-MgGroupOwner to Add Microsoft 365 Group Owners?

When managing Microsoft 365 Groups, it’s essential to assign ownership to ensure proper access, lifecycle management, and accountability. The New-MgGroupOwner cmdlet in Microsoft Graph PowerShell makes this task effortless by letting you programmatically assign owners to Microsoft 365 Groups — whether it's one owner, many owners, or importing from a CSV file.

How to Use Remove-MgUser to Delete Microsoft 365 Users?

Managing users is a critical task for any Microsoft 365 administrator, and sometimes that includes removing users who have left the organization or no longer need access. Microsoft Graph PowerShell makes this easy with the Remove-MgUser cmdlet. In this article, we’ll walk through everything you need to know about Remove-MgUser, including usage scenarios, syntax, and real-world examples.

How to Use New-MgGroupMember to Add Microsoft 365 Group Members?

Adding users to Microsoft 365 groups is a common administrative task—especially when managing large teams, projects, or distribution lists. Thankfully, Microsoft Graph PowerShell provides an efficient cmdlet to automate this: New-MgGroupMember. In this guide, we’ll explore how to use the New-MgGroupMember cmdlet, walk through real-world examples, and highlight when and why this cmdlet comes in handy.

How to Use New-MgGroupMemberByRef to Add Microsoft 365 Group Members?

Adding users to Microsoft 365 groups is a common task for IT administrators. While the Microsoft 365 admin portal allows for manual group management, PowerShell provides a faster, repeatable, and scalable way to handle group membership—especially when dealing with multiple users. In this article, we’ll walk you through how to use the New-MgGroupMemberByRef cmdlet to add members to Microsoft 365 groups efficiently using Microsoft Graph PowerShell.

How to Use Remove-MgGroupMemberByRef to Remove Microsoft 365 Group Members?

Managing Microsoft 365 Groups often involves not just adding members, but also removing them when they leave a department, switch roles, or exit the organization. That’s where the Remove-MgGroupMemberByRef cmdlet from the Microsoft Graph PowerShell module comes in handy In this guide, we’ll walk through what this cmdlet does, why you’d use it, and how to use it to remove group members—whether you're removing one user or performing a bulk cleanup using a CSV file.

How to Use Get-MgUserMessage to Fetch User Mails?

When managing Microsoft 365 environments, administrators often need to audit or fetch users' emails for troubleshooting, compliance, or reporting. The Get-MgUserMessage cmdlet from Microsoft Graph PowerShell makes this task seamless by letting you retrieve email messages directly from users’ mailboxes.

In this guide, we'll explore why and how to use this cmdlet, walk through practical examples, and highlight real-world use cases.

How to Use Get-MgUserMailFolder to Fetch User Mail Folders?

Managing mail folders is a common task for Microsoft 365 administrators. Whether you’re auditing user mailboxes, retrieving folder structure, or building automation around mailbox cleanup, the Get-MgUserMailFolder cmdlet comes in handy.

In this guide, we’ll walk through what this cmdlet does, why it’s useful, how to use it effectively, and provide real-world examples to help you get started.

How to Use Get-MgUserMailFolderMessageRule to Fetch User Mail Folder Message Rules?

Email message rules help users organize their inboxes by automatically taking actions on incoming mail, such as moving, deleting, or categorizing messages. As an administrator or support engineer, being able to view these rules can help troubleshoot mail flow issues or ensure compliance.

In this article, we'll cover how to use the Get-MgUserMailFolderMessageRule cmdlet to fetch message rules for a user's mail folder using Microsoft Graph PowerShell.

How to Use New-MgUserMessage to Automate Mails?

If you're looking to automate email communication using Microsoft 365 and Graph PowerShell, you're in the right place. Whether you're sending reminders, sharing reports, or delivering status updates—New-MgUserMessage can help you craft messages programmatically and streamline your workflows.

Let’s dive into how this cmdlet works and explore some real-world examples.

How to Use New-MgUserMailFolder to Create User Mail Folders?

Organizing mailbox folders is essential for maintaining a clutter-free email experience—especially in large enterprises where communication is nonstop. Whether you're onboarding users, preparing shared mailbox structures, or building automated routines, the New-MgUserMailFolder cmdlet can be your best friend.

This blog will show you how to use New-MgUserMailFolder to create mail folders in a Microsoft 365 user's mailbox using PowerShell and Microsoft Graph.

How to Use New-MgUserMailFolderMessageRule to Create User Mail Folder Rules?

Automating email organization is one of the best ways to keep your inbox clean and efficient. As an admin or power user, being able to set up rules programmatically using PowerShell can save tons of time—especially across multiple users.

In this guide, we’ll walk you through the New-MgUserMailFolderMessageRule cmdlet and show how to create email rules directly in a user’s mailbox using Microsoft Graph PowerShell.

How to Use Get-MgUserMailFolderMessageRule to Fetch Message Rules?

Managing mailbox rules is crucial for automating email workflows, and Microsoft Graph PowerShell provides a simple way to access these rules -- using Get-MgUserMailFolderMessageRule cmdlet. In this guide, you'll learn how to fetch, view, and filter message rules effectively.

How to Use Send-MgUserMessage to Send M365 Mails?

Sending emails programmatically in Microsoft 365 (M365) has become more accessible and efficient thanks to Graph PowerShell. One powerful cmdlet that helps with this task is Send-MgUserMessage. In this guide, we'll walk you through everything you need to know to start sending mails effortlessly.

How to Use Get-MgUserMemberOf to Fetch User Group Memberships?

Managing user group memberships is an essential task for IT administrators working in Microsoft 365 environments. With Microsoft Graph PowerShell, you can easily retrieve the groups a user belongs to using the Get-MgUserMemberOf cmdlet. This blog will guide you through understanding, using, and maximizing the power of Get-MgUserMemberOf.

We've Upgraded Our Free Graph PowerShell Cmdlet Finder Tool!

We just made our Graph PowerShell Cmdlet Finder Tool even better! Now, in addition to the core CRUD operations, you can explore advanced cmdlets for Users, Groups, and Mail (Outlook) — all in just a few clicks. No sign-up. No fluff. Just straight forward answers.

How to Use Update-MgUser to Update Microsoft 365 Users?

Managing user accounts in Microsoft 365 often involves updating user details like job titles, phone numbers, office locations, or enabling/disabling accounts. The Update-MgUser cmdlet from the Microsoft Graph PowerShell SDK provides a modern and efficient way to make these changes—whether you're updating a single user or performing bulk operations.

How to Use Update-MgGroup to Update Microsoft 365 Groups?

Managing Microsoft 365 Groups is a crucial part of maintaining organizational structure, access controls, and communication workflows. Whether you're rebranding teams, updating descriptions, or controlling visibility, the Update-MgGroup cmdlet in Microsoft Graph PowerShell makes these tasks quick and efficient.

In this blog, we'll walk you through what Update-MgGroup does, why it's useful, its syntax, real-world usage examples, and frequently asked questions.

How to Use Remove-MgGroup to Delete Microsoft 365 Groups?

Over time, Microsoft 365 environments can become cluttered with unused or obsolete groups. Regular cleanup is crucial for keeping things organized, reducing security risks, and minimizing clutter in services like Outlook, Teams, and SharePoint.

This blog post shows you how to use the Remove-MgGroup cmdlet from Microsoft Graph PowerShell to safely and efficiently delete Microsoft 365 Groups—whether manually or in bulk.

How to Use New-MgGroupOwnerByRef to Add Microsoft 365 Group Owners?

Managing Microsoft 365 Groups efficiently means ensuring the right people have the right permissions—and assigning owners is a critical part of that process. Whether you're managing a single group or automating assignments across your organization, the New-MgGroupOwnerByRef cmdlet from Microsoft Graph PowerShell simplifies adding group owners using their unique identifiers.

In this blog, we’ll explore what this cmdlet does, why you should use it, and walk through practical examples—including how to add owners in bulk using a CSV file.

How to Use Remove-MgGroupOwnerByRef to Remove Microsoft 365 Group Owners?

Managing Microsoft 365 Groups includes not just assigning the right owners but also removing outdated or incorrect ownership assignments. Whether an employee has changed roles or left the organization, it's essential to keep group ownership updated to avoid administrative gaps.

The Remove-MgGroupOwnerByRef cmdlet in Microsoft Graph PowerShell makes this task seamless. In this guide, you'll learn what it does, when to use it, and how to remove group owners—individually or in bulk.

How to Use Get-MgUserLicenseDetail to Fetch User License Details?

Managing Microsoft 365 user licenses is an essential part of any IT admin's daily responsibilities. Whether you're auditing license assignments, troubleshooting access issues, or simply keeping track of usage, having visibility into individual user licenses is critical. That’s where the Get-MgUserLicenseDetail cmdlet in Microsoft Graph PowerShell comes in.

How to Use Send-MgUserMail to Send Microsoft 365 Mails?

Need to send emails programmatically from a Microsoft 365 account using PowerShell? Whether it's for automation, alerts, or sending reports with attachments, the Send-MgUserMail cmdlet from Microsoft Graph PowerShell is your go-to solution. This guide shows you how to use Send-MgUserMail with real-world examples to send emails—including CCs, attachments, and even custom headers.

Top 5 Scripts Every M365 Admin Should Use to Track Admin Role Activity

Keeping track of admin roles is critical for securing your Microsoft 365 tenant. Privileged role misuse, accidental assignments, or orphaned roles can leave you exposed to serious risk. This blog contains 5 essential Graph PowerShell scripts to help M365 admins audit, track, and stay in control of admin role activity.

How to Use Get-MgDirectoryRole to Fetch Microsoft 365 Directory Roles?

Microsoft 365 offers several directory roles that define what users can and cannot do in your tenant. Whether you're managing Global Administrators, Exchange Admins, or custom roles, it's essential to have visibility into these assignments. Fortunately, the Get-MgDirectoryRole cmdlet in Microsoft Graph PowerShell makes this process easy.

In this article, we'll explore what the cmdlet does, why it's useful, and how to use it with practical examples.

How to Use New-MgDirectoryRoleMemberByRef to Assign Microsoft 365 Directory Roles?

Managing admin access in Microsoft 365 is a critical task for any IT administrator. Assigning users or service principals to specific directory roles—like Global Administrator or Application Administrator—ensures proper access control and delegation.

In this blog, you’ll learn how to use the powerful New-MgDirectoryRoleMemberByRef cmdlet from the Microsoft Graph PowerShell SDK to safely and accurately assign directory roles in your tenant.

How to Use Get-MgDirectoryRoleMember to Fetch Microsoft 365 Directory Role Members?

Microsoft 365 directory roles define what users and applications can do across your tenant. While you may already know how to view these roles, it's equally important to see who is assigned to each one. The Get-MgDirectoryRoleMember cmdlet in Microsoft Graph PowerShell helps you do just that.

In this article, we’ll walk you through what this cmdlet does, how to use it, and how to retrieve detailed member information—including user display names and even their managers.

Top 8 Microsoft Graph PowerShell Scripts for User Management

Managing Microsoft 365 users manually is inefficient and prone to error. Whether you're onboarding, offboarding, licensing, or auditing users, Graph PowerShell gives you the automation edge. Below are 8 practical, ready-to-use scripts every Microsoft 365 administrator should have.

How to Use Restore-MgDirectoryDeletedItem to Restore Directory Users?

Have you ever accidentally deleted a user in Microsoft Entra ID (Azure AD)? Don’t panic—Microsoft Graph PowerShell gives you the tools to recover the user quickly. In this article, you’ll learn how to use the Restore-MgDirectoryDeletedItem cmdlet to bring deleted directory users back to life.

How to Use Get-MgUserJoinedTeam to Fetch Microsoft Teams a User Has Joined?

If you're a Microsoft 365 admin looking to identify which Teams a user has joined, the Get-MgUserJoinedTeam cmdlet in Microsoft Graph PowerShell can make your job a lot easier. This cmdlet provides a simple, efficient way to retrieve a list of Microsoft Teams that a specific user is a member of.

What are Outlook Groups?

In today’s collaborative work environment, communication and information sharing are more important than ever. Whether you're part of a project team, a department, or an interest group, you need a simple and efficient way to connect. That’s where Outlook Groups come in—a powerful feature of Microsoft 365 that brings people, emails, calendars, files, and notes together in one shared space.

How to Track Licensed Microsoft 365 Administrators In Your Tenant?

As a Microsoft 365 admin, keeping tabs on your licensed administrators isn't just good practice — it's essential for security, compliance, and license optimization. In this post, we'll explain 2 ways using which you can track licensed Microsoft 365 administrators effortlessly — either via Graph PowerShell or a ready-to-use GUI-based WinForms tool.

What are Microsoft 365 Security Defaults?

In today’s digital world, protecting your organization from identity-related attacks is crucial. Microsoft 365 comes with a built-in feature called Security Defaults to help secure user accounts and data with minimal configuration.

But what exactly are Security Defaults, why are they important, and how do you turn them on—especially if they’re currently disabled? This blog provides the answers.

How to Use Set-MgUserManagerByRef to Assign Microsoft 365 User Manager?

Managing reporting relationships in Microsoft 365 is essential for smooth organizational workflows. Whether you're setting up organizational charts, configuring approval hierarchies, or syncing with HR systems, assigning a manager to a user is a vital step.

In this blog, we'll walk you through how to use the Set-MgUserManagerByRef cmdlet from Microsoft Graph PowerShell to assign managers efficiently.

How to Use Set-MgUserLicense to Assign Microsoft 365 User License?

Managing user licenses is a core responsibility for Microsoft 365 administrators. Whether onboarding new users, updating subscriptions, or managing trial transitions, assigning licenses efficiently can save you time and reduce errors. In this blog, we’ll explore how to use the powerful Set-MgUserLicense cmdlet from Microsoft Graph PowerShell to assign Microsoft 365 licenses like a pro.

How to Use Get-MgUserCount to Fetch Microsoft 365 User Count?

Keeping track of user accounts in your Microsoft 365 environment is essential for effective licensing, compliance, and security management. Whether you're monitoring active users or checking for deprovisioned accounts, the Get-MgUserCount cmdlet makes it simple to fetch user counts directly via Microsoft Graph PowerShell.

How to Track Microsoft 365 User Password Self Service Actions In Your Tenant?

Microsoft 365 offers self-service capabilities that empower users to manage their own passwords without administrator involvement. But with this convenience comes a need for visibility — especially when it comes to auditing and security. In this blog, we’ll walk you through what Password Self Service is, how to enable it, and most importantly — how to track who changed or reset their password using Microsoft Entra ID, Graph PowerShell, or our simple GUI tool.

How to Use New-MgDirectoryRole to Create Directory Roles?

When managing access and roles in Microsoft 365 and Azure Active Directory (AAD), there are times you’ll need to activate a directory role before assigning it to users. That’s exactly what the New-MgDirectoryRole cmdlet is designed to do. In this article, we'll explain what this cmdlet is, why it matters, how to use it, and share a few practical examples to help you get started.

How to Use Get-MgDirectoryRoleTemplate to Fetch Entra ID Directory Role Templates?

When managing Microsoft 365 and Azure Active Directory, it's crucial to understand directory roles and how they translate into permissions and access. One useful tool in your Graph PowerShell toolkit is the Get-MgDirectoryRoleTemplate cmdlet. In this post, we'll walk you through what it is, why you should use it, and how to extract meaningful information from directory role templates.

How to Use Remove-MgDirectoryRoleMemberByRef to Remove Members From Directory Roles?

Managing directory roles effectively is critical to maintaining security and governance in Microsoft 365 and Azure Active Directory. Whether you're removing users, groups, or applications from privileged roles, the Remove-MgDirectoryRoleMemberByRef cmdlet offers a secure and automated way to do it.

In this blog, we’ll explore what this cmdlet does, why it’s essential, and walk through practical examples to help you remove role assignments with confidence.

How to Use Get-MgRoleManagementDirectoryRoleAssignment to Retrieve Azure AD Role Assignments?

When managing Microsoft Entra ID (formerly Azure AD), one of the most important administrative tasks is keeping track of who has which roles — especially at the directory level. Whether you’re running audits, reviewing access controls, or troubleshooting permissions, knowing how to retrieve these role assignments is crucial.

This blog will walk you through how to use the Get-MgRoleManagementDirectoryRoleAssignment cmdlet in Microsoft Graph PowerShell to retrieve and understand Azure AD directory role assignments in a clear and straightforward way.

How to Use Get-MgRoleManagementDirectoryRoleDefinition to Fetch Directory Role Definitions?

Microsoft Entra ID (formerly known as Azure Active Directory) provides a rich set of directory roles to help you manage access and permissions at scale. Whether it's built-in roles like Global Administrator or custom-defined roles tailored to your organization’s needs, it’s important to be able to retrieve, review, and understand these roles effectively.

This blog introduces the Get-MgRoleManagementDirectoryRoleDefinition cmdlet — your go-to command for fetching directory role definitions using Microsoft Graph PowerShell.

How to Manage Microsoft Teams Using PowerShell?

Microsoft Teams has become a cornerstone of modern workplace collaboration. While the Microsoft Teams Admin Center provides a graphical interface for management, PowerShell empowers administrators to automate repetitive tasks, generate reports, and handle complex bulk operations efficiently.

Whether you're a seasoned admin or just getting started, managing Teams with PowerShell can save time, reduce human error, and help scale operations with precision.

Microsoft 365 Admin Center: A Comprehensive Guide for User Management

Managing users efficiently is at the heart of maintaining a secure and productive Microsoft 365 environment. Whether you're onboarding new employees, updating user details, or removing inactive accounts, the Microsoft 365 Admin Center offers a straightforward, graphical interface to perform all user-related tasks.

In this guide, we’ll walk you through the essentials of user management via the Admin Center — and briefly touch upon PowerShell automation for those ready to scale and streamline operations.

Manage Microsoft 365 Users Using Bulk Operations

Managing users in Microsoft 365 can become time-consuming and error-prone—especially when you're handling dozens or hundreds of accounts. That’s where bulk operations with PowerShell come in. With just a few lines of script, you can create, modify, or even delete user accounts efficiently.

This guide introduces you to bulk operations for user management and provides helpful resources to get started—using trusted, real-world examples from M365Corner.

Microsoft 365 Admin Center: A Comprehensive Guide for Groups Management

Managing, collaboration and access in Microsoft 365 becomes seamless with the help of Microsoft 365 Groups. Whether you're a beginner or an advanced administrator, understanding the different ways to manage these groups is essential to efficiently support your organization. This guide explores group management via both the Microsoft 365 Admin Center and Graph PowerShell—offering flexibility for every admin skill level.

Track Users with Admin Roles in Your Microsoft 365 Tenant

In every Microsoft 365 environment, certain users are assigned administrator roles to perform high-privilege tasks such as managing users, resetting passwords, assigning licenses, and securing the organization. These users might hold roles like Global Administrator, Exchange Administrator, or SharePoint Administrator, among others

Given the power and access these accounts hold, tracking who your administrators are—and monitoring their licensing and account status—is absolutely critical for security, compliance, and operational clarity.

Track User Management Events In Your Microsoft 365 Tenant

In every Microsoft 365 tenant, user accounts are constantly being created, updated, deleted, enabled, or restored—especially in dynamic organizations with regular onboarding, offboarding, and role changes. These are referred to as Microsoft 365 user management actions, and they form a critical part of your tenant’s identity and access lifecycle.

These actions are recorded in audit logs and can be retrieved using Microsoft Graph PowerShell, allowing you to monitor and report on key account-level events that impact your environment’s security, compliance, and operational integrity.

Manage Microsoft 365 Mails Using Graph PowerShell

Managing emails manually can be time-consuming—especially in large organizations where automation and central control are critical. Microsoft Graph PowerShell empowers IT administrators to create, read, delete, organize, and automate email operations across Microsoft 365 users using secure, script-based commands.

If you’re looking to streamline mail-related tasks like sending emails, managing folders, or applying rules, this guide brings together the most essential scripts in one place to get you started quickly.

10 Useful Mailbox Management Scripts for Microsoft 365 Admins

Managing mailboxes across a Microsoft 365 environment can become complex, especially as your organization grows. Fortunately, PowerShell scripting with Microsoft Graph allows admins to take full control over mailbox tasks like monitoring activity, archiving old emails, sending automated messages, and cleaning up unwanted content.

In this guide, we’ve compiled 10 essential mailbox management scripts that every Microsoft 365 administrator should know—each with a direct link to a step-by-step M365Corner tutorial.

Managing Applications Using Graph PowerShell

In every Microsoft 365 environment, applications play a critical role in enabling integrations, automations, and secure access to resources—whether they're built in-house, registered for third-party use, or part of Microsoft’s own ecosystem.

For IT administrators, understanding how to manage these applications is key to maintaining a secure, scalable, and well-governed tenant. With Microsoft Graph PowerShell, you can automate the entire application lifecycle—creation, ownership, deletion, and reporting—with precision and ease.

Managing Microsoft 365 Guest Users Using Graph PowerShell

Collaboration with external users is essential for many modern organizations. Whether you're working with partners, vendors, or contractors, Microsoft 365 Guest Users make it possible to securely share resources and collaborate within Teams, SharePoint, and other M365 services.

Managing these guest users manually, however, can quickly become overwhelming—especially in large environments. That’s where Microsoft Graph PowerShell comes in, offering a scalable way to automate guest user invitations, monitoring, cleanups, and more.

Automate Microsoft 365 User License Management: A Complete Guide

Assigning and managing licenses for users in Microsoft 365 is a routine yet essential task for IT administrators. As organizations grow, manual license assignments become inefficient, error-prone, and difficult to audit. That’s where Graph PowerShell comes in—allowing you to automate license management efficiently and at scale.

This guide introduces why license automation matters, its key benefits, and how you can get started using real-world PowerShell scripts provided by M365Corner.

3 Useful Microsoft Teams Automation Scripts

Microsoft Teams has become the backbone of collaboration for many organizations. But as Teams usage grows, so does the challenge of managing them efficiently. From tracking unused Teams to reviewing member activity, administrators often need quick, repeatable ways to keep things clean and organized.

That’s where automation with Microsoft Graph PowerShell comes in. In this guide, you'll find three ready-to-use scripts from M365Corner that simplify key Teams management tasks.

2 Essential Microsoft Teams Automation Scripts

Creating Microsoft Teams and adding members one by one through the admin center can quickly become a time-consuming chore—especially in large organizations or during onboarding drives. That’s where automation using Microsoft Graph PowerShell comes to the rescue.

This guide highlights two powerful scripts from M365Corner that help you automate Teams creation and bulk member addition, saving hours of manual effort and ensuring consistency across your Microsoft 365 environment.

Manage Microsoft Bookings Using Graph PowerShell

Microsoft Bookings is a powerful scheduling tool that helps organizations streamline appointments, consultations, and service bookings. While the web interface offers a basic UI for managing Bookings, administrators and power users often need more control, speed, and flexibility—especially when dealing with multiple services or businesses.

That’s where Microsoft Graph PowerShell comes in. It allows you to automate the entire Microsoft Bookings lifecycle, from creation and updates to deletion—saving you hours of manual effort.

Manage Microsoft 365 Groups Using Graph PowerShell

Managing Microsoft 365 Groups efficiently is critical for IT admins tasked with maintaining user access, collaboration spaces, and security across the organization. While the Microsoft 365 admin center offers some basic tools, Graph PowerShell provides the automation flexibility and precision needed to handle complex group management tasks at scale.

Using Invoke-MgGraphRequest to Make REST API Calls to Microsoft Graph

PowerShell has always been a powerful tool in the Microsoft 365 administrator's toolkit. With the rise of Graph PowerShell, we now get even more flexibility through dedicated cmdlets. But what if a specific task doesn’t have a corresponding cmdlet yet? That’s where Invoke-MgGraphRequest steps in. Let’s explore how and when to use this versatile cmdlet.

How to Generate and Email Microsoft 365 Unified Group Owners Report?

Keeping track of Microsoft 365 group owners is essential for delegation clarity, compliance audits, and efficient governance. But when you’re managing a large number of Microsoft 365 Groups—especially Unified Groups—doing it manually is both time-consuming and error-prone. In this guide, we’ll show you how to automate the generation and emailing of a Microsoft 365 Unified Group Owners Report using Graph PowerShell.

How to Generate and Email Microsoft 365 Group Members Report?

Managing group memberships manually in Microsoft 365 can be tedious—especially when you need reports for compliance, audits, or regular administrative reviews. Instead of clicking through the UI for every group, let’s simplify the process using Graph PowerShell.

In this blog, you’ll learn how to generate and email a detailed group members report in just a few lines of code.

Manage User Calendars Using Graph PowerShell

Managing user calendars efficiently is essential for administrators who oversee meeting bookings, availability checks, and event coordination within Microsoft 365. The Microsoft Graph PowerShell SDK provides a range of powerful cmdlets to help you automate calendar management tasks.

This article serves as a central hub for all calendar-related operations you can perform using Microsoft Graph PowerShell, complete with links to detailed walkthroughs already published on M365Corner.

Manage Microsoft Planner Using Graph PowerShell

Microsoft Planner is a lightweight task management solution integrated with Microsoft 365. Using Microsoft Graph PowerShell, you can automate many of your Planner tasks—such as creating plans, buckets, and tasks, or modifying and deleting them. Whether you're an admin managing user productivity or an automation enthusiast building Planner workflows, Graph PowerShell provides powerful flexibility.

This guide serves as a one-stop hub to help you understand and manage Microsoft Planner using the Graph PowerShell SDK. Each section introduces a core cmdlet and links to a detailed article from M365Corner for deeper insights and examples.

Automate Microsoft 365 Administration Using PowerShell

Managing Microsoft 365 manually can be time-consuming, especially when it comes to handling large numbers of users, groups, or licenses. That’s where PowerShell automation becomes your best friend. With a few simple scripts, you can handle repetitive admin tasks in minutes, not hours.

In this blog, we’ll explore how you can automate day-to-day Microsoft 365 administration tasks using Microsoft Graph PowerShell and link you to easy-to-follow M365Corner guides that walk you through each script.

Automate Microsoft 365 User Management With Graph PowerShell

Managing Microsoft 365 users manually can be time-consuming, error-prone, and inefficient—especially as your organization grows. Fortunately, with Microsoft Graph PowerShell, you can automate common user management tasks and save valuable admin hours.

This blog post will walk you through the why, how, and what of automating Microsoft 365 user management—along with a ready-to-use script that you can tweak for your environment.

Automate Microsoft 365 Group Management with Graph PowerShell

Managing Microsoft 365 groups manually through the admin center can be time-consuming—especially when your organization deals with dozens or even hundreds of groups. Thankfully, Microsoft Graph PowerShell offers a seamless way to automate essential group operations such as listing, creating, updating, and deleting groups.

In this blog, we'll explore why automation is important, what benefits it offers, and how you can implement it using PowerShell. We’ll also link you to a ready-to-use script from M365Corner that can help you hit the ground running.

Audit Entra ID Conditional Access Policies Using Graph PowerShell

Conditional Access (CA) is a critical pillar of securing access to Microsoft 365 resources. But as policies grow in number and complexity, so do the challenges in tracking their creation, modification, and deletion. That's where Graph PowerShell comes in—helping IT administrators audit Conditional Access policies with precision and ease.

Audit User Related Admin Actions Using Graph PowerShell

Auditing user-related administrative activities is essential for maintaining transparency, accountability, and security in any Microsoft 365 environment. Whether you're tracking who created, updated, deleted, or restored a user account, knowing what happened When and by whom is critical for governance and compliance.

This blog explains why and how you can audit such actions using Graph PowerShell by querying Entra ID Audit Logs, along with ready-to-use scripts from M365Corner.

How to Connect to Microsoft Exchange Online with PowerShell

Since Graph PowerShell is still improving, you need Microsoft Exchange PowerShell to manage org-wide mailbox settings. So, in this article, let’s understand how you can connect to Microsoft 365 Exchange Online using PowerShell, to manage your Microsoft 365 mailboxes efficiently.

Tracking Microsoft Teams Without Owners

Managing Microsoft Teams efficiently is essential for collaboration and security in any organization. While Teams are meant to have one or more owners responsible for governance, sometimes a Team may end up without an owner — and that can be problematic. In this post, we’ll explore what Teams without owners are, whether they can exist, and the best ways to track them.

How to Create Mail Flow Rules Using Microsoft Exchange with Predefined Templates

Mail flow rules come equipped with a richer set of conditions, exceptions, and actions that help administrators implement robust messaging policies. In this article, we will explain the basic elements that make up a mail flow rule, and then go on to configure one using the following: i) Microsoft Exchange admin center (EAC) and Windows PowerShell

Track Microsoft 365 Administrator Role Assignment And Activity

Administrators in Microsoft 365 hold the keys to your organization’s digital kingdom. They can add or remove users, assign licenses, configure security policies, and even access sensitive information. While this power is essential for managing the environment, it also makes admin accounts a prime target for misuse or attacks. That’s why tracking administrator role assignments and activities is crucial.

Did You Know? Managing Microsoft 365 applications is even easier with automation. Try our Graph PowerShell scripts to automate tasks like generating reports, cleaning up inactive Teams, or assigning licenses efficiently.

Ready to get the most out of Microsoft 365 tools? Explore our free Microsoft 365 administration tools to simplify your administrative tasks and boost productivity.

© Your Site Name. All Rights Reserved. Design by HTML Codex