Safer Microsoft 365 Bulk Changes with PowerShell PreviewsSafer Microsoft 365 Bulk Changes with PowerShell Previews
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Before I run any bulk change in Microsoft 365, I do two boring things first.
1. Export the exact target list. Run your Get-Mailbox or Get-MgUser filter and pipe it to Export-Csv. Open the CSV and read it. If someone's on that list who shouldn't be, you just caught it for free.
2. Dry-run the change with -WhatIf. Feed the CSV back in with Import-Csv and add -WhatIf to the Set- command. PowerShell tells you what it would do without doing it.
Only then do I drop -WhatIf and run it for real, from that same CSV, so what I previewed is what actually changes. The CSV also doubles as a record of who got touched and when.
It adds maybe five minutes, and it's the cheapest insurance I know against a "why did everyone lose their forwarding rule" morning.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started