Skip to content

Commit fab87ce

Browse files
Update 2024-07-27-PowerShell-Generate-Unique-Upn.md
Updated Post body
1 parent 13a3273 commit fab87ce

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

_posts/2024-07-27-PowerShell-Generate-Unique-Upn.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ function Get-UniqueUPN
271271
272272
while (Test-UPNExist -UPN $uniqueUPN -Server $ADServer)
273273
{
274-
275274
$uniqueUPN = '{0}{1}@{2}' -f ($baseUPN.Split('@')[0]), $counter, $UPNSuffix
276275
277276
$counter++
@@ -291,8 +290,6 @@ Here's a summary explanation of the parameters:
291290
- *$UPNSuffix* - A string representing the domain suffix for the UPN
292291
- *FirstNameFormat* - The format of the first name in the UPN (e.g. Full or First letter of name)
293292
- *IncludeMiddleName* - Switch parameter indicating to cmdlet if Middle Name should be used or not in the UPN generation
294-
- *DuplicateSuffix* - By default if a duplicate is found a progressive number is added to the UPN, using this paramter you can specify a *custom* character to use
295-
- *CustomDuplicateSuffix* - Allows us to specify the custom suffix for duplicates
296293
- *$Server* - A string representing the name of the LDAP server to query. Parameter is optional and if omitted function will automatically select the closest global catalog server
297294
- *$Separator* - The separator to use between the name parts. If not specified a '.' (dot) is used
298295

0 commit comments

Comments
 (0)