Creating Test Users in AD - Another way...

My good friend and AD Mentor, Jorge de Almeida Pinto pointed me at a much simpler way to do this. Not with PoSH, admittedly, so not as exciting to me right now but it gets the job done and uses Joe Richard's ADMOD tool:

For groups: (replace # with number, replace $$ with US, GS, LS, UD, GD, LD)

ADMOD -replacedn XXX-DOMAIN-XXX:_default -sc adag:#;$$;"CN=<RDN>,OU=<OU>,OU=<OU>,XXX-DOMAIN-XXX"

For users:

ADMOD -replacedn XXX-DOMAIN-XXX:_default -sc adau:#;<PWD>;"CN=<RDN>,OU=<OU>,OU=<OU>,XXX-DOMAIN-XXX"

 

Enjoy!

Published 22 October 2007 11:36 AM by Austin

Comments

No Comments