PowerShell
15 articles tagged PowerShell.
Entra ID dynamic groups: rule syntax and examples that actually work
Write Microsoft Entra ID dynamic membership rules for users and devices: syntax, operators, tested examples for HR attributes, licences and Autopilot, validation, processing status and fixes for common rule errors.
Exchange Online mail flow rules: disclaimers, external tags and blocking
Build Exchange Online mail flow rules for outbound disclaimers, external sender warnings and attachment blocking, then test, order and troubleshoot them in the EAC and PowerShell.
Find and remove malicious inbox and forwarding rules after a BEC
After a compromised mailbox, find hidden inbox rules, SMTP forwarding and delegate access in Exchange Online, remove them safely and block external auto-forwarding so the attacker can't come back.
Fix ApplicationManagedBy isn't set and AADSTS700027 in Entra Connect Sync
Repair broken application-based authentication on Entra Connect Sync servers: restore cleared connector parameters, separate servers that share one app, and recover from expired certificates.
Fix Entra Connect AttributeValueMustBeUnique and duplicate proxy addresses
Find which object already holds the duplicated proxyAddresses or userPrincipalName value, remove it from the right side, and confirm the next Entra Connect sync exports cleanly.
Fix Microsoft Graph 429 throttling with Retry-After, batching and delta
Stop 429 Too Many Requests errors from Microsoft Graph: honour Retry-After, tune the SDK retry handler, batch correctly, cut request cost and replace polling with delta queries.
Fix Power Automate HTTP trigger URLs after the logic.azure.com retirement
Flows with HTTP or Teams webhook triggers stopped firing when the old logic.azure.com URLs were retired. Find affected flows, update callers and fix authentication failures.
IMAP to Exchange Online migration from cPanel and other hosts
Move mailboxes from cPanel or any IMAP host to Exchange Online with migration batches: CSV prep, endpoint, PowerShell, MX cutover and the cPanel email routing setting that catches people out.
Microsoft 365 audit log search: who deleted, shared or forwarded what
Use Microsoft Purview Audit and Search-UnifiedAuditLog to find who deleted a file, shared a link, purged email or created a forwarding rule, then export and read the AuditData.
Microsoft Graph PowerShell recipes for user, licence and sign-in reports
Replace retired MSOnline scripts with Microsoft Graph PowerShell recipes for user inventories, licence counts, unlicensed and inactive users, and recent failed sign-ins.
Remove the last Exchange server from a hybrid Exchange Online setup
Transfer Exchange-attribute source of authority to the cloud, tear down the hybrid configuration and uninstall the last on-premises Exchange server.
Replace Restricted SharePoint Search with Restricted Content Discovery
Restricted SharePoint Search is retiring. Inventory the allow list, apply Restricted Content Discovery to the sites that need it, verify propagation, then turn RSS off.
Upgrade Entra Connect Sync to 2.6 with application-based authentication
Entra Connect Sync must run 2.6.84.0 or later with application-based authentication by 7 April 2027. Check each server, upgrade safely, switch to the app identity and remove the old sync account.
Google Workspace to Microsoft 365 Migration: A Complete Technical Guide for Mail, Calendar, Contacts and Drive
A step-by-step guide to moving from Google Workspace to Microsoft 365 with Exchange Online's native Gmail migration and Migration Manager, from routing subdomains and service accounts to MX cutover.
Microsoft 365 Tenant-to-Tenant Migration Architecture: Cross-Tenant Mailbox, OneDrive, Teams and Domain Move
A practical guide to Microsoft 365 tenant-to-tenant migration for mergers and divestitures: native cross-tenant mailbox and OneDrive moves, SharePoint, Teams and the domain cutover.