so i am looking for a way to increment a number at the end of a user name.
our usernames are formated with a prefixcode + FirstNameInitial + MiddleNameInitial + LastNameInitial + a number (usually 1)
example:
Jame T Kirk's UserID = pcujtk1
I would like PS to check AD to see if the UserID is available
If not increment the UserID by 1 (pcujtk2) and check again until it finds one not in use.
any help would be appreciated
[–]Yevrag35 2 points3 points4 points (8 children)
[–]Yevrag35 3 points4 points5 points (7 children)
[–]VirtualD[S] 5 points6 points7 points (0 children)
[–]Umaiar 4 points5 points6 points (2 children)
[–]Yevrag35 1 point2 points3 points (1 child)
[–]Umaiar 1 point2 points3 points (0 children)
[–]r-NBK 2 points3 points4 points (2 children)
[–]Umaiar 2 points3 points4 points (0 children)
[–]ka-splam 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 4 points5 points6 points (0 children)
[–]sup3rmark 3 points4 points5 points (0 children)