Skip to content

Commit 377524c

Browse files
authored
Update
Removed username numbering bug
1 parent 4835142 commit 377524c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CSVimport.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ foreach ($User in $ADUsers)
1818
$Office = $User.office
1919
} else { $Office = ''}
2020
$Birthdate = $User."birthday (ISO 8601)"
21-
$Birthdate1 = "$Birthdate3"+"$Birthdate2"
2221
$Birthdate2 = $User."birthday (ISO 8601)".Substring(5,2)
2322
$Birthdate3 = $Birthdate.substring(8,2)
23+
$Birthdate1 = "$Birthdate3"+"$Birthdate2"
2424
$Username = $Firstname.ToLower().substring(0,2)+'.'+$Lastname.ToLower().substring(0,2)+$Birthdate1 -replace '\s','-'
2525
$OU = $User.department
2626
$Password = $Readpassword

0 commit comments

Comments
 (0)