Configuring and Managing the Mailbox Server Role

by | September 2013 |
<p style="margin-left: 40px; margin-right: 40px;" align="center"><i>(For more resources related to this topic, see <a href="#more">here</a>.)</i></p> <h1>Creating and removing mailbox databases</h1> <p>To complete the following steps, you will need to launch the Exchange Management Shell or the Exchange Admin Center. For this example, the Mailbox Server where the new databases are created is configured with an additional disk (E:) that will be used to store the database and its logfiles. Despite earlier examples using multiple disks, we're sticking to a single disk in order to keep things simple. However, if you have stored your logfiles and database files on separate volumes, the same principles apply.</p> <h2>How to do it...</h2> <h3>Creating a new mailbox database</h3> <p>To create a new mailbox database called <i>MDB01</i> on server <i>EX01</i>, execute the following command:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>New-MailboxDatabase &ndash;Name "MDB01" &ndash;Server "EX01.exblog.be" &ndash;LogFolderPath "E:\MDB01\Logs" &ndash;EdbFilePath "E:\MDB01\MDB01.edb"</b> </p></pre> <p>Unlike the EAC, which offers you to choose whether or not to immediately mount the database, you will need to manually mount the new database after it is created. Have a look later in this article for more information on how to mount/dismount databases.</p> <p>Exchange 2013 no longer dynamically adjusts the amount of memory that is assigned for each database's cache. How much memory is assigned per database depends on the amount of active and passive databases on the servers and is calculated when the Exchange Information Store service starts. That is also why you will see the following message whenever you add or remove a database or database copy to a server:</p> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_001.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p>To restart the Exchange Information Store Service, run the following command from an elevated command prompt or PowerShell instance:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Restart-Service MSExchangeIS</b> </p></pre> <p style="margin-left:40px;margin-right:40px"><i> Restarting the Exchange Information Store service will cause all databases on that server to be dismounted. If that server is not a member of a DAG or it is the sole server that contains a given database copy, that will result in downtime for the user while the service restarts.</i></p> <p>Alternatively, the same action can be performed through the Exchange Admin Center:</p> <ol> <li>Navigate to <b>Servers</b> | <b>databases</b> .</li> <li>Click on the plus-sign ( <b>+</b> ) to launch the <b>new database</b> wizard. Enter a name for the database.</li> <li>Click on <b>browse...</b> and select the Mailbox Server where you want to create the database.</li> <li>Specify the EDB and logfile location. <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_002.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> </li> <li>Click on <b>Save</b> .</li> </ol> <h3>Removing a mailbox database</h3> <p>Before you can remove a mailbox database, it must not contain active mailboxes anymore. However, it is possible it still contains disconnected or deleted mailboxes that haven't been purged from the database yet. So before you can remove a database, you need to make sure that all mailboxes have been moved to another database. If you don't, you will get an error as shown in the following screenshot:</p> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_003.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p style="margin-left:40px;margin-right:40px"><i> Before you can remove a mailbox database that has multiple database copies in a Database Availability Group, you need to remove the passive copies first. Only when the active database is the only copy that remains and it's empty, you will be able to permanently remove the database.</i></p> <p>The following commands will move all mailboxes from database <i>MDB01</i> to database <i>MDB02</i>, including any system mailboxes that might be hosted in <i>MDB01</i>:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Get-Mailbox &ndash;Database "MDB01" | New-MoveRequest &ndash;TargetDatabase "MDB02"</b> <b>Get-Mailbox &ndash;Database "MDB01" -Arbitration | New-MoveRequest &ndash;TargetDatabase "MDB02"</b> </p></pre> <p>Once you made sure that the database is empty, you can go ahead and remove the database using the following command:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Get-MailboxDatabase MDB01 | Remove-MailboxDatabase</b> </p></pre> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_004.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p style="margin-left:40px;margin-right:40px"><i> Executing the command will remove the database from Exchange, but it will not remove the database files. You will have to manually delete the remaining files from the disk.</i></p> <p>To remove a mailbox database through the EAC, execute the following steps:</p> <ol> <li>Navigate to <b>Servers</b> | <b>databases</b> .</li> <li>Select the database you want to remove and click on the garbage bin icon as shown in the following screenshot: <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_005.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> </li> <li>Click on <b>Yes</b> to confirm.</li> </ol> <h2>How it works...</h2> <p>Creating a mailbox database is in fact a pretty straightforward process. It suffices to provide a name, database - and log file path locations and let Exchange take care of the rest for you. When creating a new database, Exchange will first create an object in Active Directory and then create the EDB file along with the log stream and search catalog files in the locations that you specified earlier.</p> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_006.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p>During the installation of Exchange 2013, several so-called arbitration mailboxes are created automatically. These mailboxes are used for system-related actions, such as distribution group moderation, federated delegation and system notification.</p> <p>The following arbitration mailboxes are created by default and stored in the first (default) mailbox database:</p> <ul> <li>SystemMailbox {GUID}</li> <li>Migration.8f3e7716-2011-43e4-96b1-aba62d229136</li> <li>FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042</li> </ul> <p style="margin-left:40px;margin-right:40px"><i> Make absolutely sure that you include these arbitration mailboxes when you are emptying a database before removal. If these mailboxes become unavailable or corrupt, one or more of Exchange's features might stop working. Luckily, Exchange helps you remembering and it won't let you remove a database unless it's considered empty and it's safe to remove it.</i></p> <h2>There's more...</h2> <p>When trying to physically remove the files immediately after having removed the mailbox database from Exchange, chances are that you will run into the error shown in the following screenshot:</p> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_007.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p><i>Noderunner.exe</i> is a child process of the Microsoft Exchange Search Host Controller service. In order to release the files from the <i>noderunner.exe</i> process, you can do any of the following:</p> <ol> <li>Restart the Mailbox Server. Unless your server is part of a Database Availability Group and other servers have copies of the databases on this server, you will have to plan for a little downtime while the server is rebooting.</li> <li>Restart <i>HostControllerService</i> on the Mailbox Server by executing following command from an elevated PowerShell console: <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Restart-Service HostControllerService</b> </p></pre> </li> </ol> <h1>Mounting and dismounting mailbox databases</h1> <p>Although as an Exchange administrator, there shouldn't be many occasions on which you have to manually mount or dismount a database, sometimes you might be required to intervene because of an issue. The most common case is probably when a disk on which a database or logfiles are stored runs out of disk space. To protect the database, Exchange will automatically dismount the database. To recover from this situation, the administrator must free-up some space and manually re-mount the database. Therefore it's not only important to know how to perform these actions, but also to understand what's happening when they are executed.</p> <h2>Getting ready</h2> <p>In order to execute the following steps, you will need to log in to the Exchange Management Shell.</p> <h2>How to do it...</h2> <p>We will learn mounting and dismounting of database in this section.</p> <h3>Mounting a database</h3> <p>The following command will issue a mount-request for database <i>MDB01</i>:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Mount-Database "MDB01"</b> </p></pre> <h3>Dismounting a database:</h3> <p>Executing the following command will dismount the database <i>MDB01</i>:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"><b>Dismount-Database "MDB01"</b> </p></pre> <h2>How it works...</h2> <p>Before Exchange 2013, every database ran within the same process (<i>store.exe</i>) on the Mailbox Server. The introduction of the new Managed Store in Exchange 2013 changed things quite drastically, but for the better: every database is now running within its own process. This approach has some great advantages, such as whenever a database causes its worker process to hang, only a single database is affected whereas before all databases on the server would have suffered from the hanging process.</p> <p>When taking a closer look at the new Managed Store, we can distinguish three important services:</p> <ul> <li>Store Service process</li> <li>Store Worker process</li> <li>Exchange Replication Service</li> </ul> <p>The Exchange Replication Service could be seen as a sort of traffic control manager that provides a management interface for Exchange databases as it is responsible for issuing mount and dismount requests to the Store Service. Next to that, the Replication Service also keeps an eye on the state of a mailbox database and will, for instance, initiate a database failover when an issue with a database is reported.</p> <p>For each mount request that is issued, the Exchange Store Service will create a new store worker process for the database being mounted.</p> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_008.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p>Amongst other tasks, the store worker process itself is responsible for providing effective access to the database. When a database is mounted successfully, Event 3156 will be posted to the Application event log.</p> <p>Subsequently, the store service will terminate the worker process for a database when a dismount request has been issued. During the dismount process, Exchange will set a flag in the database headers telling that it was cleanly dismounted (also referred to as a "clean shutdown"). If this flag isn't present, the database cannot be re-mounted without being repaired first. When a database is dismounted successfully, an Event 3161 will be posted to the Application event log.</p> <h2>There's more...</h2> <p>To know if and on what server a database is mounted, execute the following steps. Notice the use of the <i>&ndash;Status</i> parameter in the following command:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Get-MailboxDatabase &ndash;Status | Ft Name,*mount*</b> </p></pre> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_009.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p>It is also possible to get a quick overview of the databases' status through the EAC. You can do so by navigating to <b>Servers</b> | <b>databases</b> .</p> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_010.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <h1>Moving database files to another location</h1> <p>If you adequately sized your environment, including taking into account additional disk space for future growth, chances are that you'll never have to physically move a database to another location. However, sometimes lack of disk space, change of underlying storage subsystem or simply a change in the design of your environment might require you to move database file to another physical location.</p> <h2>Getting ready</h2> <p>To execute the following steps, launch the Exchange Management Shell. For more information on how to dismount a database have a look at <i>Mounting/dismounting mailbox databases</i> earlier in this article.</p> <h2>How to do it...</h2> <p>The following command will move the database files of a database called <i>MDB01</i> to another location:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Move-DatabasePath &ndash;Identity "MDB01" &ndash;EdbFilePath "E:\NewPath\MDB01\MDB01.edb" &ndash;LogFolderPath "E:\NewPath\MDB01\Logs"</b> </p></pre> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_011.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p>If you run the command while the database is mounted, the Exchange Management Shell will automatically throw a warning and ask for confirmation to dismount the database:</p> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_012.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p style="margin-left:40px;margin-right:40px"><i> Dismounting a database will cause a temporary outage until the move has completed.</i></p> <p>After the move has completed, Exchange will automatically re-mount the database.</p> <h2>There's more...</h2> <p>In some cases, you might prefer Exchange not to automatically move the physical files to their new location. This could be the case when you are using Mount Points in Windows Server. Mount Points can easily be reassigned to another location, without having to actually copy the data, therefore saving quite some time; especially when you are working with large databases.</p> <p>Luckily, you can run the same command as before, only this time adding the <i>&ndash;ConfigurationOnly</i> parameter. The command will only update the database object's properties in Active Directory without physically moving the files' location:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Move-DatabasePath &ndash;Identity "MDB01" &ndash;EdbFilePath "E:\NewPath\MDB01\MDB01.edb" &ndash;LogFolderPath "E:\NewPath\MDB01\Logs" &ndash;ConfigurationOnly</b> </p></pre> <p style="margin-left:40px;margin-right:40px"><i> If you use the <i>&ndash;ConfigurationOnly</i> parameter, make sure that you manually move/relocate the database files before attempting to mount it again. If you are working with Mount Points, now is the time you would change the mount point location.</i></p> <h1>Configuring circular logging</h1> <p>Circular logging is the process of truncating logfiles as soon as they have been committed into the database. Normally, logfiles are only truncated after a full back. This allows you to restore a database from an earlier time and replay the transactions up to the latest available one.</p> <p>Normally there's no need to enable circular logging but it can come in handy to quickly free up some disk space; although we would prefer extending disk space for a full log drive over enabling circular logging. Another point of attention is that using circular logging comes at a cost, if you need to restore a database from an earlier point in time you won't be able to recover to the time when the database failed, inevitably leading to data loss.</p> <p>That is also one of the reasons why Microsoft recommends only enabling circular logging when you have at least three additional database copies.</p> <h2>Getting ready</h2> <p>In order to execute the following steps, launch the Exchange Management Shell.</p> <h2>How to do it...</h2> <p>To enable circular logging for database <i>MDB01</i>, run the following command:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Set-MailboxDatabase "MDB01" &ndash;CircularLoggingEnabled $true</b> </p></pre> <p>Similarly, the following command will turn off circular logging:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Set-MailboxDatabase "MDB01" &ndash;CircularLoggingEnabled $false</b> </p></pre> <p style="margin-left:40px;margin-right:40px"><i>If you enable or disable circular logging for a single database copy, you will have to remount (dismount/mount) the mailbox database for the change to become effective. Databases that are part of a Database Availability Group and have multiple copies don't have to be remounted.</i></p> <h2>How it works...</h2> <p>Every action that a user performs, generates one (or more) database transactions. These transactions aren't immediately written to the database. Instead, as a safety-measure, these transactions get written into a logfile first. Only when transactions are safely written to a logfile, they are recorded in the database. Each logfile is 1MB in size. When a logfile fills up, a new one is automatically generated.</p> <p>Transaction logs play an important role at maintaining the consistency of a database. For example, when the store worker process of one of the databases crashes, that database is not dismounted properly and thus it won't have the <b>clean shutdown</b> flag set. As a result, you won't be able to mount the database until it is brought back into a clean shutdown state.</p> <p>Without going into too much detail, the process involved to bring a database back into a consistent state involves replaying logfiles and recording the (partial) transactions from those logfiles into the database. The transactions in the logfiles could be pretty much anything from a new e-mail that was received to a message's read status that has changed. If a logfile that needs to be replayed against the database isn't available, it essentially means that one or more (partial) transactions cannot be recorded and therefore results in data loss.</p> <p>In large environments, each database can generate hundreds even thousands of logfiles each day and could end up using quite some disk space. Although it's not a recommendation, you can enable circular logging which will flush transaction logs as soon as the transactions have been recorded in the database. If you are running a DAG and your database has multiple copies, transaction logs will be flushed as soon as all database copies have recorded the transactions in the database. In case you have a lagged database copy, the logfile will be flushed from the active and passive database copies as soon as each has recorded the transactions into the database and the logfile has been inspected by the lagged copy.</p> <p>Circular logging allows you to save on disk space that would otherwise be used to store the transaction logs. However, when a disaster strikes and you need to restore a database from backup, you will not be able to recover the latest transactions therefore losing data up to the latest backup. So, if you enable circular logging, make sure that you have multiple database copies running in a Database Availability Group; preferably at least three. The idea behind this is that the risk of losing three copies at once is relatively small. Just keep in mind that it's not impossible.</p> <h1>Creating and removing mailboxes</h1> <p>Creating mailboxes might be one of the simplest tasks within an Exchange environment. Even though the EAC wizard is relatively self-explanatory, there are some caveats to look out for. Especially the distinction between removing and disabling mailboxes might be confusing at first.</p> <h2>Getting ready</h2> <p>To execute the following steps, log in to the Exchange Admin Center or launch the Exchange Management Shell.</p> <h2>How to do it...</h2> <p>In this section we will learn how to create and remove mailboxes.</p> <h3>Creating a new user with mailbox</h3> <p>The following command will create a new user named <i>Mark Sheffield</i> and create a mailbox for that user:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>New-Mailbox &ndash;UserPrincipalName Mark.Sheffield@exblog.be &ndash;Alias MSheffield &ndash;Database "MDB01" &ndash;Name "Mark Sheffield" &ndash;OrganizationalUnit "Users" &ndash;Password (Converto-Securestring &ndash;Asplaintext "P@ssw0rd" &ndash;Force) &ndash;Firstname "Mark" &ndash;LastName "Sheffield" &ndash;DisplayName "Mark Sheffield" &ndash;ResetPasswordOnNextLogon $true</b> </p></pre> <p>In the example we just saw, some parameters are required, others aren't. If you aren't sure, you can have a look at the PowerShell help or you could just run <i>New-Mailbox</i>. If you haven't specified all required parameters, PowerShell will automatically query you for them.</p> <p style="text-align: center;"><img style="border: 1px solid black;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="/sites/default/files/Article-Images/0624EN_04_013.png" border="0" title="Microsoft Exchange 2013 Cookbook" /></p> <p>Creating a new mailbox through the EAC is equally easy, just follow these steps:</p> <ol> <li>Navigate to <b>Recipients</b> | <b>Mailboxes</b> .</li> <li>Click on the plus-sign ( <b>+</b> ) to start the <b>new mailbox</b> wizard.</li> <li>Click on <b>New User</b> and fill in the other fields, such as <b>First Name</b> , <b>Last Name</b> , and <b>Display name</b> .</li> <li>Click on <b>more options...</b> to configure advanced options like: <ul> <li>In what database the mailbox should be created</li> <li>Whether or not an archive should be created</li> <li>What address book policy should be used</li> </ul> </li> <li>Click on <b>Save</b> to create the user.</li> </ol> <h3>Enabling a mailbox for an existing user</h3> <p>The following command will create a mailbox for an existing user named <i>Kirk Jones</i>:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Enable-Mailbox &ndash;Identity "Exblog\kjones" &ndash;Database "MDB01"</b> </p></pre> <p>To enable a mailbox for an existing user through the EAC refer the following steps:</p> <ol> <li>Navigate to <b>Recipients</b> | <b>Mailboxes</b> .</li> <li>Click on the plus-sign ( <b>+</b> ) to start the <b>new mailbox</b> wizard.</li> <li>Click on <b>Existing user</b> and click on <b>browse...</b> to select the user.</li> <li>Fill in the other fields.</li> <li>Click on <b>more options...</b> to configure advanced options such as: <ul> <li>In what database the mailbox should be created</li> <li>Whether or not an archive should be created</li> <li>The address book policy</li> </ul> </li> <li>Click on <b>Save</b> to create the user.</li> </ol> <h3>Removing a mailbox</h3> <p>This command will effectively remove the mailbox and the user account of user <i>kjones</i>:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Remove-Mailbox &ndash;Identity kjones</b> </p></pre> <p>To effectively remove the mailbox and the user account through the EAC refer to the following steps:</p> <ol> <li>Navigate to <b>Recipients</b> | <b>Mailboxes</b> .</li> <li>Select the user from the list of users.</li> <li>Click the garbage bin icon and select <b>delete</b> .</li> <li>Click <b>Yes</b> to confirm.</li> </ol> <p style="margin-left:40px;margin-right:40px"><i> It's a common error to use Remove-Mailbox to remove a mailbox for a user. Remember that Remove-Mailbox will also remove the user account of that user. If you only want to remove the mailbox (that is, only remove the Exchange-attributes for the user account), run <i>Disable-Mailbox</i>.</i></p> <h3>Disabling a mailbox</h3> <p>The following command will disable the mailbox for user <i>kjones</i>, marking the user's mailbox for deletion in the database but without touching the user account itself:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Disable-Mailbox &ndash;Identity kjones</b> </p></pre> <p>To disable the mailbox for user through the EAC follow these steps:</p> <ol> <li>Navigate to <b>Recipients</b> | <b>Mailboxes</b> .</li> <li>Select the user from the list of users.</li> <li>Click the garbage bin icon and select <b>disable</b> .</li> <li>Click <b>Yes</b> to confirm.</li> </ol> <h2>How it works...</h2> <p>Creating and removing mailboxes is a pretty straightforward action. However, the notion of removing and disabling mailboxes can sometimes be confusing.</p> <p>When removing a mailbox, you are not only removing the user's mailbox but also the user account in AD. Disabling a user on the other hand will only mark the user's mailbox for deletion in the database, leaving the user account without a mailbox.</p> <p>Depending on how your databases are configured, the mailbox will remain in the database in a disconnected state until it's past the database's retention time.</p> <p>For example, to raise the deleted mailbox retention period to 60 days, run the following command:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Set-MailboxDatabase MDB01 &ndash;MailboxRetention 60.00:00:00</b> </p></pre> <h2>There's more...</h2> <p>When a mailbox is disabled, it is removed from the list of mailboxes in the EAC and you won't see it anymore when running the <i>Get-Mailbox</i> cmdlet. However, this doesn't necessarily mean the mailbox isn't there anymore.</p> <p>As long as the mailbox is still within the deleted mailbox retention period of your mailbox database, you can re-enable it for the same user or connect it to another user's account, as long as that user doesn't already have a mailbox associated with it.</p> <h3>Working with disabled mailboxes</h3> <p>Run the following command to see a list of disabled mailboxes for a given database:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Get-MailboxStatistics &ndash;Database "MDB01" | ? {$_.DisconnectReason &ndash;eq "Disabled"}</b> </p></pre> <p>To reconnect the disabled mailbox of <i>Ashley Noel</i> in database <i>DBMBX01</i> to the user account of <i>Ashley Noel</i>, you can run the following command:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Connect-Mailbox "Ashley Noel" &ndash;Database "DBMBX01"</b> </p></pre> <p>To connect the disabled mailbox of <i>Ashley Noel</i> to another user, <i>Kirk Jones</i>, run the following command:</p> <pre style="margin-left: 40px;"><p style="white-space: pre;"> <b>Connect-Mailbox "Ashley Noel" &ndash;Database "DBMBX01" &ndash;User "exblog\kjones"</b> </p></pre>

