Update Make Users.ps1

This commit is contained in:
Daniel Løvbrøtte Olsen 2015-10-22 10:40:10 +02:00
parent 41f36e582d
commit 798905900e

View File

@ -14,7 +14,7 @@ forEach ($User in $Users)
#Hack to fix weird spaces between characters
$username = $username -replace " ", ""
"dsadd user `"cn=$username, ou=Illuminati, dc=datavg2, dc=local -fn $firstname -ln $lastname -pwd Admin123" | out-file run.bat -Encoding "UTF8" -Append
#Hack to wait .2 seconds between each command, because of outdated servers cant keep up with Active Directory
#Hack to wait .2 seconds between each command, because Active Directory can't keep up
"ping 192.0.2.2 -n 1 -w 2 > nul" | out-file run.bat -Encoding "UTF8" -Append
}
"echo Script has finished running, thanks based Daniel in 1ELA for making our lives easier" | out-file run.bat -Encoding "UTF8" -Append