Microsoft 365: Password Expiration Notification Email

Password expiration notifications play a crucial role in maintaining the security of your organization’s Microsoft 365 accounts. Ensuring users are aware of upcoming password expirations can help prevent account lockouts and encourage users to create strong, unique passwords. In this guide, we will demonstrate how to create a Microsoft Graph PowerShell script…

Read more

How to Connect to Microsoft Graph API with Connect-MgGraph from PowerShell?

Introduction Microsoft Graph API is a RESTful web API that consolidates access to various Microsoft 365 services, allowing developers to create applications that interact with data across multiple platforms, including Azure Active Directory, SharePoint, OneDrive, Outlook, and more. Microsoft Graph PowerShell works on all platforms, including Windows, macOS, and Linux. Supports modern…

Read more

How to use Get-MgUser in Microsoft Graph PowerShell?

The Get-MgUser command in Microsoft Graph PowerShell is specifically designed to retrieve information about users in your Microsoft 365 tenant that are stored in Azure Active Directory (Microsoft Entra). Managing users in Azure AD is a crucial task for administrators. So, understanding the Get-MgUser cmdlet is essential for managing user data within…

Read more

How to Identify Inactive Users in Office 365: A Step-by-Step Guide

Requirement: Get inactive users report in Office 365. How to Find Inactive Users in Office 365? Inactive users are those who have not logged in to Microsoft 365 for a specified period of time. Inactive user accounts in your Office 365 environment can pose a security risk and waste valuable resources. Fortunately,…

Read more

Office 365: Get the Last Password Change Date using PowerShell

Requirement: Check the last password change date in Office 365. How to check the last password change in Office 365? One of the key components of security is managing passwords. Password management is a critical aspect of maintaining security in the digital realm. For Microsoft 365 users, knowing when your password expires…

Read more

How to Create Bulk Users in Office 365: A Comprehensive Guide

Creating user accounts individually can be a time-consuming task, especially when you need to onboard a large number of users. Adding users one at a time can be time-consuming and prone to human error. Fortunately, Microsoft 365 provides ways to streamline this process through bulk user creation. By using a CSV file…

Read more

Fix: The Term ‘Connect-MgGraph’ is Not Recognized Error

Problem: When trying to connect to Microsoft Graph using the Connect-MgGraph command, I got this error message: Connect-MgGraph : The term ‘Connect-MgGraph’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the…

Read more

Microsoft 365: How to Set the Password to Never Expire?

In the ever-evolving world of cybersecurity, password management is crucial. One common practice is to enforce regular password changes to protect user accounts periodically. While this may seem like a good security measure, it can be quite frustrating to keep up with, and frequent password changes lead to weak passwords, as people…

Read more

Generate SharePoint Online Site Usage Reports using Graph API and PowerShell

Requirement: Generate usage reports for SharePoint Online sites. How to Generate Usage Reports for All SharePoint Online Sites in the Tenant? If you are a SharePoint administrator, you may find it useful to generate reports about how your users use the sites and content. Microsoft has made it easy for you to…

Read more