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

Startup scripts with Intune

Startup scripts are great. They enable us to do configuration and customization on devices which improves end user experience. In this post, I’ll show how to publish startup scripts to devices with Intune.

Continue reading

Export and install print drivers with Intune

Installing print drivers is a task we often find ourselves in, to enable printing from devices within an organization. If your infrastructure is relying on Intune for management of devices, there may not be a clear cut way to publish these drivers to devices. With the following method, we’re using PowerShell to export installed drivers from a device, and installing them using a VBS-script built-in in Windows client operating systems. Finally wrapping it all up in an exe-file for publishing to devices with Intune.

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