Learn how to automate the full Entra ID guest user lifecycle using PowerShell and the Microsoft Graph API. This guide covers discovery, stale account detection, notification emails, and safe two-phase removal to keep your Microsoft 365 tenant clean and compliant.
Azure AD
Automating MFA Audits in Entra ID with PowerShell
Learn how to audit MFA registration status across your entire Microsoft Entra ID tenant using PowerShell and the Microsoft Graph API. Includes filtering, CSV export, and a fully automated scheduled reporting script.
App-Only Auth for Microsoft Graph with PowerShell
A step-by-step guide to creating an Entra ID app registration, generating a self-signed certificate, assigning Microsoft Graph API permissions, and connecting with PowerShell for fully unattended automation.
Migrating from AzureAD PowerShell to Microsoft Entra PowerShell
AzureAD and MSOnline PowerShell modules have been retired by Microsoft. If your scripts still rely on them, they are broken or will be soon. This guide shows you how to migrate…
Automating Entra ID Group Management with PowerShell
Introduction Managing groups in Entra ID (formerly Azure Active Directory) through the Azure Portal works fine for a handful of changes, but quickly becomes tedious at scale. Whether you're onboarding a batch of new employees, restructuring departments, or cleaning up...
Enroll in Azure AD with error 8018000a
The 801800A issue is usually caused by a Windows client thinking it has a enrollment to Entra ID in progress. It will not “time out” so you will have to manually fix this…
Run Manual Azure AD Sync Updates
Depending upon the version of the sync solution that you are using to replicate directory data from on-premises Active Directory to Office 365 there are different commands that you will need to use.
Azure AD Sync Event Error 6126 and 6127
While doing a regular maintenance check on my customers servers when I came across a new event in the log.
I’ve previously wrote about changing the sync schedule on this server.
But today I noticed two event errors, ADSync event 6127 and 6127.
Change the Azure AD Sync Schedule
I finally I got some time to play with the new Azure Active Directory Sync tool and its configuration.
The installation was very straight forward. The step-by-step instruction are provided on MSDN. The administration tools and scripts are located in difference places compared to DirSync which was little confusing in the beginning.
Reducing the Azure AD Sync Schedule
By default DirSync runs every three hours; which for some environments or during testing may not be frequent enough…



