diff --git a/Exchange/MailBoxes/New-ExMailbox.ps1 b/Exchange/MailBoxes/New-ExMailbox.ps1 index 56b583ba..250396f1 100644 --- a/Exchange/MailBoxes/New-ExMailbox.ps1 +++ b/Exchange/MailBoxes/New-ExMailbox.ps1 @@ -73,7 +73,7 @@ param( ) try{ - $box = New-Mailbox -Name $Name -UserPrincipalName $UserPrincipalName -Password $Password -ResetPasswordOnNextLogon:$ResetPasswordOnNextLogon -Force -Confirm:$false + $box = New-Mailbox -Name $Name -UserPrincipalName $UserPrincipalName -Password $Password -ResetPasswordOnNextLogon:$ResetPasswordOnNextLogon -Force -Confirm:$false if($null -ne $box){ [hashtable]$cmdArgs = @{'ErrorAction' = 'Stop' 'Identity' = $box.UserPrincipalName @@ -119,4 +119,4 @@ catch{ } finally{ -} \ No newline at end of file +}