Category: Exchange
So You see this error in NDR when the message bounces back. In my case I had a normal AD User with mail-attribute populated. Exchange figured out that this user has a mailbox inside the organization. It wasn’t. The user…
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…
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 =…
Add these lines to scheduled tasks and run-as System: Exchange logs older than 7 days:
1 |
gci ‘c:\program files\microsoft\exchange server\V15\Logging’ -Directory | gci -Include ‘*.log’,’*.blg’ -Recurse | ? LastWriteTime -lt (Get-Date).AddDays(-7) | Remove-Item |
IIS logs older than 7 days:
1 |
gci ‘C:\inetpub\logs’ -Directory | gci -Include ‘*.log’,’*.blg’ -Recurse | ? LastWriteTime -lt (Get-Date).AddDays(-7) | Remove-Item |
In Exchange 2013 this worked fine, but with Exchange 2016 You will get “Access Denied” for the…
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”…
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 =…
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 |…
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…
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’
Here how you can get a listing of user statistics during migration: Get-MigrationUser UserPrincipalName | Get-MigrationUserStatistics | select identity,synceditemcount,percentagecomplete