AD (4)


AD OU – Remove Protected From Accidental Deletion

When creating an OU in AD, ticking the Protect from Accidental Deletion box seems like a good idea. Until you go to delete the OU. Even more so if you have multiple nested OUs and just want to delete the top level one. Powershell to the rescue! We can use Get-ADOrganizationalUnit¬†(note US spelling) to select […]




GAM – Hide all users in AD OU from Global Address List

Fairly niche one this one. Needed to hide all the users in a specific group from the GSuite Domain’s Global Address List. Powershell to the rescue. Pulling through all the users in a specific searchbase and iterating through them with the GAM gal off¬†command.

The script pulls the accounts in the specified OU, including […]




Slack LAPS Slash Command

  • April 6, 2017
  • AD, LAPS, ...

Having implemented LAPS (Local Administrator Password Solution) on all of our PCs there became a need to access the password when in the field away from a PC with easy access to AD / the LAPS GUI. As we use Slack for primary out-of-office communications, it made sense to create a Slack Slash Command to […]




Powershell AD – Output groups a user is a member of

We occasionally need to make a note of the groups a user is a member of. If they’re going on maternity leave, for example. This script does require the Active Directory Module For Windows PowerShell.