Browsed by
Author: Kathy

Get All Public Folders and Permissions using PowerShell  

Get All Public Folders and Permissions using PowerShell  

Public folders are used to organize and share information with people inside the organization. Users can create public folders and share them with other users by assigning permission. This blog provides PowerShell code examples to list all public folders and get the permission applied to them.   You must connect to Exchange Online PowerShell using the EXO V2 module before using the public folder PowerShell cmdlets.   Public Folders Report:   To list all the public folders in your organization,…

Read More Read More

Get Mailbox Details in Microsoft 365 using PowerShell 

Get Mailbox Details in Microsoft 365 using PowerShell 

This blog will help you get mailbox info with Get-Mailbox PowerShell cmdlets. Also, we have included examples to retrieve mailboxes’ properties. Let’s dive in!  You must connect to Exchange Online PowerShell to use EXO PowerShell cmdlets.  Get All Exchange Online Mailboxes:  To list all the mailboxes, run the Get-Mailbox cmdlet after creating the Exchange Online PowerShell session.  Get-Mailbox –ResultSize Unlimited  Get Mailbox Details using PowerShell: To view all properties of a mailbox, you can run the Get-Mailbox cmdlet with a…

Read More Read More

Connect-MgGraph (Microsoft Graph) 

Connect-MgGraph (Microsoft Graph) 

The Connect-MgGraph cmdlet is used to connect to Microsoft Graph PowerShell. You must install Microsoft Graph PowerShell SDK to use this cmdlet. Else, you will receive the error: “The term ‘Connect-MgGraph’ is not recognized as the name of a cmdlet, function, script file, or operable Program” Syntax:  Connect-MgGraph       [-Scopes] <string []>]       [-TenantId] <string>]       [-ForceRefresh]      [-ClientId <string>]       [-ContextScope {Process | CurrentUser}]       [-Environment <string>]      [-UseDeviceAuthentication]       [-ClientTimeout <double>]       [-Break]       [<CommonParameters>]    Connect-MgGraph      …

Read More Read More

Connect to Microsoft Graph PowerShell 

Connect to Microsoft Graph PowerShell 

We all know that Microsoft is deprecating the Azure AD PowerShell module and MS Online module in 2022. So, admins need to migrate to either Microsoft Graph PowerShell SDK or Microsoft Graph API.  This blog will guide you on the following things.  Download and install the Microsoft Graph PowerShell module  Connect to Microsoft Graph PowerShell  PowerShell script to automatically install and connect to MS Graph (Recommended)  Microsoft Graph PowerShell commands  Migrate scripts from Azure AD PowerShell to Microsoft Graph  Update…

Read More Read More

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

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

As a Microsoft 365 admin, you must track users’ email activity to ensure secure communication. If you ever wonder how to find the number of emails sent and received by an individual mailbox, I can help you with the simple PowerShell cmdlets.  Most admins use ‘Get-MailTrafficReport’ and ‘Get-MailTrafficTopReport’ to identify per user mail traffic statistics. Due to Microsoft’s recent deprecation, these cmdlets will not work anymore. So, admins need to find the alternative cmdlet for ‘Get-MailTrafficReport’.  How to Get Office 365…

Read More Read More

How to Add Bulk Users to Microsoft Teams 

How to Add Bulk Users to Microsoft Teams 

Recently I came across multiple technical forums with the same question “How to add bulk members to teams through PowerShell?”. I thought I’d help with this by writing a script. Managing Microsoft Teams using PowerShell is a simple and effective way. So, Let’s dive in.    How to Add Bulk Users to Teams Group using PowerShell:  The PowerShell cmdlet Add-TeamUser adds a member to the team. But you can’t use it directly for adding members in bulk. So, you need…

Read More Read More

Microsoft 365: Convert User Mailbox to Shared Mailbox using PowerShell  

Microsoft 365: Convert User Mailbox to Shared Mailbox using PowerShell  

Microsoft 365 admins often search for a way to convert a user mailbox to a shared mailbox. If you are one of them, this blog is for you.   Reasons to Convert a Mailbox to a Shared Mailbox in Office 365   When you convert a user mailbox to a shared mailbox, all the existing emails and calendars are retained. Only the type of the mailbox is changed.  When an employee leaves an organization, the administrator can convert the mailbox…

Read More Read More

Microsoft 365: The new Opt-out Setting to Disable Plus Addressing in Exchange Online  

Microsoft 365: The new Opt-out Setting to Disable Plus Addressing in Exchange Online  

Plus Addressing allows users to create custom email address by adding plus (+) sign and suffix to their standard email address. For example,  Standard email address: [email protected]  Plus Addresses: [email protected], [email protected]  When the emails are sent to Plus Addresses, the emails are delivered to the standard email address.    How Plus Addressing Introduced in Microsoft 365?   In Sep 2021, Microsoft introduced Plus Addressing in Exchange Online as an opt-in option. The organizations can enable plus address by setting the ‘AllowPlusAddressInRecipients‘ property…

Read More Read More

How to Track Emails with Office 365 Message Trace Using PowerShell  

How to Track Emails with Office 365 Message Trace Using PowerShell  

Message tracking or tracing helps admins to monitor mail flow and delivery status. With message trace, you can    Analyze what happened to an email like whether it was received, rejected, deferred, or delivered at the other end.   Troubleshoot email delivery problems.   Validate email policies and mail flow rules      How to Perform Message Trace in Microsoft 365   Message trace can be performed through the Exchange admin center (EAC) or PowerShell. Most admins prefer PowerShell over EAC. So, this blog…

Read More Read More

Get All Office 365 Email Address and Alias Using PowerShell 

Get All Office 365 Email Address and Alias Using PowerShell 

Often, Microsoft 365 admins want to export all email addresses in their Microsoft 365 environment. You can use the PowerShell cmdlets like Get-Mailbox, Get-Recipient to retrieve Primary email addresses and aliases. Since each type of mailbox requires different cmdlets or filtering conditions, it is always challenging to find the right one.   Since Microsoft allows sending emails from alias addresses, admins need a record of alias addresses. To easily export all the email addresses, you can download our script. Also, our script…

Read More Read More