Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Find newly added Users that do not have the correct group membership in their designated OU.

$
0
0

Greetings All Professional Experts,

I can reference an OU with groups that holds all Replication members, then I have to find newly created users that have been placed in their correct OU, but have not been made a "memberOF", I use a script that "out-file" the Replication group members as a CSV file. Then I have another script that gets all users of the AD DS, but that dat output is not what I really am looking for. It creates a 2 CSV file, then I use a third script that compares the 3 and gives me the users that are missing their replication membership.

Data OutPut 2 CSV => CN=repl-RODCDEBBX02RDC00001,OU=RODC-Groups,OU=Global,DC=login-lab,DC=local CN=User User831

Data OutPut 1 CSV => CN=repl-RODCDEBBX02RDC00001,OU=RODC-Groups,OU=Global,DC=login-lab,DC=local

CN=User User1000,OU=Users,OU=BBX-02,OU=DE,OU=Locations,DC=login-lab,DC=local
CN=User User61,OU=Users,OU=BBX-02,OU=DE,OU=Locations,DC=login-lab,DC=local

I'm lost in the woods and can't even see the trees. I'm replacing a VBScript that did this, every hour it runs, and works. (why change a working system)? :O)


Viewing all articles
Browse latest Browse all 6937

Trending Articles