Exchange 2010 SP1 Mailbox Folder Permission

 

Sometimes in Microsoft Exchange environment we need to add user permission to other user mailbox.

We can add Full Access permission to mailbox like below:

Add-MailboxPermissions -Identity Mailbox1 -User JSmith -AccessRights FullAccess -InheritanceType all

 

But what if we don’t want to add permissions to all folders in mailbox but only to a one mailbox folder.

With Microsoft Exchange 2010 SP1 we can add permission to specified folder for user or Security Group, (Add-MailboxFolderPermission) we can remove (Remove-MailboxFolderPermission) and also we can change this permissions (Set-MailboxFolderPermission).

To add Reviewer permissions to User1 on Inbox folder of mailbox “John Smith” we can use:

Add-MailboxFolderPermission -identity j.smith@domain.com:\Inbox -User User1 -AccessRights ReadItems

 

Now we can check permissions to John Smith Inbox folder like below:

Get-MailboxFolderPermission -Identity j.smith@domain.com:\Inbox

 

We can change permissions for User1 to mailbox Inbox folder using Set-MailboxFolderPermission from Reviewer to FolderVisible:

Set-MailboxFolderPermission -Identity j.smith@domain.com:\Inbox -User User1 -AccessRights FolderVisible

Continue reading

Print Friendly

Remove specific messages from Exchange 2010 Server

 

Sometimes Exchange administrator need to remove messages that fit specific criteria from large number of mailboxes or from Exchange transport queues.

Removing messages from Exchange mailboxes:

To perform remove message operation from mailboxes, in Exchange 2010 RBAC Mailbox Export Import role must be assigned to the admin account. To remove messages from Exchange 2010 mailboxes we will use Search-Mailbox cmdlet.

Account used to export data from mailboxes must be:

  • an Exchange Server Administrator
  • member of local Administrators group of target server
  • Full Access permission assigned to the mailboxes

 

To add RBAC role to user Admin:

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User “Admin”

 

Sometimes you will need to add necessary permissions for user Admin to all mailboxes, then we can use:

Get-Mailbox -ResultSize unlimited | Add-MailboxPermissions -User Admin -AccessRights FullAccess -InheritanceType all

After completed removing operations, we have to remove this permissions like below:

Get-Mailbox -ResultSize unlimited |Remove-MailboxPermissions -User Admin -AccessRights FullAccess -InheritanceType all

 

To search all messages with specified subject like “Important Message” of all mailboxes on server MBX1 we have to use example like below:

Get-Mailbox -Server  "MBX1" -ResultSize Unlimited | Search-Mailbox -SearchQuery 'Subject:"*Important Message*" -targetmailbox "*SearchMailbox*" -targetfolder "*SearchFolder*" -logonly -loglevel full

Continue reading

Print Friendly

Exchange 2010 quota warning messages issue

 

In Microsoft Exchange 2010 environments, Exchange sends a quota message to mailbox owners when mailbox size exceeds:

  • IssueWarningQuota – the lowest storage quota
  • ProhibitSendQuota – the middle storage quota
  • ProhibitSendReceiveQuota – the highest storage quota

 

All Quotas limits can be configured at mailbox or database level.

We can define time when messages are sent by specifying QuotaNotificationSchedule for Mailbox Database.

 

If we want to check QuotaNotificationSchedule use:

Get-MailboxDatabase | select name, QuotaNotificationSchedule

Continue reading

Print Friendly

Exchange 2010 Queues export, resubmit messages

Sometimes in your Microsoft Exchange environment you can experience a problem with HUB or Edge Transport servers, when often messages stuck in Queues.

When you resolve problem with any Exchange server, sometimes it takes few minutes for Exchange to resubmit all emails, time depends on how many messages are in queues.

Until messages have one of the below status, we can manually resubmit them to the Exchange Submission Queue if queue hasn’t Suspended state:

  • mailbox Delivery queues or Remote delivery queues with status Retry
  • emails in Unreachable queue
  • emails in Poison queue

 

To manually resubmit messages in queues, you can use the following methods:

  • use the Retry-Queue cmdlet with parameter -Resubmit
  • export messages from queue to .eml message files and resubmit them by placing in the Replay directory. For Exchange 2010 default location:
    C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\Replay
  • open Queue Viewer or Resume-Message cmdlet to resubmit messages in poison message queue.

 

Exchange 2010 export message copy from Queue:

Continue reading

Print Friendly

Shared Mailbox deleted and sent items separation

Most of us who has used Shared Mailbox in Microsoft Exchange environment, met with users complaints that emails which they sent a message using the shared mailbox account goes to Sent Items personal mailbox.

This behavior is normall for scenario when we use Microsoft Outlook with personal mailbox and automapped shared mailbox. Then when we delete or send message from shared mailbox account, the message goes to personal recycle bin or sent items.

 

How can we separate Shared Mailbox deleted and sent items ?

We have two solutions to separate sent and deleted items:

  1. Use Microsoft Outlook 2010 and add shared mailbox as normal mailbox account
  2. Change windows registry on client computer with different Outlook versions


 

1. Use Microsoft Outlook 2010 for Shared Mailbox to separate sent and deleted items

