Skip to content

AD

Add/Remove computers to/from AD Group based on OU changes

This has nothing to do with SCCM. For a special reason, I just needed to have a way to add computers to AD group based on their OU. Example you have created different OU name based on which city your computers are, and you also want to add those computers to AD group based on the city, and remove those computers from the AD group when computers are moved to another city OU. So here is…