Showing posts with label exchange. Show all posts
Showing posts with label exchange. Show all posts

Tuesday, July 27, 2021

Deleting a Specific Email from Entire Organization in Exchange 2010

This is an extract from a post at Microsoft Social Technet:

There are many scenarios where we need to get rid of some Emails from the whole server

1. Virus

2.Confidential Email sent wrongly – Got to remove it

3. Need to remove a Email with Specific subject from all the mailboxes

Exchange 2010 has Good features on Searching it and Remove it .

So Will Learn how to do that.

Friday, April 23, 2021

How can I see real time smtp logs on Exchange 2010

SMTP logging is diabled by default. You can read about it and how to enable it at these links.

Understanding Protocol Logging: http://technet.microsoft.com/en-us/library/aa997624.aspx

Configuring Protocol Logging: http://technet.microsoft.com/en-us/library/bb124531.aspx

 

Set-ReceiveConnector "My Receive Connector Name" -ProtocolLoggingLevel Verbose
Set-SendConnector "My Send Connector Name" -ProtocolLoggingLevel Verbose

And could see the logs on

C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Logs\ProtocolLog

Tuesday, December 29, 2020

Removing the device partnership in Exchange 2010 using Powershell

Apparently Exchange 2010 SP1 brought a 10 mobile device per mailbox limit. This is a problem if you are letting a bunch of folks hook their iPhones into a common mailbox to share the calendar. The mailbox gets the message:

You have 10 phone partnerships out of the maximum allowed 10 partnerships. After you reach the maximum, you can't create additional partnerships until you delete existing ones from your account. To do so, sign in to Outlook Web App, click Options > Phone > Mobile Phones, and delete any unused partnerships.

Fortunately, the fix is pretty simple (excellent full write-up here), if you just want to increase the number of devices for your default policy.

  1. Start an Exchange powershell instance
  2. Run this to set max total devices (change 20 to whatever you want max to be)
    Get-ThrottlingPolicy | Set-ThrottlingPolicy –EASMaxDevices 20
  3. Then run this to set the maximum number of simultaneous devices (again, you can change the 20)
    Get-ThrottlingPolicy | Set-ThrottlingPolicy –EASMaxConcurrency 20

Alternativelly, you can remove all partnertships for a mailbox with the following command:

foreach ( $identity in Get-ActiveSyncDeviceStatistics -Mailbox username | Select-Object -Property "Identity" ) {
Remove-ActiveSyncDevice -Identity $identity.identity -Confirm:$true
}

Also you can remove all device partnerships where synchronization date (LastSuccessSync) is more than 30 days ago:

$DevicesToRemove = Get-ActiveSyncDevice -Result Unlimited | Get-ActiveSyncDeviceStatistics | Where {$_.LastSuccessSync -le (Get-Date).AddDays(“-30”)}

$DevicesToRemove | Remove-ActiveSyncDevice

Monday, November 23, 2020

Remove a disconnected Mailbox from Exchange 2010

This is a quick how to which will enable you to remove any disconnected mailboxes from exchange 2010, since the purge mailbox feature is no longer available. (Source: spiceworks).