powershell: generating a range of test users

this was a request for creating 500 user accounts, sequentially numbered.

1..500 | % { new-qaduser -parentcontainer 'OU=myOU,DC=myDomain,DC=COM' -name "MyTestUser$_" -samaccountname "MyTestUser$_" -UserPassword 'MyTestPassword' -email "MyTestUser$_@myDomain.com" }

Comments