diff --git a/alias-toolkit.ps1 b/alias-toolkit.ps1 index a04d26d..012fd7c 100644 --- a/alias-toolkit.ps1 +++ b/alias-toolkit.ps1 @@ -11,7 +11,7 @@ Write-Host "2: Press" -NoNewline Write-Host -Foregroundcolor Cyan " '2' " -NoNewline - Write-Host "to apply the contents of a .csv to the currently logged in Exchange Online session." + Write-Host "to apply the contents of a .csv to the currently logged in Exchange session." Write-Host "3: Press" -NoNewline Write-Host -ForegroundColor Cyan " '3' " -NoNewline @@ -61,7 +61,7 @@ do #Get the mailboxes from Exchange Online and print the email addresses to confirm the changes. Foreach ($Alias in $Alias_list) { - $addresses = (Get-ExoMailbox -Identity $Alias.Displayname).EmailAddresses + $addresses = (Get-Mailbox -Identity $Alias.Displayname).EmailAddresses if ($addresses -eq $Alias.EmailAddresses) { Write-Host "$($Alias.Displayname)" -NoNewline Write-Host -ForegroundColor Green " Success!"