About the Author :


Books From Packt

<hr /> <table id="table42" style="border-collapse: collapse;" border="0" bordercolor="#cc6600" cellpadding="3" width="588"> <tbody> <tr> <td valign="top" width="68"> <p align="center"><span style="font-family: Verdana; font-size: xx-small;"> <a href="http://www.packtpub.com/drupal-6-javascript-and-jquery/book/sl/typoext-abr/1108"> <img style="border: 1px solid #000000;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="http://images.packtpub.com/images/50x61/1847196160.png" border="0" alt="Drupal 6 JavaScript and jQuery: RAW" title="Drupal 6 JavaScript and jQuery: RAW" width="49" height="61" /></a></span><br /> <a href="http://www.packtpub.com/drupal-6-javascript-and-jquery/book/sl/typoext-abr/1108"> <span style="font-family: Verdana; color: #ff0000; font-size: xx-small;">Drupal 6 JavaScript and jQuery: RAW</span></a></p> </td> <td valign="top" width="68"> <p align="center"><span style="font-family: Verdana; font-size: xx-small;"> <a href="http://www.packtpub.com/wordpress-theme-design/book/sl/typoext-abr/1108"> <img style="border: 1px solid #000000;" class="style7" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="http://images.packtpub.com/images/50x61/1847193099.png" border="0" alt="WordPress Theme Design" title="WordPress Theme Design" width="50" height="62" /></a><br /> <span><span class="style1"> <a href="http://www.packtpub.com/wordpress-theme-design/book/sl/typoext-abr/1108"> <span style="color: #ff0000;">WordPress Theme Design</span></a></span></span></span></p> </td> <td valign="top" width="68"> <p align="center"><a href="http://www.packtpub.com/wordpress-for-business-bloggers/book/sl/typoext-abr/1108"> <img style="border: 1px solid #000000;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="http://images.packtpub.com/images/50x61/1847195326.png" border="0" alt="WordPress for Business Bloggers" title="WordPress for Business Bloggers" width="49" height="61" /></a><span style="font-family: Verdana; font-size: xx-small;"><br /> <span> <span class="style1"><span style="color: #ff0000;"> <a href="http://www.packtpub.com/wordpress-for-business-bloggers/book/sl/typoext-abr/1108"> <span style="color: #ff0000;">WordPress for Business Bloggers</span></a></span></span></span></span></p> </td> <td valign="top" width="68"> <p align="center"><span style="font-family: Verdana; font-size: xx-small;"> <a href="http://www.packtpub.com/wordpress/book/sl/typoext-abr/1108"> <img style="border: 1px solid #000000;" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="http://images.packtpub.com/images/50x61/1904811892.png" border="0" alt="WordPress Complete" title="WordPress Complete" width="50" height="61" /></a><br /> </span> <a href="http://www.packtpub.com/wordpress/book/sl/typoext-abr/1108"> <span style="font-family: Verdana; color: #ff0000; font-size: xx-small;">WordPress Complete</span></a></p> </td> <td valign="top" width="68"> <p align="center"><a href="http://www.packtpub.com/drupal-6-create-powerful-websites/book/sl/typoext-abr/1108"> <img style="border: 1px solid #000000;" class="style7" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="http://images.packtpub.com/images/50x61/1847192971.png" border="0" alt="Building Powerful and Robust Websites with Drupal 6" title="Building Powerful and Robust Websites with Drupal 6" width="49" height="61" /></a><br /> <span style="font-family: Verdana; color: #ff0000;"> <span class="style9"> <a href="http://www.packtpub.com/drupal-6-create-powerful-websites/book/sl/typoext-abr/1108"> <span class="style1"><span style="color: #ff0000; font-size: xx-small;">Building Powerful and Robust Websites with Drupal 6</span></span></a></span></span></p> </td> <td valign="top" width="68"> <p align="center"><span style="font-family: Verdana; font-size: xx-small;"> <a href="http://www.packtpub.com/joomla-version-1-5/book/sl/typoext-abr/1108"> <img style="border: 1px solid #000000;" class="style7" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="http://images.packtpub.com/images/50x61/184719530X.png" border="0" alt="Building Websites with Joomla! 1.5" title="Building Websites with Joomla! 1.5" width="50" height="62" /></a><br /> <span><span class="style8"> <a href="http://www.packtpub.com/joomla-version-1-5/book/sl/typoext-abr/1108"> <span class="style1"><span style="color: #ff0000;">Building Websites with Joomla! 1.5</span></span></a></span></span></span></p> </td> <td valign="top" width="68"> <p align="center"><a href="http://www.packtpub.com/drupal-6-themes/book/sl/typoext-abr/1108"> <img style="border: 1px solid #000000;" class="style7" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="http://images.packtpub.com/images/50x61/1847195660.png" border="0" alt="Drupal 6 Themes" title="Drupal 6 Themest" width="50" height="62" /></a><br /> <span style="font-family: Verdana; color: #ff0000;"> <span class="style9"> <a href="http://www.packtpub.com/drupal-6-themes/book/sl/typoext-abr/1108"> <span class="style1"><span style="color: #ff0000; font-size: xx-small;">Drupal 6 Themes</span></span></a></span></span></p> </td> <td valign="top" width="68"> <p align="center"><a href="http://www.packtpub.com/Professional-Plone-web-applications-CMS/book/sl/typoext-abr/1108"> <img style="border: 1px solid #000000;" class="style7" src='//dgdsbygo8mp3h.cloudfront.net/sites/default/files/blank.gif' data-original="http://images.packtpub.com/images/50x61/1847191983.png" border="0" alt="Professional Plone Development" title="Professional Plone Development" width="50" height="62" /></a><br /> <span style="font-family: Verdana; color: #ff0000;"> <span class="style9"> <a href="http://www.packtpub.com/Professional-Plone-web-applications-CMS/book/sl/typoext-abr/1108"> <span class="style1"><span style="color: #ff0000; font-size: xx-small;">Professional Plone Development</span></span></a></span></span></p> </td> </tr> </tbody> </table> <hr />
No votes yet

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Q
9
g
g
Z
C
Enter the code without spaces and pay attention to upper/lower case.
Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software