Monthly Archives: September 2016

Find Duplicate GUIDs in Active Directory

The code sample below will show machines that have duplicate GUIDs in Active Directory:- [codesyntax lang="powershell" title="Get-DuplicateGUIDs.ps1"] function IsDuplicateGUID { # Should expect 1 if no duplicate exists # Returns $true for a duplicate param([string]$ObjectGUID) $Count = Get-ADComputer -Filter 'ObjectGUID -eq $ObjectGUID' -Properties Name,ObjectGUID if($Count.Count -gt 1) {return $true} else {return $false} } $Computers =…
Read more