When you use Microsoft Outlook and you get permissions to shared mailbox, this mailbox will be automapped in Outlook.

After automapping when you send a message from shared mailbox this message will be saved in sent items of your personal mailbox. This behavior often is unwanted.

To make Outlook 2010 to save all sent items or deleted items from shared mailbox to sent items folder or deleted items folder in shared mailbox you have to add shared mailbox as equivalent mailbox in Outlook.

Close Microsoft Outlook 2010 with your personal mailbox, and go to Control Panel, Mail  next in Mail Setup – Outlook window choose:
E-mail Accounts…

Next in Account Settings window choose New…, and select

Manually configure server settings or additional server types

Continue reading

Print Friendly

Disable Outlook Mailbox Auto-Mapping

When Microsoft released Microsoft Exchange 2010 SP1 we’ve discovered new feature that allows Microsoft Outlook 2010 and 2007 clients to automatically map mailbox to which a user has Full Access permission.

So if we add user Full Access permission to 10 mailboxes, he will all 10 mailboxes in his Outlook because these mailboxes will be automatically mapped in Outlook.

In Microsoft Exchange 2010 SP1 there was no option to turn this “great” feature off.

But when we get Microsoft Exchange 2010 SP2 we can use Exchange Management Shell (Exchange Powershell) to disable this feature.

When we use Exchange Management Console to add user Full Mailbox Permission to other mailbox, this mailbox will be loaded to user Outlook.

 

If we want to add user Full Mailbox Permission but we don’t want automap this mailbox to Microsoft Outlook we have to use powershell:

Continue reading

Print Friendly

Resume-MailboxDatabaseCopy for all databases on server

Sometimes (for example, after a small disk array failure ;)) you need to resume failed and suspended database copy. We can do that with this  command: resume-mailboxdatabasecopy .

But what if there is a lot of databases ?

In this case we can use this command to resume replication for all databases on specific server:

get-mailboxdatabasecopystatus -server “server_name” | resume-mailboxdatabasecopy

Also for suspending replication we can use this command:

get-mailboxdatabasecopystatus -server “server_name” | suspend-mailboxdatabasecopy

Print Friendly

How to remove (purge) Disconnected Mailboxes

If in the Microsoft Exchange Server 2010 we delete mailbox users by selecting the Remove or Disable, mailboxes and their contents are still stored in the Exchange database.

The difference between the operation Remove and Disable:

  • Disable – disconnects the mailbox from email were the user account in Active Directory, leaving the user account enabled, as indicated in the Disconnected mailboxes list, disappears from the address book and it can be reconnected by going in for EMC: Exchange Organization -> Recipient Configuration -> Disconnect Mailboxes
  • Remove – removes the user account in Active Directory with mailbox

If you want to see a list of disconnected mailboxes in specified Exchange databasethen use the command:

Get-MailboxStatistics -Database "MailboxDatabase" | Where { $_.DisconnectDate -ne $null } | select DisplayName, DisconnectDate,TotalItemSize, TotalDeletedItemSize

to show all disconnected mailboxes in specified mailbox server:

Get-MailboxStatistics -Server MBXServer | where { $_.DisconnectDate -ne $null } | select DisplayName,DisconnectDate | sort DisconnectDate

Continue reading

Print Friendly

Outlook size limit for .pst .ost files

If you use Outlook with internet mailbox or with Exchange cached mode, outlook will use .pst or .ost file to store data.

Each of this files has his own maximum data limit supported by Outlook.
If this limit is reached .pst or .ost files are permitted to add any more data.

If outlook pst, ost file reach the size limit then you will get the warning.

Below, in table you can check maximum size limit, depended on Outlook version.

 

Outlook 2010

Name Type Valid Data Range Default
MaxLargeFileSize REG_DWORD 0x00000001 – 0x0000C800 0x0000C800 51,200 (50 GB)
WarnLargeFileSize REG_DWORD 0x00000000 – 0x0000BE00 0x0000BE00 48,640 (47.5 GB)
MaxFileSize REG_DWORD 0x001F4400 – 0x7C004400 0x7BB04400 2,075,149,312 (1.933 GB)
WarnFileSize REG_DWORD 0x00042400 – 0x7C004400 0x74404400 1,950,368,768 (1.816 GB)

Continue reading

Print Friendly

Exchange 2010 unable to sent Out of Office, Mail Tips problem

The problem of the peculiar cycle of failure.
Exchange 2010 no longer generate an automatic response (AutoReplay Outlook Out of Office). In Outlook 2010 does not also appear in the mail tips for absence.
There was no problem with setting OOF via Outlook and OWA.
Proved to be helpful to restart the Exchange Mailbox Assistants Services on the server.
The problem is basically trivial, but maybe someone will save time. The more that in Google for similar problems przypadu meets reconfiguration proposals and EWSa Autodiscover.
So before we start all over again to configure all the paths WebServices supported by the Exchange, we first try to restart the Exchange Mailbox Assistants service, perhaps so that we save a lot of time.

The solution can also be an additional dismount the database and mount it again.

In the case of DAG environment, just for a moment change the active database to another located on another server.

Print Friendly