New AD user with roaming profile and home folder

With Microsoft’s module ActiveDirectory, making a new user in Active Directory with PowerShell is trivial — with parameters to do just about everything. However, making a new user with roaming profile and home folders isn’t as easy. In this post, I’ll show how to automatically generate roaming profile and home folders for a new user with correct permissions. Continue reading

Removing a domain from Office 365 – the definite script

If you’ve worked with Office 365 for some time, you’ve almost certainly been in the position of having to remove a domain from an Office 365 tenant. In theory an easy job – remove the domain from users and groups, then remove the domain from the tenant. More often than not, this is not the case.

Continue reading