Cleanup Active Directory groups with PowerShell

Taking care for local Active Directory (if it is still present) is one of the most important tasks, so you may need also cleanup disabled users from groups. Sometimes you don’t want to delete users but only removing them from AD groups is required (often for licensing issues etc.) I’ve had that case and wrote …

Exchange Online send mails with E-Mail alias

Long time, there was no way to change the send mail address from primary to alias mail addresses. So sending address was forced by administration. Even if users have multiple smtp-addresses there was no official way to accomplish this. January 2022 changed this statement, now it is possible to use the secondary mail address. More …

PowerShell and AD groups best combination

In daily life there are a lot situation where you have to copy members of AD groups, or checking if someone is member of an AD group. Therefore I created this blogpost to provide a small assistance doing this tasks via powershell. Function to check user Group Membership Here is a short function checking if …

Exchange Online: see mailboxsize and added mobile devices with PowerShell

Lot of customers ask me if it is possible to get a statistic of mailbox size in Exchange Online. I say, of course it’s possible with PowerShell. Some time ago I created a short script to get sizes as output to shell. Not that usable. The last days I spent some time to create a …

Bulk change UserPrincipalName in Active Directory via PowerShell

Getting things ready for cloud migration or anything different, lot’s of companies need to change their users UPNs. As consultant I had to do that several times, therefore I wrote some lines of PowerShell code, to manage this. It’s not that difficult, but for documentation my script also creates a CSV file with the UPNs …