<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Exchange Server Pro &#187; EMS</title>
	<atom:link href="http://exchangeserverpro.com/tag/ems/feed" rel="self" type="application/rss+xml" />
	<link>http://exchangeserverpro.com</link>
	<description>Microsoft Exchange Server News - Tips - Tutorials</description>
	<lastBuildDate>Wed, 23 May 2012 11:55:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Exchange 2007/2010 Public Folder Store in an Inconsistent State</title>
		<link>http://exchangeserverpro.com/exchange-2007-2010-public-folder-store-inconsistent-state</link>
		<comments>http://exchangeserverpro.com/exchange-2007-2010-public-folder-store-inconsistent-state#comments</comments>
		<pubDate>Sat, 30 Apr 2011 08:09:38 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Public Folders]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=3317</guid>
		<description><![CDATA[In Exchange Server 2007 or 2010 you may encounter an error that the public folder store is corrupted and is in an inconsistent state.]]></description>
			<content:encoded><![CDATA[<p>In Exchange Server 2007 or 2010 you may encounter an error that the <a title="Exchange 2010 FAQ: Are Public Folders Supported in Exchange Server 2010?" href="http://exchangeserverpro.com/exchange-2010-public-folders-support">public folder</a> store is corrupted and is in an inconsistent state.</p>
<blockquote><p>The following warning(s) were reported while loading topology information:</p>
<p>get-PublicFolderDatabase<br />
Completed</p>
<p>Warning:<br />
Object EX2007PF1\EX2007PF1_SG1\Public Folder Store (EX2007PF1) has been corrupted and it is in an inconsistent state. The following validation errors have occurred:</p>
<p>Warning:<br />
The item &#8220;fbd8a0c6-8083-4175-915c-6842e6408af6&#8243; in public folder referral does not reference an existing server.</p></blockquote>
<p>In this particular case the problem was a server in the public folder referral list that no longer existed. This could be seen by inspecting the CustomReferralServerList attribute of the public folder database.</p>
<pre>[PS] C:\&gt;$list = (Get-PublicFolderDatabase -server EX2007pf1).customreferralserverlist

[PS] C:\&gt;$list

ServerName          ServerGuid                         Cost Name
----------          ----------                         ---- ----
SYDEXPF1         3b1789ed-8d9b-43...                  10 SYDEXPF1:10
MELEXPF1          7521739a-6dc1-41...                  10 MELEXPF1:10
ADLEXPF1         5ce9557a-8e70-41...                  40 ADLEXPF1:40
                    fbd8a0c6-8083-41...                  90 {fbd8a0c6-8083-4...
EX2007PF2         8e074cb6-6170-46...                  25 EX2007PF2:25</pre>
<p>Note the missing entry in the ServerName column above, though the ServerGuid, Cost, and Name were still populated.</p>
<p>But because the ServerName attribute was empty, removing the entry from the list could not be done by referencing it as the necessary pair of values (ie ServerName:Cost).</p>
<p>Fortunately PowerShell 2.0 makes it possible to remove an entry from an array by referencing it by number, using the <a href="http://msdn.microsoft.com/en-us/library/dd182500(v=vs.85).aspx">RemoveAt method</a>.</p>
<p>The first entry in an array is 0, so the fourth entry is 3.</p>
<pre>[PS] C:\&gt;$list.RemoveAt(3)</pre>
<p>The array now has the invalid attribute removed.</p>
<pre>[PS] C:\&gt;$list

ServerName          ServerGuid                         Cost Name
----------          ----------                         ---- ----
SYDEXPF1         3b1789ed-8d9b-43...                  10 SYDEXPF1:10
MELEXPF1          7521739a-6dc1-41...                  10 MELEXPF1:10
ADLEXPF1         5ce9557a-8e70-41...                  40 ADLEXPF1:40
EX2007PF2         8e074cb6-6170-46...                  25 EX2007PF2:25</pre>
<p>The final step is to update the public folder database with the new value.</p>
<pre>[PS] C:\&gt;Set-PublicFolderDatabase "EX2007PF1\Public Folder Store (EX2007PF1)" -CustomReferralServerList $list</pre>
<p>This may take some time to replicate throughout your Active Directory, after which the public folder database should no longer report the inconsistent state.</p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/powershell-configuring-settings-multiple-exchange-mailbox-databases" title="PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases">PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases</a></li><li><a href="http://exchangeserverpro.com/object-is-read-only-removing-exchange-server-2007-public-folder-database" title="Error “Object is Read Only” During Exchange Server 2007 Public Folder Database Removal">Error “Object is Read Only” During Exchange Server 2007 Public Folder Database Removal</a></li><li><a href="http://exchangeserverpro.com/exchange-2010-test-servicehealth" title="Using Test-ServiceHealth for Exchange Server Health Checks">Using Test-ServiceHealth for Exchange Server Health Checks</a></li><li><a href="http://exchangeserverpro.com/migrate-relay-connector-exchange-server-2007-2010" title="How to Migrate a Relay Connector from Exchange Server 2007 to 2010">How to Migrate a Relay Connector from Exchange Server 2007 to 2010</a></li><li><a href="http://exchangeserverpro.com/list-users-access-exchange-mailboxes" title="How to List all Users Who Have Access to Other Exchange Mailboxes">How to List all Users Who Have Access to Other Exchange Mailboxes</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/exchange-2007-2010-public-folder-store-inconsistent-state">Exchange 2007/2010 Public Folder Store in an Inconsistent State</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/exchange-2007-2010-public-folder-store-inconsistent-state/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases</title>
		<link>http://exchangeserverpro.com/powershell-configuring-settings-multiple-exchange-mailbox-databases</link>
		<comments>http://exchangeserverpro.com/powershell-configuring-settings-multiple-exchange-mailbox-databases#comments</comments>
		<pubDate>Wed, 27 Apr 2011 11:00:27 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Public Folders]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=3313</guid>
		<description><![CDATA[This article demonstrates how to update the public folders setting on multiple Exchange Server mailbox databases at once using PowerShell.]]></description>
			<content:encoded><![CDATA[<p>One of the strengths of using PowerShell for <a title="Exchange 2010 FAQ: How Do I Install the Exchange 2010 Management Tools?" href="http://exchangeserverpro.com/exchange-2010-install-management-tools">Exchange Server administration</a> is the ability to perform changes to multiple objects simultaneously. In this article I will demonstrate an example of this by showing you how to update a setting on multiple Exchange Server mailbox databases at once.</p>
<p>In this example the public folder database associated with the mailbox databases needs to be configured. There is already one mailbox database with the correct public folder setting and we want to apply the same setting to all of the other mailbox databases on the server.</p>
<p>Doing this manually, one at a time would be tedious.  But thanks to the Exchange Management Shell we can do it very quickly.</p>
<p>First, read the desired public folder setting from the first mailbox database into a variable.</p>
<pre>[PS] C:\&gt;$pfdb = (Get-mailboxdatabase EX2007MB1\EX2007MB1_DB1).publicfolderdatabase</pre>
<p>Now we can inspect the variable to see the result of that first step.</p>
<pre>[PS] C:\&gt;$pfdb

Rdn               : CN=EX2007PF1_DB1
Parent            : EX2007PF1\EX2007PF1_SG1
Depth             : 12
DistinguishedName : CN=EX2007PF1_DB1,CN=EX2007PF1_SG1,CN=InformationStore,C
                    N=EX2007PF1,CN=Servers,CN=Exchange Administrative Group (
                    FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Corp,CN=M
                    icrosoft Exchange,CN=Services,CN=Configuration,DC=corp,
                    DC=org
DomainId          : corp.org
ObjectGuid        : e898f054-85f2-4486-9d35-654a16083348
Name              : EX2007PF1_DB1</pre>
<p>Next, we apply that public folder setting to all of the mailbox databases on the server with this single command line.</p>
<pre>[PS] C:\&gt;Get-MailboxDatabase -server EX2007MB1 | Set-MailboxDatabase -PublicFolderDatabase $pfdb</pre>
<p>Now we can confirm that the change has occurred.</p>
<pre>[PS] C:\&gt;Get-MailboxDatabase -server EX2007MB1 | ft name,publicfolderdatabase

Name                                    PublicFolderDatabase
----                                    --------------------
EX2007MB1_DB1                         EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB2                         EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB3                         EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB4                         EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB5                         EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB6                         EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB7                         EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB8                         EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB9                         EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB10                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB11                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB12                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB13                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB14                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB15                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB16                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB17                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB18                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB19                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB20                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB21                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB22                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB23                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB24                        EX2007PF1\EX2007PF1_SG1\EX2007PF...
EX2007MB1_DB25                        EX2007PF1\EX2007PF1_SG1\EX2007PF...</pre>
<p>As you can see the Exchange Management Shell lets us make bulk changes with ease.</p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/exchange-2007-2010-public-folder-store-inconsistent-state" title="Exchange 2007/2010 Public Folder Store in an Inconsistent State">Exchange 2007/2010 Public Folder Store in an Inconsistent State</a></li><li><a href="http://exchangeserverpro.com/object-is-read-only-removing-exchange-server-2007-public-folder-database" title="Error “Object is Read Only” During Exchange Server 2007 Public Folder Database Removal">Error “Object is Read Only” During Exchange Server 2007 Public Folder Database Removal</a></li><li><a href="http://exchangeserverpro.com/test-mailflow-exchange-2003-servers" title="Using Test-Mailflow with Exchange 2003 Servers">Using Test-Mailflow with Exchange 2003 Servers</a></li><li><a href="http://exchangeserverpro.com/powershell-script-check-exchange-2010-database-backups" title="PowerShell Script: Check Exchange 2010 Database Backups">PowerShell Script: Check Exchange 2010 Database Backups</a></li><li><a href="http://exchangeserverpro.com/exchange-2010-test-servicehealth" title="Using Test-ServiceHealth for Exchange Server Health Checks">Using Test-ServiceHealth for Exchange Server Health Checks</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/powershell-configuring-settings-multiple-exchange-mailbox-databases">PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/powershell-configuring-settings-multiple-exchange-mailbox-databases/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Export Mailboxes with Exchange Server 2010 SP1</title>
		<link>http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1</link>
		<comments>http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1#comments</comments>
		<pubDate>Tue, 15 Mar 2011 11:51:37 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Client Access]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Mailbox]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PST]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=3070</guid>
		<description><![CDATA[How to use Mailbox Export Requests in Exchange Server 2010 SP1 to export mailboxes to PST file.]]></description>
			<content:encoded><![CDATA[<p>Exchange Server 2010 Service Pack 1 introduced a new method for exporting mailboxes called Mailbox Export Requests.  This new method replaces the previous Export-Mailbox command.</p>
<p>Before we look at how to create a new mailbox export request in Exchange 2010 SP1 there are a few things that you should understand.</p>
<p>Firstly, no accounts are granted the rights to export mailboxes by default.  You need to explicitly grant these rights, even to accounts that are organization administrators.</p>
<p>Secondly, the mailbox export request is processed by the <a href="http://exchangeserverpro.com/exchange-2010-server-roles">Client Access server role</a>.  Because multiple Client Access servers can exist in a site the request could be processed by any one of them.  To ensure that the path to the export PST file is valid for any Client Access server it has to be a UNC path to network share, not a local path.</p>
<h2>Granting User Rights for Mailbox Exports in Exchange 2010 SP1</h2>
<p>The first step is to grant the right to export mailboxes to an account in your organization.  In the Exchange Management Shell run the following command.</p>
<pre>New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Administrator</pre>
<p>If you&#8217;re logged with that user already simply restart your Exchange Management Shell session to be granted access to the new cmdlets.</p>
<h2>Creating a Network Share for Mailbox Exports in Exchange 2010 SP1</h2>
<p>Next we need to create the network share that will be used as the file path for the exported PST files.  All that is required here is a network share that the <strong>Exchange Trusted Subsystem</strong> group has read/write permission to.</p>
<p><img class="aligncenter size-full wp-image-3071" title="exchange-2010-mailbox-export-network-share-01" src="http://exchangeserverpro.com/wp-content/uploads/2011/03/exchange-2010-mailbox-export-network-share-01.png" alt="" width="366" height="384" /></p>
<h2>Exporting a Mailbox with an Exchange Server SP1 Mailbox Export Request</h2>
<p>With everything configured properly we can now use <a href="http://technet.microsoft.com/en-us/library/ff607299.aspx">New-MailboxExportRequest</a> to start the mailbox export.  The only two required parameters for the command are the file path to the export PST file, and the name of the mailbox to export.</p>
<pre>[PS] C:\&gt;New-MailboxExportRequest -Mailbox alan.reid -FilePath \\esp-ho-ex2010a\pst\alan.reid.pst

Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  exchangeserverpro.net/Company/Users/Head Of... Queued</pre>
<p>To view the status of the request use the Get-MailboxExportRequest cmdlet.</p>
<pre>[PS] C:\&gt;Get-MailboxExportRequest

Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  exchangeserverpro.net/Company/Users/Head Of... InProgress</pre>
<p>You can also see more detail about the mailbox export request with <a href="http://technet.microsoft.com/en-us/library/ff607479.aspx">Get-MailboxExportRequest</a>.</p>
<pre>[PS] C:\&gt;Get-MailboxExportRequest -Name MailboxExport | fl

RunspaceId     : c48a9069-e572-4c65-80ea-773e61e5337e
FilePath       : \\esp-ho-ex2010a\pst\alan.reid.pst
SourceDatabase : MB-HO-01
Mailbox        : exchangeserverpro.net/Company/Users/Head Office/Alan.Reid
Name           : MailboxExport
RequestGuid    : 9de3a722-0c82-4e34-98bf-0ff624c47c16
RequestQueue   : MB-HO-01
Flags          : IntraOrg, Push
BatchName      :
Status         : InProgress
Protect        : False
Suspend        : False
Direction      : Push
RequestStyle   : IntraOrg
OrganizationId :
Identity       : exchangeserverpro.net/Company/Users/Head Office/Alan.Reid\MailboxExport
IsValid        : True</pre>
<p>An easy way to see the progress of all mailbox export requests is to pipe Get-MailboxExportRequest into the <a href="http://technet.microsoft.com/en-us/library/ff607316.aspx">Get-MailboxExportRequestStatistics</a> cmdlet.</p>
<pre>[PS] C:\&gt;Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

Name                                   Status                    SourceAlias                           PercentComplete
----                                   ------                    -----------                           ---------------
MailboxExport                          InProgress                Alan.Reid                             20</pre>
<h2>Exporting an Archive Mailbox with Exchange Server SP1 Mailbox Export Request</h2>
<p>You can also export a user&#8217;s Personal Archive using mailbox export requests simply by adding the -IsArchive parameter to the command.</p>
<pre>[PS] C:\&gt;New-MailboxExportRequest -Mailbox alan.reid -FilePath \\esp-ho-ex2010a\pst\alan.reid.pst -IsArchive</pre>
<h2>Completing the Mailbox Export Request</h2>
<p>When a mailbox export request is completed it remains on the server until it is removed by an administrator using <a href="http://technet.microsoft.com/en-us/library/ff607464.aspx">Remove-MailboxExportRequest</a>.</p>
<p>To see all of the completed mailbox export requests run this command.</p>
<pre>[PS] C:\&gt;Get-MailboxExportRequest | where {$_.status -eq "Completed"}

Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  exchangeserverpro.net/Company/Users/Head Of... Completed</pre>
<p>And to clear all completed mailbox export requests from Exchange run the following command.</p>
<pre>[PS] C:\&gt;Get-MailboxExportRequest | where {$_.status -eq "Completed"} | Remove-MailboxExportRequest</pre>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/enable-disable-pop3-access-exchange-2010-mailboxes" title="How to Enable or Disable POP3 Access for Exchange 2010 Mailboxes">How to Enable or Disable POP3 Access for Exchange 2010 Mailboxes</a></li><li><a href="http://exchangeserverpro.com/exchange-2007-2010-public-folder-store-inconsistent-state" title="Exchange 2007/2010 Public Folder Store in an Inconsistent State">Exchange 2007/2010 Public Folder Store in an Inconsistent State</a></li><li><a href="http://exchangeserverpro.com/powershell-configuring-settings-multiple-exchange-mailbox-databases" title="PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases">PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases</a></li><li><a href="http://exchangeserverpro.com/powershell-script-check-exchange-2010-database-backups" title="PowerShell Script: Check Exchange 2010 Database Backups">PowerShell Script: Check Exchange 2010 Database Backups</a></li><li><a href="http://exchangeserverpro.com/exchange-2010-test-servicehealth" title="Using Test-ServiceHealth for Exchange Server Health Checks">Using Test-ServiceHealth for Exchange Server Health Checks</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1">How to Export Mailboxes with Exchange Server 2010 SP1</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>How to Enable or Disable POP3 Access for Exchange 2010 Mailboxes</title>
		<link>http://exchangeserverpro.com/enable-disable-pop3-access-exchange-2010-mailboxes</link>
		<comments>http://exchangeserverpro.com/enable-disable-pop3-access-exchange-2010-mailboxes#comments</comments>
		<pubDate>Sat, 12 Mar 2011 11:59:30 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Client Access]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>
		<category><![CDATA[pop3]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=3007</guid>
		<description><![CDATA[This Exchange Server 2010 tutorial demonstrates how to enable or disable POP3 access for individual mailbox users, and how to manage POP3 settings for multiple mailboxes at once.]]></description>
			<content:encoded><![CDATA[<p>When you are using <a href="http://exchangeserverpro.com/exchange-server-2010-pop3">POP3 for Exchange Server 2010</a> you may wish to enable or disable it for specific mailbox users in your organization.</p>
<p>You can determine if a mailbox is enabled or disabled for POP3 using the <a href="http://technet.microsoft.com/en-us/library/bb124754.aspx">Get-CASMailbox</a> cmdlet.</p>
<pre>[PS] C:\&gt;Get-CASMailbox john.smith

Name                 ActiveSyncEnabled OWAEnabled           PopEnabled          ImapEnabled         MapiEnabled
----                 ----------------- ----------           ----------          -----------         -----------
John Smith           True              True                 True                True                True</pre>
<p>To disable POP3 for a mailbox user use the <a href="http://technet.microsoft.com/en-us/library/bb125264.aspx">Set-CASMailbox</a> cmdlet.</p>
<pre>[PS] C:\&gt;Set-CASMailbox john.smith -PopEnabled:$false</pre>
<p>To enable POP3 access again run the same command with a value of <strong>$true</strong>.</p>
<pre>[PS] C:\&gt;Set-CASMailbox john.smith -PopEnabled:$true</pre>
<p>You can also enable or disable POP3 for multiple mailboxes at a time.  For example to disable POP3 on all mailboxes run this command.</p>
<pre>[PS] C:\&gt;Get-Mailbox | Set-CASMailbox -PopEnabled:$false</pre>
<p>Of course it may be easier to just disable POP3 entirely, but in some cases you might want a few people to still have access to it.</p>
<p>To find all mailbox users with POP3 enabled use this command.</p>
<pre>[PS] C:\&gt;Get-CASMailbox | where {$_.PopEnabled -eq $true}

Name                 ActiveSyncEnabled OWAEnabled           PopEnabled          ImapEnabled         MapiEnabled
----                 ----------------- ----------           ----------          -----------         -----------
Alan.Reid            True              True                 True                True                True
John Smith           True              True                 True                True                True</pre>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1" title="How to Export Mailboxes with Exchange Server 2010 SP1">How to Export Mailboxes with Exchange Server 2010 SP1</a></li><li><a href="http://exchangeserverpro.com/exchange-2007-2010-public-folder-store-inconsistent-state" title="Exchange 2007/2010 Public Folder Store in an Inconsistent State">Exchange 2007/2010 Public Folder Store in an Inconsistent State</a></li><li><a href="http://exchangeserverpro.com/powershell-configuring-settings-multiple-exchange-mailbox-databases" title="PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases">PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases</a></li><li><a href="http://exchangeserverpro.com/powershell-script-check-exchange-2010-database-backups" title="PowerShell Script: Check Exchange 2010 Database Backups">PowerShell Script: Check Exchange 2010 Database Backups</a></li><li><a href="http://exchangeserverpro.com/exchange-2010-test-servicehealth" title="Using Test-ServiceHealth for Exchange Server Health Checks">Using Test-ServiceHealth for Exchange Server Health Checks</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/enable-disable-pop3-access-exchange-2010-mailboxes">How to Enable or Disable POP3 Access for Exchange 2010 Mailboxes</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/enable-disable-pop3-access-exchange-2010-mailboxes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Reconnect a Disconnected Mailbox in Exchange Server 2010</title>
		<link>http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010</link>
		<comments>http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010#comments</comments>
		<pubDate>Sun, 13 Feb 2011 11:09:55 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Mailboxes]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=2819</guid>
		<description><![CDATA[This article demonstrates how to use the Exchange 2010 Management Shell to reconnect or restore disconnected mailboxes for users in the organization.]]></description>
			<content:encoded><![CDATA[<p>When an <a href="http://exchangeserverpro.com">Exchange 2010</a> mailbox has been disabled it becomes a disconnected mailbox.  Disconnected mailboxes sit in the mailbox database until the configured retention period has lapsed, and then they are purged.</p>
<p>You can see the retention period for a mailbox database by opening it&#8217;s properties and looking on the <strong>Limits</strong> tab.</p>
<div id="attachment_2820" class="wp-caption aligncenter" style="width: 454px"><img class="size-full wp-image-2820" title="exchange-2010-mailbox-database-retention-settings" src="http://exchangeserverpro.com/wp-content/uploads/2011/02/exchange-2010-mailbox-database-retention-settings.png" alt="" width="444" height="323" /><p class="wp-caption-text">Exchange 2010 mailbox database retention settings</p></div>
<p>In the example above a disconnected mailbox will remain in the database for 30 days before it is purged.</p>
<p>Sometimes within the retention period we want to recover the mailbox, for example if it was accidentally disabled or if the staff member returns to the company.</p>
<h2>How to List all Disconnected Exchange 2010 Mailboxes</h2>
<p>The <a href="http://exchangeserverpro.com/exchange-2010-install-management-tools">Exchange Management Shell</a> lets us find the disconnected mailboxes in the organization.</p>
<pre>[PS] C:\&gt;Get-MailboxDatabase | Get-MailboxStatistics | where {$_.DisconnectReason -ne $null} | ft displayname,database,disconnectreason -auto

DisplayName Database DisconnectReason
----------- -------- ----------------
Alan Reid   MB-HO-01         Disabled
TestMB BR   MB-BR-01      SoftDeleted
Aisha Bhari MB-BR-01      SoftDeleted</pre>
<p>Notice there are two disconnect reasons shown above.</p>
<ul>
<li><strong>Disabled</strong> &#8211; means the mailbox was disabled</li>
<li><strong>SoftDeleted</strong> &#8211; means the mailbox was either removed or moved between databases</li>
</ul>
<p>Here is an explanation of <a href="http://exchangeserverpro.com/exchange-2010-difference-between-remove-and-disable-mailbox">the difference between removing and disabling a mailbox in Exchange 2010</a> if you aren&#8217;t already familiar with it.</p>
<p>Disconnected mailboxes can be reconnected to an Active Directory user account. If no account exists for the person you want to reconnect a mailbox to then you would first create the account in Active Directory. Then you can reconnect the mailbox.</p>
<h2>How to Connect an Exchange 2010 Mailbox to a User Account</h2>
<p>To reconnect Alan Reid&#8217;s mailbox to his existing Active Directory account we would run this command.</p>
<pre>[PS] C:\&gt;Connect-Mailbox -Identity "Alan Reid" -Database MB-HO-01 -User Alan.Reid</pre>
<p>However, if the user already has a new mailbox they are using and you wish to restore the disconnected mailbox into that new mailbox then you would use the next method shown here.</p>
<h2>How to Restore a Deleted Mailbox to a User&#8217;s Mailbox</h2>
<p>A soft deleted mailbox needs a different method used. To restore the deleted Aisha Bhari mailbox to the current mailbox for that user we would run this command.</p>
<pre>[PS] C:\&gt;New-MailboxRestoreRequest -SourceDatabase MB-BR-01 -SourceStoreMailbox "Aisha Bhari" -TargetMailbox "Aisha Bhari"

Name                                           TargetMailbox                                  Status
----                                           -------------                                  ------
MailboxRestore                                 exchangeserverpro.net/Company/Users/Branch ... Queued</pre>
<p>The request goes into a queue for processing. You can monitor the progress of the request with this command.</p>
<pre>[PS] C:\&gt;Get-MailboxRestoreRequest

Name                                           TargetMailbox                                  Status
----                                           -------------                                  ------
MailboxRestore                                 exchangeserverpro.net/Company/Users/Branch ... Completed</pre>
<p class="alert">If you&#8217;re trying to reconnect a disconnected <em>archive</em> mailbox you may receive an error for the legacy DN not matching. Check out Chris Brown&#8217;s post <a href="http://www.flamingkeys.com/2012/02/how-to-reconnect-a-disconnected-archive-mailbox-in-exchange-2010/">here</a> for the solution.</p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/move-exchange-mailboxes-text-file-powershell" title="How to Move Exchange Mailboxes in a Text File using PowerShell">How to Move Exchange Mailboxes in a Text File using PowerShell</a></li><li><a href="http://exchangeserverpro.com/counting-exchange-server-2010-mailboxes-powershell" title="Counting Exchange Server 2010 Mailboxes with PowerShell">Counting Exchange Server 2010 Mailboxes with PowerShell</a></li><li><a href="http://exchangeserverpro.com/last-logon-time-exchange-2010-mailbox-users" title="How to Find Last Logon Time for Exchange 2010 Mailbox Users">How to Find Last Logon Time for Exchange 2010 Mailbox Users</a></li><li><a href="http://exchangeserverpro.com/user-logged-mailbox-data-return" title="The User Hasn&#8217;t Logged on to Mailbox So There is No Data to Return">The User Hasn&#8217;t Logged on to Mailbox So There is No Data to Return</a></li><li><a href="http://exchangeserverpro.com/powershell-script-create-mailbox-size-report-exchange-server-2010" title="Get-MailboxReport.ps1 &#8211; PowerShell Script to Generate Mailbox Reports">Get-MailboxReport.ps1 &#8211; PowerShell Script to Generate Mailbox Reports</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010">How to Reconnect a Disconnected Mailbox in Exchange Server 2010</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 FAQ: What is the Difference Between Disabling and Removing a Mailbox</title>
		<link>http://exchangeserverpro.com/exchange-2010-difference-between-remove-and-disable-mailbox</link>
		<comments>http://exchangeserverpro.com/exchange-2010-difference-between-remove-and-disable-mailbox#comments</comments>
		<pubDate>Sun, 06 Feb 2011 12:13:11 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Mailboxes]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=2766</guid>
		<description><![CDATA[In the Exchange Management Console when a mailbox is selected the actions pane shows two tasks; Disable and Remove.  These two tasks are often misunderstood by new Exchange administrators.]]></description>
			<content:encoded><![CDATA[<p><em>Question: What is the difference between disabling and removing an Exchange 2010 mailbox using the Exchange Management Console?</em></p>
<p>Something that I see a lot of new <a title="Training for Exchange Server 2010 70-662 Exam" href="http://exchangeserverpro.com/training-exchange-server-2010-70662-exam">Exchange administrators</a> get mixed up with is the difference between disabling and removing mailboxes in <a href="http://exchangeserverpro.com">Exchange Server 2010</a>.</p>
<p>In the <a title="Exchange 2010 FAQ: How Do I Install the Exchange 2010 Management Tools?" href="http://exchangeserverpro.com/exchange-2010-install-management-tools">Exchange Management Console</a> when a mailbox is selected the actions pane shows two tasks; <strong>Disable</strong> and <strong>Remove</strong>.</p>
<div id="attachment_2772" class="wp-caption aligncenter" style="width: 302px"><em><img class="size-full wp-image-2772 " title="exchange-2010-disable-remove-mailbox" src="http://exchangeserverpro.com/wp-content/uploads/2011/02/exchange-2010-disable-remove-mailbox.png" alt="" width="292" height="124" /></em><p class="wp-caption-text">Exchange 2010 mailbox tasks: Disable and Remove</p></div>
<p>These two tasks do the following:</p>
<ul>
<li><strong>Disable</strong> will remove the Exchange attributes for the user account but leave the user account in Active Directory.  The mailbox is then also left in the Exchange mailbox database until the retention period has lapsed, then it is removed permanently.</li>
<li><strong>Remove</strong> will remove both the Exchange mailbox and the user account from Active Directory</li>
</ul>
<p>Unfortunately some admins wrongly assume that Disable is for temporarily disabling mailboxes, and that Remove will only remove the mailbox and not the user account.</p>
<p>If you&#8217;re having trouble remember the correct usage of these tasks think about it in terms of the Exchange Management Shell commands and how they pair up.</p>
<ul>
<li><strong>Enable-Mailbox</strong> is for creating a mailbox for an existing user, and <strong>Disable-Mailbox</strong> removes only the Exchange attributes from the user account</li>
<li><strong>New-Mailbox</strong> is for creating a new AD user and mailbox at the same time, and <strong>Remove-Mailbox</strong> removes both the mailbox and the user object.</li>
</ul>
<p>But if thats too hard just to try to remember that <strong>Disable is the safest option</strong>, because you can quickly <a title="How to Reconnect a Disconnected Mailbox in Exchange Server 2010" href="http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010">reconnect the mailbox</a> to the user again if it is still within the retention period.</p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010" title="How to Reconnect a Disconnected Mailbox in Exchange Server 2010">How to Reconnect a Disconnected Mailbox in Exchange Server 2010</a></li><li><a href="http://exchangeserverpro.com/move-exchange-mailboxes-text-file-powershell" title="How to Move Exchange Mailboxes in a Text File using PowerShell">How to Move Exchange Mailboxes in a Text File using PowerShell</a></li><li><a href="http://exchangeserverpro.com/counting-exchange-server-2010-mailboxes-powershell" title="Counting Exchange Server 2010 Mailboxes with PowerShell">Counting Exchange Server 2010 Mailboxes with PowerShell</a></li><li><a href="http://exchangeserverpro.com/last-logon-time-exchange-2010-mailbox-users" title="How to Find Last Logon Time for Exchange 2010 Mailbox Users">How to Find Last Logon Time for Exchange 2010 Mailbox Users</a></li><li><a href="http://exchangeserverpro.com/how-to-find-exchange-server-2010-mailboxes-without-storage-quotas" title="How to Find Exchange Server 2010 Mailboxes without Storage Quotas">How to Find Exchange Server 2010 Mailboxes without Storage Quotas</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/exchange-2010-difference-between-remove-and-disable-mailbox">Exchange 2010 FAQ: What is the Difference Between Disabling and Removing a Mailbox</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/exchange-2010-difference-between-remove-and-disable-mailbox/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Move Exchange Mailboxes in a Text File using PowerShell</title>
		<link>http://exchangeserverpro.com/move-exchange-mailboxes-text-file-powershell</link>
		<comments>http://exchangeserverpro.com/move-exchange-mailboxes-text-file-powershell#comments</comments>
		<pubDate>Sat, 22 Jan 2011 11:58:05 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Mailboxes]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=2666</guid>
		<description><![CDATA[This tutorial demonstrates how to use a text file with a list of mailbox names as the input for an Exchange Server 2007 or 2010 mailbox migration using PowerShell.]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re planning to migrate Exchange mailboxes you might choose to create lists of users to move and store them in text files.  With the Exchange Management Shell you can then use the text files as inputs to PowerShell commands to execute the moves.</p>
<p>This method starts with the <strong>Get-Content</strong> PowerShell command.  Get-Content can be used to read in a list of mailboxes from a text file, for example:</p>
<pre>[PS] C:\&gt;Get-Content C:\Admin\users.txt
Aisha.Bhari
Andrew.O'Grady
Denise.Dartnell
Garth.Gibbons
Harinder.Rahman
Jagir.Ward
Jas.Dowden
Joanna.Hughes
Joy.Singh
Laoise.Curtis
Lydia.Haines
Maggie.Hengist
Michael.Phillips
Nancy.Scott
Pakwei.Dean
Prathee.Dar
Ravi.Edmonds
Rowena.Khan
Sharmila.Hafri
Stuart.Beauchamp
Tina.Miller
Wendy.Fyson
TestMB BR
</pre>
<p>This output can then be piped to the commands that are used to move the mailboxes.  For Exchange Server 2007 this would be:</p>
<pre>[PS] C:\&gt;Get-Content C:\Admin\users.txt | Move-Mailbox -TargetDatabase  -Confirm:$false
</pre>
<p>Note the <strong>-Confirm:$false</strong> that prevents you from having to manually confirm each move.</p>
<p>For <a href="http://exchangeserverpro.com/move-mailboxes-exchange-server-2010">Exchange Server 2010 mailbox moves</a> the commands are different:</p>
<pre>[PS] C:\&gt;Get-Content C:\Admin\users.txt | New-MoveRequest -TargetDatabase MB-HO-01
</pre>
<p>Note that if you wanted to test your command syntax without actually moving the mailboxes just use the -WhatIf paramater, for example:</p>
<pre>[PS] C:\&gt;Get-Content C:\Admin\users.txt | New-MoveRequest -TargetDatabase MB-HO-01 -WhatIf
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Aisha.Bhari".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Andrew.O'Grady".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Denise.Dartnell".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Garth.Gibbons".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Harinder.Rahman".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Jagir.Ward".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Jas.Dowden".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Joanna.Hughes".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Joy.Singh".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Laoise.Curtis".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Lydia.Haines".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Maggie.Hengist".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Michael.Phillips".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Nancy.Scott".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Pakwei.Dean".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Prathee.Dar".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Ravi.Edmonds".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Rowena.Khan".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Sharmila.Hafri".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Stuart.Beauchamp".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Tina.Miller".
What if: Creating move request "exchangeserverpro.net/Company/Users/Branch Office/Wendy.Fyson".
What if: Creating move request "exchangeserverpro.net/Users/TestMB BR".
</pre>
<p>When the moves are complete you can use a similar technique to verify that each user in the list was moved successfully to the target database.</p>
<pre>[PS] C:\&gt;Get-Content C:\Admin\users.txt | Get-Mailbox | ft name,database

Name                                                        Database
----                                                        --------
Aisha.Bhari                                                 MB-BR-01
Andrew.O'Grady                                              MB-BR-01
Denise.Dartnell                                             MB-BR-01
Garth.Gibbons                                               MB-BR-01
Harinder.Rahman                                             MB-BR-01
Jagir.Ward                                                  MB-BR-01
Jas.Dowden                                                  MB-BR-01
Joanna.Hughes                                               MB-BR-01
Joy.Singh                                                   MB-BR-01
Laoise.Curtis                                               MB-BR-01
Lydia.Haines                                                MB-BR-01
Maggie.Hengist                                              MB-BR-01
Michael.Phillips                                            MB-BR-01
Nancy.Scott                                                 MB-BR-01
Pakwei.Dean                                                 MB-BR-01
Prathee.Dar                                                 MB-BR-01
Ravi.Edmonds                                                MB-BR-01
Rowena.Khan                                                 MB-BR-01
Sharmila.Hafri                                              MB-BR-01
Stuart.Beauchamp                                            MB-BR-01
Tina.Miller                                                 MB-BR-01
Wendy.Fyson                                                 MB-BR-01
TestMB BR                                                   MB-BR-01
</pre>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/powershell-script-create-mailbox-size-report-exchange-server-2010" title="Get-MailboxReport.ps1 &#8211; PowerShell Script to Generate Mailbox Reports">Get-MailboxReport.ps1 &#8211; PowerShell Script to Generate Mailbox Reports</a></li><li><a href="http://exchangeserverpro.com/exchange-2007-2010-public-folder-store-inconsistent-state" title="Exchange 2007/2010 Public Folder Store in an Inconsistent State">Exchange 2007/2010 Public Folder Store in an Inconsistent State</a></li><li><a href="http://exchangeserverpro.com/powershell-configuring-settings-multiple-exchange-mailbox-databases" title="PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases">PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases</a></li><li><a href="http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010" title="How to Reconnect a Disconnected Mailbox in Exchange Server 2010">How to Reconnect a Disconnected Mailbox in Exchange Server 2010</a></li><li><a href="http://exchangeserverpro.com/counting-exchange-server-2010-mailboxes-powershell" title="Counting Exchange Server 2010 Mailboxes with PowerShell">Counting Exchange Server 2010 Mailboxes with PowerShell</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/move-exchange-mailboxes-text-file-powershell">How to Move Exchange Mailboxes in a Text File using PowerShell</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/move-exchange-mailboxes-text-file-powershell/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Counting Exchange Server 2010 Mailboxes with PowerShell</title>
		<link>http://exchangeserverpro.com/counting-exchange-server-2010-mailboxes-powershell</link>
		<comments>http://exchangeserverpro.com/counting-exchange-server-2010-mailboxes-powershell#comments</comments>
		<pubDate>Wed, 19 Jan 2011 13:44:53 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Mailboxes]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=2657</guid>
		<description><![CDATA[For an Exchange administrator there are a lot of different situations in which they may need to know how many mailboxes are in the organization.  Fortunately this is made easy in Exchange Server 2010 with a few simple PowerShell commands.]]></description>
			<content:encoded><![CDATA[<p>For an Exchange administrator there are a lot of different situations in which they may need to know how many mailboxes are in the organization.  Fortunately this is made easy in Exchange Server 2010 with a few simple PowerShell commands.</p>
<p>To get a count of all mailboxes in the Exchange 2010 organization use the following command:</p>
<pre>[PS] C:\&gt;(Get-Mailbox).count
393
</pre>
<p>Note that if you know your organization has over 1000 mailboxes you need to make sure that the result size of the command output is not limited.</p>
<pre>[PS] C:\&gt;(Get-Mailbox -resultsize unlimited).count
393
</pre>
<p>Next, we can get a count of mailboxes per Exchange 2010 mailbox server.</p>
<pre>[PS] C:\&gt;Get-Mailbox | Group-Object -Property:ServerName | Select-Object name,count

Name                                 Count
----                                 -----
esp-br-ex2010                           23
esp-ho-ex2010b                         370
</pre>
<p>We can also get a count of mailboxes per database in the Exchange organization.</p>
<pre>[PS] C:\&gt;Get-Mailbox | Group-Object -Property:Database | Select-Object name,count

Name                                    Count
----                                    -----
MB-BR-01                                   23
MB-HO-01                                  192
MB-HO-02                                  178
</pre>
<p>As you can see the Group-Object command allows us to see a count of mailboxes based on different attributes or properties of the mailbox.  For example a count of mailboxes that are and are not exempt from email address policies.</p>
<pre>[PS] C:\&gt;Get-Mailbox | Group-Object -Property:EmailAddressPolicyEnabled | Select-Object name,count

Name                                    Count
----                                    -----
True                                      392
False                                       1
</pre>
<p>And as a final example, a count of mailboxes by Office (notice that the 6 mailboxes with a null value are still included in the results).</p>
<pre>[PS] C:\&gt;Get-Mailbox | Group-Object -Property:Office | Select-Object name,count

Name                                         Count
----                                         -----
Branch Office                                   23
                                                 6
Head Office                                    364
</pre>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010" title="How to Reconnect a Disconnected Mailbox in Exchange Server 2010">How to Reconnect a Disconnected Mailbox in Exchange Server 2010</a></li><li><a href="http://exchangeserverpro.com/move-exchange-mailboxes-text-file-powershell" title="How to Move Exchange Mailboxes in a Text File using PowerShell">How to Move Exchange Mailboxes in a Text File using PowerShell</a></li><li><a href="http://exchangeserverpro.com/last-logon-time-exchange-2010-mailbox-users" title="How to Find Last Logon Time for Exchange 2010 Mailbox Users">How to Find Last Logon Time for Exchange 2010 Mailbox Users</a></li><li><a href="http://exchangeserverpro.com/user-logged-mailbox-data-return" title="The User Hasn&#8217;t Logged on to Mailbox So There is No Data to Return">The User Hasn&#8217;t Logged on to Mailbox So There is No Data to Return</a></li><li><a href="http://exchangeserverpro.com/powershell-script-create-mailbox-size-report-exchange-server-2010" title="Get-MailboxReport.ps1 &#8211; PowerShell Script to Generate Mailbox Reports">Get-MailboxReport.ps1 &#8211; PowerShell Script to Generate Mailbox Reports</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/counting-exchange-server-2010-mailboxes-powershell">Counting Exchange Server 2010 Mailboxes with PowerShell</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/counting-exchange-server-2010-mailboxes-powershell/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Find Last Logon Time for Exchange 2010 Mailbox Users</title>
		<link>http://exchangeserverpro.com/last-logon-time-exchange-2010-mailbox-users</link>
		<comments>http://exchangeserverpro.com/last-logon-time-exchange-2010-mailbox-users#comments</comments>
		<pubDate>Tue, 11 Jan 2011 09:00:21 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Mailboxes]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=2640</guid>
		<description><![CDATA[In Exchange Server 2003 the last logon time for a mailbox was visible in the Exchange System Manager.  For Exchange Server 2007 and 2010 the last logon time was removed from the Exchange Management Console, and so we need to use a differnet method to find this information.
]]></description>
			<content:encoded><![CDATA[<p>In Exchange Server 2003 the last logon time for a mailbox was visible in the Exchange System Manager.  For Exchange Server 2007 and 2010 the last logon time was removed from the Exchange Management Console, and so we need to use a differnet method to find this information.</p>
<p>The last logon time of an Exchange 2010 mailbox user can be found by running the <strong>Get-MailboxStatistics</strong> cmdlet in the Exchange Management Shell.</p>
<pre>[PS] C:\&gt;Get-MailboxStatistics "Alan Reid"

DisplayName ItemCount StorageLimitStatus        LastLogonTime
----------- --------- ------------------        -------------
Alan Reid   70163             BelowLimit 1/9/2011 10:59:51 PM
</pre>
<p>You can also pipe other input into Get-MailboxStatistics, for example to see the statistics for all Exchange 2010 mailbox users on a particular mailbox database.</p>
<pre>[PS] C:\&gt;Get-MailboxStatistics -Database MB-BR-01

DisplayName                                         ItemCount StorageLimitStatus        LastLogonTime
-----------                                         --------- ------------------        -------------
Tina Miller                                         51896             BelowLimit
Andrew O'Grady                                      51774             BelowLimit
TestMB BR                                           8                 BelowLimit 1/6/2011 12:16:05 AM
Jas Dowden                                          51517             BelowLimit
Laoise Curtis                                       51702             BelowLimit
Denise Dartnell                                     51804             BelowLimit
Pakwei Dean                                         51567             BelowLimit
Prathee Dar                                         51569             BelowLimit
Michael Phillips                                    51603             BelowLimit
Joy Singh                                           51753             BelowLimit
SystemMailbox{9ef3bf09-f222-4317-b216-3f592ab2f6a4} 45                BelowLimit
Wendy Fyson                                         1724              BelowLimit
Maggie Hengist                                      51099             BelowLimit
Joanna Hughes                                       51853             BelowLimit
Ravi Edmonds                                        51370             BelowLimit
Stuart Beauchamp                                    52192             BelowLimit
Nancy Scott                                         51282             BelowLimit
Harinder Rahman                                     51579             BelowLimit
Sharmila Hafri                                      51520             BelowLimit
Garth Gibbons                                       51691             BelowLimit
Jagir Ward                                          51491             BelowLimit
Rowena Khan                                         52083             BelowLimit
Aisha Bhari                                         4                 BelowLimit
Lydia Haines                                        51690             BelowLimit
</pre>
<p>In the above example many of the users have no last logon date, because they have not logged on to their mailboxes since they were migrated to Exchange Server 2010.  In this type of scenario you may wish to sort the results to see which Exchange 2010 mailbox users are yet to logon to their mailbox since a migration.</p>
<pre>[PS] C:\&gt;Get-MailboxStatistics -Server ESP-BR-EX2010 | Sort LastLogonTime -Descending

DisplayName               ItemCount    StorageLimitStatus                                                 LastLogonTime
-----------               ---------    ------------------                                                 -------------
Garth Gibbons             51691                BelowLimit                                          1/9/2011 11:38:00 PM
TestMB BR                 8                    BelowLimit                                          1/6/2011 12:16:05 AM
Nancy Scott               51282                BelowLimit
Harinder Rahman           51579                BelowLimit
Stuart Beauchamp          52193                BelowLimit
Joanna Hughes             51853                BelowLimit
Ravi Edmonds              51370                BelowLimit
Rowena Khan               52083                BelowLimit
Aisha Bhari               4                    BelowLimit
Jagir Ward                51491                BelowLimit
Sharmila Hafri            51520                BelowLimit
Lydia Haines              51690                BelowLimit
Maggie Hengist            51099                BelowLimit
Laoise Curtis             51702                BelowLimit
Denise Dartnell           51804                BelowLimit
Jas Dowden                51517                BelowLimit
Tina Miller               51896                BelowLimit
Andrew O'Grady            51774                BelowLimit
Pakwei Dean               51567                BelowLimit
SystemMailbox{9ef3bf09... 45                   BelowLimit
Wendy Fyson               20642                BelowLimit
Joy Singh                 51753                BelowLimit
Prathee Dar               51569                BelowLimit
Michael Phillips          51603                BelowLimit
</pre>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010" title="How to Reconnect a Disconnected Mailbox in Exchange Server 2010">How to Reconnect a Disconnected Mailbox in Exchange Server 2010</a></li><li><a href="http://exchangeserverpro.com/move-exchange-mailboxes-text-file-powershell" title="How to Move Exchange Mailboxes in a Text File using PowerShell">How to Move Exchange Mailboxes in a Text File using PowerShell</a></li><li><a href="http://exchangeserverpro.com/counting-exchange-server-2010-mailboxes-powershell" title="Counting Exchange Server 2010 Mailboxes with PowerShell">Counting Exchange Server 2010 Mailboxes with PowerShell</a></li><li><a href="http://exchangeserverpro.com/user-logged-mailbox-data-return" title="The User Hasn&#8217;t Logged on to Mailbox So There is No Data to Return">The User Hasn&#8217;t Logged on to Mailbox So There is No Data to Return</a></li><li><a href="http://exchangeserverpro.com/powershell-script-create-mailbox-size-report-exchange-server-2010" title="Get-MailboxReport.ps1 &#8211; PowerShell Script to Generate Mailbox Reports">Get-MailboxReport.ps1 &#8211; PowerShell Script to Generate Mailbox Reports</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/last-logon-time-exchange-2010-mailbox-users">How to Find Last Logon Time for Exchange 2010 Mailbox Users</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/last-logon-time-exchange-2010-mailbox-users/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to Find Exchange Server 2010 Databases with Circular Logging Enabled</title>
		<link>http://exchangeserverpro.com/how-to-find-exchange-server-2010-databases-with-circular-logging-enabled</link>
		<comments>http://exchangeserverpro.com/how-to-find-exchange-server-2010-databases-with-circular-logging-enabled#comments</comments>
		<pubDate>Fri, 29 Oct 2010 09:00:22 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Circular Logging]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>
		<category><![CDATA[Mailbox Databases]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=2269</guid>
		<description><![CDATA[An Exchange Server 2010 administrator may want to find out if any of the mailbox databases in the organization have been configured for circular logging.  In this tutorial I'll demonstrate how to find the mailbox database and how to reconfigure them all using the Exchange Management Shell.]]></description>
			<content:encoded><![CDATA[<p>An Exchange Server 2010 administrator may want to find out if any of the mailbox databases in the organization have been configured for circular logging.  However the Exchange Management Console does not make this information visually available.</p>
<p>The Exchange Management Shell can be used to determine which mailbox databases are enabled for circular logging by running the following command.</p>
<pre>
[PS] C:\>Get-MailboxDatabase | where {$_.CircularLoggingEnabled -eq $true}

Name                           Server          Recovery        ReplicationType
----                           ------          --------        ---------------
Mailbox Database 02            EX1             False           Remote
Mailbox Database 04            EX2             False           None
</pre>
<p>Another technique is to list all mailbox database sorted by their circular logging settings.</p>
<pre>
[PS] C:\>Get-MailboxDatabase | select name, circularloggingenabled | sort circularloggingenabled -desc | ft -AutoSize

Name                CircularLoggingEnabled
----                ----------------------
Mailbox Database 04                   True
Mailbox Database 02                   True
Mailbox Database 01                  False
Mailbox Database 03                  False
</pre>
<p>Here is a method that can be used to disabled circular logging on each of the mailbox databases.  Because the change doesn&#8217;t take effect until the mailbox database is dismounted and mounted again, this method also performs that task.</p>
<p><em>Caution: this may cause a disruption to mailbox access for your end users, so I do not recommend running this outside of maintenance windows.</em></p>
<p>Firstly, read the mailbox databases that have circular logging enabled into an array.</p>
<pre>
[PS] C:\>$dbs = Get-MailboxDatabase | where {$_.CircularLoggingEnabled -eq $true}
</pre>
<p>You can see now that the two mailbox databases are in the array.</p>
<pre>[PS] C:\>$dbs

Name                           Server          Recovery        ReplicationType
----                           ------          --------        ---------------
Mailbox Database 02            EX1             False           Remote
Mailbox Database 04            EX2             False           None
</pre>
<p>Now use the following commands to modify the circular logging setting on each mailbox database, dismount it, and mount it again.</p>
<p><em>Caution: I repeat my earlier warning that this may disrupt mailbox access for your end users.  Proceed with care.</em></p>
<pre>
[PS] C:\>foreach ($db in $dbs)
>> {Set-MailboxDatabase -Identity $db -CircularLoggingEnabled $false
>> Dismount-Database -Identity $db -Confirm:$false
>> Mount-Database -Identity $db
>> }
>>
</pre>
<p><em>Note: press Enter after each line and once more at the end to start processing the for loop.</em></p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/exchange-2007-2010-public-folder-store-inconsistent-state" title="Exchange 2007/2010 Public Folder Store in an Inconsistent State">Exchange 2007/2010 Public Folder Store in an Inconsistent State</a></li><li><a href="http://exchangeserverpro.com/powershell-configuring-settings-multiple-exchange-mailbox-databases" title="PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases">PowerShell: Configuring Settings on Multiple Exchange Mailbox Databases</a></li><li><a href="http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1" title="How to Export Mailboxes with Exchange Server 2010 SP1">How to Export Mailboxes with Exchange Server 2010 SP1</a></li><li><a href="http://exchangeserverpro.com/enable-disable-pop3-access-exchange-2010-mailboxes" title="How to Enable or Disable POP3 Access for Exchange 2010 Mailboxes">How to Enable or Disable POP3 Access for Exchange 2010 Mailboxes</a></li><li><a href="http://exchangeserverpro.com/exchange-2010-certificate-revocation-checks-and-proxy-settings" title="Exchange 2010 Certificate Revocation Checks and Proxy Settings">Exchange 2010 Certificate Revocation Checks and Proxy Settings</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/how-to-find-exchange-server-2010-databases-with-circular-logging-enabled">How to Find Exchange Server 2010 Databases with Circular Logging Enabled</a> is © 2010 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/how-to-find-exchange-server-2010-databases-with-circular-logging-enabled/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

