Category Archives: Active Directory

Powershell script to check for duplicate attribute values

Here’s a handy Powershell script to check for duplicate attribute values on AD objects.  Why is this useful?  Well, you might have provisioning systems that assign unique values (e.g. employeeID) to AD objects.  Things can start to go wrong if it turns out that more than one object has been assigned the same attribute value. … Read More: Powershell script to check for duplicate attribute values »

Powershell script to find objects using objectGUID value

The objectGUID attribute is a little tricky to work with, especially if you want to use it as part of an LDAP filter.  This is because the value in stored within the directory as an octet string – essentially an array of one-byte characters.  This syntax is not especially user-friendly, which is why it is… Read More: Powershell script to find objects using objectGUID value »

How to find duplicate sAMAccountNames between two forests

When preparing for a migration of AD objects from one forest to another it is useful to know if any of the names are going to conflict.  There are, as you probably know, a number of different naming attributes in AD, but the one most likely to cause problems in the event of a conflict is sAMAccountName. … Read More: How to find duplicate sAMAccountNames between two forests »