I'm still not getting it to work
When I run it in PowerGUI Script Editor and then start debugging.. It prompts to enter the OU and I entered the correct OU which was 'OU=Desktop_HealthCheck,OU=Desktops,OU=Resources,OU=RMT,OU=LS,OU=AMR,OU=IA,DC=corp,DC=org' and then it threw this error:
C:\Users\admbmace\Desktop\Detect-LocalAdmin-Changes.ps1 : The supplied distinguishedName must belong to one of the following partition(s): 'DC=corp,DC=org ,
CN=Configuration,DC=corp,DC=org , CN=Schema,CN=Configuration,DC=corp,DC=org , DC=ForestDnsZones,DC=corp,DC=org , DC=DomainDnsZones,DC=corp,DC=org'.
At line:1 char:1
+ . 'C:\Users\admbmace\Desktop\Detect-LocalAdmin-Changes.ps1'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified
[Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Detect-LocalAdmin-Changes.ps1