Forum Discussion
microchipmatt
Sep 24, 2021Copper Contributor
While Loop with More than One Condition? Need Help.
I already have a script the automates the creation of users. If the sAMAccountName is not unique, then My script has a while loop that Basically says if ($user -eq $null) { $i = 1 while (((Get-AD...
psophos
Sep 24, 2021Brass Contributor
An option for you to consider.
Maybe check that the SAMAccountName is globally unique across AD, and make the samaccountname and name properties the same for each user.
Maybe check that the SAMAccountName is globally unique across AD, and make the samaccountname and name properties the same for each user.