Category: Exchange

MRSProxy Endpoint error while doing remote move migration

With Exchange 2016 Hybrid setup, you might encounter an error while doing remote move migration. After selecting mailbox to move, the wizard gives you an error, that the “Endpoint MRSProxy” connection cannot be completed. After running command Test-MigrationServerAvailability -ExchangeRemoteMove -RemoteServer “ExternalUrl” You…

Continue Reading MRSProxy Endpoint error while doing remote move migration

Get-mailbox together with get-mailboxstatistics

Hi, When you try to combine Get-mailbox with Get-MailboxStatistics and export it to csv-file, You will get nothing from the last command. So here is a script that will allow You export the following. From Get-Mailbox = Name From Get-Mailbox =…

Continue Reading Get-mailbox together with get-mailboxstatistics

Remove obsolete Logs from Exchange 2013/2016

Add these lines to scheduled tasks and run-as System: Exchange logs older than 7 days:

IIS logs older than 7 days:

In Exchange 2013 this worked fine, but with Exchange 2016 You will get “Access Denied” for the…

Continue Reading Remove obsolete Logs from Exchange 2013/2016

Add Calendar permissions to mailboxes in Hybrid environments.

Hi again, Below script will add Reviewer permissons for DefaultCalendarShare group. This is needed for Hybrid environments and Cross-Premises calendar sharing. $allmailbox = Get-Mailbox -Resultsize Unlimited | where { $_.IsShared -eq $False -and $_.ArbitrationMailbox -eq $Null } $Logfile = “C:TempLogsadd-calendarPerm.log”…

Continue Reading Add Calendar permissions to mailboxes in Hybrid environments.

Assign Permissions to all mailboxes using Mail Enabled Security Group.

Hi, Add all users that need the following rights to a Mail Enabled Security Group. Then add permissions to calendars with this script: $allmailbox = Get-Mailbox -Resultsize Unlimited -Filter {RecipientTypeDetails -eq ‘usermailbox’} Foreach ($Mailbox in $allmailbox) {     $path =…

Continue Reading Assign Permissions to all mailboxes using Mail Enabled Security Group.

Add all licensed users to a Mail Enabled Security Group and then assign permissions to RecipientType.

Yesterday I had to add all licensed users to a Mail Enabled Security Group and then add that group to Room, Equipment and user mailboxes with desired permissions. To add all Licensed users to a group: $users = Get-MsolUser |…

Continue Reading Add all licensed users to a Mail Enabled Security Group and then assign permissions to RecipientType.

Remove SMTP address for a specific domain from all mailboxes.

Here is a handy script to remove obsolete proxyaddresses from all mailboxes. foreach($i in Get-Mailbox -ResultSize Unlimited) {   $i.EmailAddresses |     ?{$_.AddressString -like ‘*@domain.com’} | %{       Set-Mailbox $i -EmailAddresses @{remove=$_}     } } Just replace the domain.com with…

Continue Reading Remove SMTP address for a specific domain from all mailboxes.

Moving a Hybrid user back to Onprem Exchange.

The is a lot of blogs saying weird things on this particular Powershell command. Here the right one. $onrepm = get-credential ‘alias for the user’ | New-MoveRequest -OutBound -RemoteTargetDatabase ‘local database’ -RemoteHostName ‘ewsurl’ -RemoteCredential $onprem -TargetDeliveryDomain ‘localsmtpdomain’

Continue Reading Moving a Hybrid user back to Onprem Exchange.

Get Migration User statistics.

Here how you can get a listing of user statistics during migration: Get-MigrationUser UserPrincipalName | Get-MigrationUserStatistics | select identity,synceditemcount,percentagecomplete 

Continue Reading Get Migration User statistics.

420 4.2.0 RESOLVER.ADR.Ambiguous; ambiguous address

Today I got an error I have never seen before. 420 4.2.0 RESOLVER.ADR.Ambiguous; ambiguous address To fix it you need to: Go to Start, Control Panel, Administrative Tools Double-click Services Restart the Microsoft Exchange Transport Service And all is well.

Continue Reading 420 4.2.0 RESOLVER.ADR.Ambiguous; ambiguous address