How to Assign Microsoft 365 licenses with PowerShell
You can manually assign licenses to single or multiple users in the Microsoft 365 admin center or Microsoft Entra admin center. If you want to assign licenses to multiple users, it’s faster to create...
View ArticleExport Microsoft 365 users last sign-in date and time
You can get the user’s last successful sign-in activity date time in the Microsoft Entra admin center and Microsoft 365 admin center. The disadvantage is that it will show the user’s sign-in activity...
View ArticleManage mailbox folder permission with PowerShell
When you share a mailbox folder with another user, you can decide which access rights they will get. The admin can get, add, set, and remove folder permissions in PowerShell for single and bulk users....
View ArticleHow to use Get-MgUser in Microsoft Graph PowerShell
You need to use the Get-MgUser PowerShell cmdlet to get information about all the users in Microsoft Entra ID. The Get-MgUser retrieves data of each user object. In this article, you will learn how to...
View ArticleHow to Run a PowerShell script
PowerShell is a task automation and configuration management program from Microsoft. It allows you to run commands and scripts to get detailed information or configure settings. There are several...
View ArticleHow to Restore a deleted Microsoft 365 mailbox
When you delete a room, equipment, shared, or user mailbox, it is soft deleted and stays in the recycle bin for 30 days. The deleted mailboxes can be restored in the Microsoft 365 admin center or with...
View ArticleHow to Convert External user to Internal user in Microsoft Entra ID
A guest is an external user in an organization that can share data from Microsoft Teams, Groups, and SharePoint. Sometimes you want to migrate the external user to a member of your organization and...
View ArticleHow to Delete a user in Microsoft 365
Before you delete a user in Microsoft 365, you can choose to save most of the data, such as email aliases and mailbox permissions. This way, you can recover most of the user settings data if you...
View ArticleHow to Use the New-ComplianceSearch PowerShell cmdlet
To search for specific emails and view mail items in Exchange Online, you need to use the compliance search feature. There are two methods of doing this: the New-ComplianceSearch cmdlet in PowerShell...
View ArticleHow to Delete mail items from Microsoft 365 mailbox
To delete mail items from a single or multiple mailboxes in Microsoft 365, you must find the messages using a compliance search. Once that’s done, you can choose to soft-delete or hard-delete the mail...
View ArticleConnect to Security and Compliance PowerShell with Connect-IPPSSession
To connect to Microsoft Defender and Microsoft Purview compliance portal with PowerShell, you need to use the Connect-IPPSSession cmdlet in Exchange Online. In this article, you will learn how to...
View ArticleHow to Recover deleted items from Microsoft 365 mailbox
You can recover deleted items from mailboxes in the Exchange admin center and with PowerShell. This can be different sorts of items such as notes, tasks, messages, or calendar items in the Deleted...
View ArticleHow to Block Senders in Microsoft 365
Clicking on a spam message can cause many problems in an organization. To stop unwanted senders from sending spam emails to your organization, you need to block them. Microsoft has Exchange Online...
View ArticleDifference between ForEach and ForEach-Object PowerShell
You can use the ForEach statement and ForEach-Object cmdlet in your PowerShell scripts. They both use loops to iterate through the data, but these loops are different. In this article, you will learn...
View ArticleExport email addresses with PowerShell
Each mailbox or recipient can have multiple email addresses. You can search and get all email addresses in the organization for a single or all users. These are the primary SMTP addresses and...
View ArticleHow to Remove email addresses with PowerShell
To delete single or multiple email addresses from a specific mailbox in Microsoft 365, you can use the Exchange admin center or Microsoft 365 admin center. However, a PowerShell script can remove...
View ArticleRemove mailbox without deleting user in Microsoft 365
If a user in your organization no longer needs their mailbox, you can remove it and keep the user active. This will permanently delete the mailbox and all its content, such as messages, calendars, and...
View ArticleHow to Configure Passkeys in Microsoft Entra ID
A passkey is a simple and secure way to sign in without having to enter a username or password. It also adds an extra layer of security to protect your account. In this article, you will learn how to...
View ArticleHow to Add email addresses with PowerShell
You can add an additional email to a single mailbox or all mailboxes in your organization and keep the existing email addresses. It’s also possible to add an email address that will replace an...
View ArticleAdd DKIM and DMARC for onmicrosoft.com domain in Microsoft 365
You should secure every domain in Microsoft 365 with the authentication methods SPF, DKIM, and DMARC. Microsoft automatically configures the SPF record for the onmicrosoft.com domain but not the DKIM...
View Article