Remove Exchange Online only command from option 2
This commit is contained in:
parent
1c955a4777
commit
3e880672dd
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user