From 068b92458ad2004b3cff2e77c0e5e2a6dc060641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Thu, 22 Oct 2015 10:11:02 +0200 Subject: [PATCH] Dirty hack to make it wait 2 milliseconds between commands --- Commissions/Fredrik/Make Users.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Commissions/Fredrik/Make Users.ps1 b/Commissions/Fredrik/Make Users.ps1 index c292419..68b4066 100644 --- a/Commissions/Fredrik/Make Users.ps1 +++ b/Commissions/Fredrik/Make Users.ps1 @@ -13,6 +13,7 @@ forEach ($User in $Users) $username = "$first$last" $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 + "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 "PAUSE" | out-file run.bat -Encoding "UTF8" -append