<?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; EMC</title>
	<atom:link href="http://exchangeserverpro.com/tag/emc/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 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>Exchange 2010 FAQ: Why Can&#8217;t I Manage Mailboxes in AD Users &amp; Computers Any More?</title>
		<link>http://exchangeserverpro.com/exchange-2010-faq-manage-mailboxes-ad-users-computers</link>
		<comments>http://exchangeserverpro.com/exchange-2010-faq-manage-mailboxes-ad-users-computers#comments</comments>
		<pubDate>Fri, 28 Jan 2011 19:12:12 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Exchange 2010]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=2663</guid>
		<description><![CDATA[One of the first things my customers notice when I demonstrate Exchange Server 2010 management to them is that mailboxes are no longer created or managed in the Active Directory Users &#038; Computers console.]]></description>
			<content:encoded><![CDATA[<p><em><img class="alignright size-full wp-image-2752" title="question" src="http://exchangeserverpro.com/wp-content/uploads/2011/01/question.jpg" alt="" width="180" height="166" />Question: Why can&#8217;t I manage Exchange 2010 mailboxes in AD Users &amp; Computers any more?</em></p>
<p>One of the first things my customers notice when I demonstrate Exchange Server 2010 management to them is that mailboxes are no longer created or managed in the Active Directory Users &amp; Computers console.</p>
<p>This is sometimes alarming for them because it means that <a href="http://exchangeserverpro.com/exchange-2003-2010-migration-guide">migrating to Exchange 2010</a> forces a change in their administrative habits and workflows, for example creating a user account and a mailbox now requires two different management tools instead of just one.</p>
<p>I usually explain a few or all of the following reasons for this change:</p>
<ul>
<li>AD Users &amp; Computers used to integrate nicely with the Exchange 2003 System Manager tools</li>
<li>AD Users &amp; Computers uses a different MMC version than the Exchange Management Console</li>
<li>The Exchange Management Console is now built on top of PowerShell, which AD Users &amp; Computers is not</li>
<li>The change re-unites Exchange mailbox management with organization and server management in a single console</li>
<li>The sheer number of management tasks available in the Exchange Management Console would make the AD Users &amp; Computers interface too crowded and confusing</li>
<li>Separating the two is important for organizations that separate the roles of user and Exchange management into different teams with different levels of administrative rights</li>
</ul>
<p>Personally I&#8217;m in favor of the change and have enjoyed having dedicated management tools for Exchange Server 2007 and 2010.</p>
<p>Since the main impact tends to be on new user creation workflow I demonstrate to customers that they can change to one of three approaches:</p>
<ul>
<li>Create the user account as part of the mailbox creation process in the Exchange Management Console, and then switch to AD Users &amp; Computers to finish the job (eg configure group membership, home drive and profile paths, etc)</li>
<li>Create the user account in AD Users &amp; Computers first, and then switch to the Exchange Management Console to mailbox-enable the account</li>
<li>Use scripting and automation to enable mailboxes for newly created user accounts (eg have a script that checks AD every hour for new user accounts within a certain OU structure and enable a mailbox for them on the appropriate mailbox server)</li>
</ul>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/exchange-2010-difference-between-remove-and-disable-mailbox" title="Exchange 2010 FAQ: What is the Difference Between Disabling and Removing a Mailbox">Exchange 2010 FAQ: What is the Difference Between Disabling and Removing a Mailbox</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><li><a href="http://exchangeserverpro.com/browsing-mailbox-databases-in-exchange-2007-and-2010" title="Browsing Mailbox Databases in Exchange 2007 and 2010">Browsing Mailbox Databases in Exchange 2007 and 2010</a></li><li><a href="http://exchangeserverpro.com/how-to-add-remote-ip-addresses-to-existing-receive-connectors" title="How to Add Remote IP Addresses to Existing Receive Connectors">How to Add Remote IP Addresses to Existing Receive Connectors</a></li><li><a href="http://exchangeserverpro.com/how-to-prevent-truncation-of-long-output-in-exchange-management-shell" title="How to Prevent Truncation of Long Output in Exchange Management Shell">How to Prevent Truncation of Long Output in Exchange Management Shell</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/exchange-2010-faq-manage-mailboxes-ad-users-computers">Exchange 2010 FAQ: Why Can&#8217;t I Manage Mailboxes in AD Users &#038; Computers Any More?</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-faq-manage-mailboxes-ad-users-computers/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 Certificate Revocation Checks and Proxy Settings</title>
		<link>http://exchangeserverpro.com/exchange-2010-certificate-revocation-checks-and-proxy-settings</link>
		<comments>http://exchangeserverpro.com/exchange-2010-certificate-revocation-checks-and-proxy-settings#comments</comments>
		<pubDate>Thu, 29 Jul 2010 09:00:27 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Certificates]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Console]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>
		<category><![CDATA[Management Tools]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=1795</guid>
		<description><![CDATA[The Microsoft Exchange Team blog posted about an issue people are experiencing in the field in which certificate revocation status check failures prevent you from assigning a certificate to any Exchange services. Here I demonstrate how to use proxy settings to work around the problem in some scenarios.]]></description>
			<content:encoded><![CDATA[<p>The Microsoft Exchange Team blog posted about an issue people are experiencing in the field in which certificate revocation status check failures prevent you from assigning a certificate to any Exchange services.</p>
<blockquote><p>If Exchange can’t access the CRL, the certificate status is returned as RevocationCheckFailure by the shell. In EMC this is displayed as The certificate status could not be determined because the revocation check failed.</p>
<p>When a certificate fails a revocation check due to any of the above reasons, the EMC prevents you from assigning the certificate to any Exchange service. Note, this does not impact certificates that have already been assigned to Exchange services. The services will continue to function.</p>
<p>- <a href="http://msexchangeteam.com/archive/2010/07/26/455639.aspx">Source</a></p></blockquote>
<p>Two of the causes of this are listed as:</p>
<blockquote><p># Network or proxy misconfiguration, or a firewall rule preventing Internet access</p>
<p># Intentional blocking of Internet connectivity from the server</p></blockquote>
<p>In a comment on the post I mention using proxy settings to work around the issue.  In other words, if you can use a proxy in Internet Explorer to browse the web when you&#8217;re logged onto the server, then you can use this workaround.  However, you need to proceed with caution or you may inadvertently break your management connection to the Exchange server.</p>
<p>Firstly, you can check the server&#8217;s proxy settings using the <strong>netsh</strong> command (proxycfg is no longer available in Windows Server 2008 R2).</p>
<pre>C:\&gt;netsh winhttp show proxy

Current WinHTTP proxy settings:

    Direct access (no proxy server).</pre>
<p>Note: if you can resolve the direct access issue at your proxy/firewall then that is going to be easier than using this procedure.  Otherwise, read on.</p>
<p>If you have the correct proxy settings configure in Internet Explorer then netsh lets you import that configuration to the server.</p>
<pre>C:\&gt;netsh winhttp import proxy ie

Current WinHTTP proxy settings:

    Proxy Server(s) :  10.10.10.10:80
    Bypass List     :  (none)</pre>
<p>Depending on your environment you may find that this breaks you connection to the Exchange server using either the Exchange Management Console or Exchange Management Shell.</p>
<p><img class="aligncenter size-full wp-image-1797" title="ems02" src="http://exchangeserverpro.com/wp-content/uploads/2010/07/ems02.png" alt="" width="590" height="296" /></p>
<pre>VERBOSE: Connecting to ex1.exchangeserverpro.local
[ex1.exchangeserverpro.local] Connecting to remote server failed with the following error message : The client cannot c
onnect to the destination specified in the request. Verify that the service on the destination is running and is accept
ing requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonl
y IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and co
nfigure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
   eption
    + FullyQualifiedErrorId : PSSessionOpenFailed</pre>
<p>The reason for this is that the Exchange Management Shell is trying to make a remote connection to the server, even when you are logged on to the server that you want to manage.  This is known as <strong>Remote Shell</strong> and you can <a href="http://technet.microsoft.com/en-us/library/dd297939.aspx">read more about it here</a>.</p>
<p>You can see here that when I launch the Exchange Management Shell on my lab server there are corresponding entries in the IIS log files for the connection that I just made to the <strong>/powershell</strong> virtual directory.</p>
<p><img class="aligncenter size-full wp-image-1801" title="iis02" src="http://exchangeserverpro.com/wp-content/uploads/2010/07/iis02.png" alt="" width="580" height="173" /></p>
<p>The reason that this breaks your management connectivity to the server is that the proxy you are using is not correctly configured to let you access local websites.  Fortunately you can resolve this by using proxy exceptions on your local Internet Explorer settings.</p>
<p style="text-align: center;"><img class="aligncenter" title="ieproxy01" src="../wp-content/uploads/2010/07/ieproxy01.png" alt="" width="364" height="120" /></p>
<p>If I configure Internet Explorer to automatically bypass for local sites, and then re-import the settings to the server with <strong>netsh</strong>, I see different output.</p>
<pre>C:\&gt;netsh winhttp import proxy ie

Current WinHTTP proxy settings:

    Proxy Server(s) :  10.10.10.10:80
    Bypass List     :  &lt; local &gt;</pre>
<p>In some cases this still might not work if Internet Explorer is not correctly detecting local sites and bypassing the configured proxy.  In that case you can manually specify the proxy exceptions in Internet Explorer.</p>
<p><img class="aligncenter size-full wp-image-1799" title="ieproxy02" src="http://exchangeserverpro.com/wp-content/uploads/2010/07/ieproxy02.png" alt="" width="382" height="131" /></p>
<p>Again when you re-import using netsh you see a different result.</p>
<pre>C:\&gt;netsh winhttp import proxy ie

Current WinHTTP proxy settings:

    Proxy Server(s) :  10.10.10.10:80
    Bypass List     :  *.exchangeserverpro.local;&lt; local &gt;</pre>
<p>Alternatively, you can set a proxy configuration for the server that is different to that of your own Internet Explorer settings.</p>
<pre>C:\&gt;netsh winhttp set proxy proxy-server="http://10.10.10.10:80" bypass-list="*.exchangeserverpro.local"

Current WinHTTP proxy settings:

    Proxy Server(s) :  10.10.10.10:80
    Bypass List     :  *.exchangeserverpro.local</pre>
<p>Again you need to make sure you set the correct exceptions so that management connectivity to the server isn&#8217;t broken in the process.</p>
<p>If you can get the proxy settings configured with the right proxy and exceptions you should be able to connect to the server with the console and shell, and also have the server successfully perform CRL checks for your SSL certificates.</p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/browsing-mailbox-databases-in-exchange-2007-and-2010" title="Browsing Mailbox Databases in Exchange 2007 and 2010">Browsing Mailbox Databases in Exchange 2007 and 2010</a></li><li><a href="http://exchangeserverpro.com/exchange-2010-wildcard-ssl-certificates" title="Exchange 2010 FAQ: Are Wildcard SSL Certificates Supported?">Exchange 2010 FAQ: Are Wildcard SSL Certificates Supported?</a></li><li><a href="http://exchangeserverpro.com/initialization-failed-operation-completed-change-occurred-remote-forest" title="Initialization Failed: The Operation Couldn&#8217;t Be Completed Because a Change Occurred in the Remote Forest">Initialization Failed: The Operation Couldn&#8217;t Be Completed Because a Change Occurred in the Remote Forest</a></li><li><a href="http://exchangeserverpro.com/modify-settings-multiple-exchange-2010-mailboxes" title="How to Modify Settings for Multiple Exchange 2010 Mailboxes">How to Modify Settings for Multiple Exchange 2010 Mailboxes</a></li><li><a href="http://exchangeserverpro.com/move-exchange-2010-database-folder" title="How to Move an Exchange 2010 Database to a Different Folder">How to Move an Exchange 2010 Database to a Different Folder</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/exchange-2010-certificate-revocation-checks-and-proxy-settings">Exchange 2010 Certificate Revocation Checks and Proxy Settings</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/exchange-2010-certificate-revocation-checks-and-proxy-settings/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Browsing Mailbox Databases in Exchange 2007 and 2010</title>
		<link>http://exchangeserverpro.com/browsing-mailbox-databases-in-exchange-2007-and-2010</link>
		<comments>http://exchangeserverpro.com/browsing-mailbox-databases-in-exchange-2007-and-2010#comments</comments>
		<pubDate>Wed, 20 Jan 2010 11:00:33 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=1169</guid>
		<description><![CDATA[How to use the Exchange Management Shell to gather information about the mailboxes in your organization.]]></description>
			<content:encoded><![CDATA[<p>A reader asks whether it is possible to browse through mailbox databases to view the details and statistics of the mailboxes they host on Exchange Server 2007 and 2010.  You might recall this was simple to achieve using the Exchange Server 2003 System Manager tools.</p>
<p>The nearest equivalent feature in the Exchange Management Console is using filters in the Recipient Configuration/Mailboxes section of the console.</p>
<p><a href="http://exchangeserverpro.com/wp-content/uploads/2010/01/emc-filters.png"><img class="alignnone size-full wp-image-1170" title="emc-filters" src="http://exchangeserverpro.com/wp-content/uploads/2010/01/emc-filters.png" alt="" width="550" height="130" /></a></p>
<p>However this feature does not expose mailbox statistics such as item count and total size.  For those types of details we can use the Exchange Management Shell instead.</p>
<p>For example, we can view the mailbox databases in the organization.</p>
<pre>[PS] C:\&gt;Get-MailboxDatabase

Name                           Server          Recovery        ReplicationType
----                           ------          --------        ---------------
Mailbox Database 1             EXCH2010-TEST   False           None
Mailbox Database 2             EXCH2010-TEST   False           None
Mailbox Database 3             EXCH2010-TEST   False           None
Mailbox Database 4             EXCH2010-TEST   False           None</pre>
<p>Or to look at the mailboxes within a given database we can pipe one shell command into another.</p>
<pre>[PS] C:\&gt;Get-MailboxDatabase "Mailbox Database 1" | Get-Mailbox -ResultSize 15

Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
Administrator             Administrator        exch2010-test    unlimited
Aisha.Bhari               Aisha.Bhari          exch2010-test    unlimited
Alan.Reid                 Alan.Reid            exch2010-test    unlimited
Alannah.Shaw              Alannah.Shaw         exch2010-test    unlimited
Aldith.Walker             Aldith.Walker        exch2010-test    unlimited
Aleisha.Harrison          Aleisha.Harrison     exch2010-test    unlimited
Alex.Heyne                Alex.Heyne           exch2010-test    unlimited
Alice.Mullins             Alice.Mullins        exch2010-test    unlimited
Alison.Pugh               Alison.Pugh          exch2010-test    unlimited
Alison.Lindsay            Alison.Lindsay       exch2010-test    unlimited
Almaz.Duggan              Almaz.Duggan         exch2010-test    unlimited
Amanda.Watters            Amanda.Watters       exch2010-test    unlimited
WARNING: There are more results available than are currently displayed. To view them, increase the value for the
ResultSize parameter.</pre>
<p>We can also look at statistics such as item count and total mailbox size of all mailboxes in a given database.</p>
<pre>[PS] C:\&gt;Get-MailboxDatabase "Mailbox Database 1" | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount

DisplayName                             TotalItemSize                                                         ItemCount
-----------                             -------------                                                         ---------
Administrator                           1.402 GB (1,505,666,188 bytes)                                            72179
EXCH2010-TEST 4FE1F90C-LGU000009        84.46 MB (88,567,215 bytes)                                                2977
EXCH2010-TEST 4FE1F90C-LGU000012        77.23 MB (80,986,155 bytes)                                                2568
EXCH2010-TEST 4FE1F90C-LGU000011        71.99 MB (75,483,699 bytes)                                                2489
EXCH2010-TEST 4FE1F90C-LGU000010        70.77 MB (74,204,704 bytes)                                                2523
EXCH2010-TEST 4FE1F90C-LGU000019        54.73 MB (57,390,302 bytes)                                                1917
EXCH2010-TEST 4FE1F90C-LGU000001        51.48 MB (53,980,482 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000020        51.15 MB (53,634,243 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000015        50.92 MB (53,394,939 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000008        50.69 MB (53,153,806 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000016        50.68 MB (53,138,572 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000014        50.62 MB (53,079,853 bytes)                                                1741
EXCH2010-TEST 4FE1F90C-LGU000017        50.58 MB (53,035,273 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000005        50.53 MB (52,980,645 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000004        50.35 MB (52,795,218 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000000        50.31 MB (52,755,053 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000002        50.06 MB (52,490,485 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000023        50.05 MB (52,486,337 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000022        50.03 MB (52,464,722 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000003        49.87 MB (52,292,132 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000021        49.75 MB (52,170,805 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000007        49.6 MB (52,006,854 bytes)                                                 1725
EXCH2010-TEST 4FE1F90C-LGU000024        49.44 MB (51,841,314 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000018        49.31 MB (51,709,283 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000006        48.64 MB (50,999,424 bytes)                                                1725
EXCH2010-TEST 4FE1F90C-LGU000013        29.46 MB (30,886,139 bytes)                                                 995</pre>
<p>Alternatively, we can take a closer look at the mailbox statistics for one specific mailbox.</p>
<pre>[PS] C:\&gt;Get-MailboxStatistics -identity Administrator | fl

RunspaceId              : c3678368-5798-4340-8a0a-ab3f721b1a97
AssociatedItemCount     : 131
DeletedItemCount        : 0
DisconnectDate          :
DisplayName             : Administrator
ItemCount               : 72179
LastLoggedOnUserAccount : DOMAIN\Administrator
LastLogoffTime          :
LastLogonTime           : 1/14/2010 2:19:58 PM
LegacyDN                : /O=TEST ORG/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=ADMINISTRATOR
MailboxGuid             : 9658e261-c681-40ac-ad6d-515791e28203
ObjectClass             : Mailbox
StorageLimitStatus      : BelowLimit
TotalDeletedItemSize    : 0 B (0 bytes)
TotalItemSize           : 1.402 GB (1,505,666,188 bytes)
Database                : Mailbox Database 1
ServerName              : EXCH2010-TEST
DatabaseName            : Mailbox Database 1
MoveHistory             :
IsQuarantined           : False
IsArchiveMailbox        : False
Identity                : 9658e261-c681-40ac-ad6d-515791e28203
MapiIdentity            : 9658e261-c681-40ac-ad6d-515791e28203
OriginatingServer       : exch2010-test.domain.local
IsValid                 : True</pre>
<p>One of the common tasks that the Exchange Server 2003 System Manager was used for was exporting lists of mailbox users into CSV format for reporting in Excel.  We can still achieve this in the Exchange Management Shell by exporting output to a CSV file.</p>
<pre>[PS] C:\&gt;Get-MailboxDatabase "Mailbox Database 1" | Get-MailboxStatistics | Sort totalitemsize -desc | Export-CSV C:\mailboxes.csv</pre>
<p>The CSV output is formated correctly for easy import into Microsoft Excel.</p>
<p><img class="alignnone size-full wp-image-1172" title="excel" src="http://exchangeserverpro.com/wp-content/uploads/2010/01/excel.jpg" alt="" width="550" height="246" /></p>
<p>As you can see although it may seem less intuitive than the previous method of browsing through a GUI the Exchange Management Shell actually makes it much simpler and easier to gather information about the mailboxes in your organization.</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/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><li><a href="http://exchangeserverpro.com/how-to-modify-recipient-scope-in-the-exchange-management-shell" title="How to Modify Recipient Scope in the Exchange Management Shell">How to Modify Recipient Scope in the Exchange Management Shell</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/browsing-mailbox-databases-in-exchange-2007-and-2010">Browsing Mailbox Databases in Exchange 2007 and 2010</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/browsing-mailbox-databases-in-exchange-2007-and-2010/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How to Add Remote IP Addresses to Existing Receive Connectors</title>
		<link>http://exchangeserverpro.com/how-to-add-remote-ip-addresses-to-existing-receive-connectors</link>
		<comments>http://exchangeserverpro.com/how-to-add-remote-ip-addresses-to-existing-receive-connectors#comments</comments>
		<pubDate>Thu, 17 Dec 2009 21:00:35 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Features]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>
		<category><![CDATA[Hub Transport]]></category>
		<category><![CDATA[Receive Connector]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=1085</guid>
		<description><![CDATA[This Exchange Managment Shell tip will show you how to add new IP addresses to a Receive Connector in Exchange 2007 or 2010 without overwriting the existing remote IP range.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1567" title="radar" src="http://exchangeserverpro.com/wp-content/uploads/2009/12/radar.jpg" alt="" width="250" height="187" />The Exchange Management Shell provides the <a href="http://technet.microsoft.com/en-us/library/bb125140(EXCHG.140).aspx">Set-ReceiveConnector</a> cmdlet for modifying settings on Hub Transport server Receive Connectors.  This can include the <strong>RemoteIPRanges</strong> setting, which is the multivalued list of IP addresses on the network that are allowed to use that Receive Connector to send mail.</p>
<p>Most Exchange environments will include at least one Receive Connector that is configured to allow certain hosts and applications to relay email.  Over time this may build up a lengthy RemoteIPRanges IP address list.  When it comes time to add additional IP addresses to the list it seems logical to use Set-ReceiveConnector, however this cmdlet will overwrite the existing setting with the new IP address specified.</p>
<p>For example, look at the current IP addresses:</p>
<pre>[PS] C:\&gt;Get-ReceiveConnector "Relay Connector" | fl remoteipranges

RemoteIPRanges : {10.0.0.21, 10.0.0.23, 10.0.0.22, 10.0.0.14, 10.0.0.20, 10.0.0.19, 10.0.0.18, 10.0.0.17, 10.0.0.16, 10
                 .0.0.15, 10.0.0.10, 10.0.0.9, 10.0.0.8, 10.0.0.7, 10.0.0.6, 10.0.0.5, 10.0.0.4, 10.0.0.13, 10.0.0.12,
                 10.0.0.11, 10.0.0.3, 10.0.0.2, 10.0.0.1}
</pre>
<p>Note: if the list of IP addresses is too long and is being truncated in the shell output see <a href="http://exchangeserverpro.com/how-to-prevent-truncation-of-long-output-in-exchange-management-shell">this tip for extending the enumeration limit</a>.</p>
<p>Now use Set-ReceiveConnector with a new IP of 10.0.0.99:</p>
<pre>[PS] C:\&gt;Set-ReceiveConnector "Relay Connector" -RemoteIPRanges 10.0.0.99</pre>
<p>And whoops, we&#8217;ve overwritten all of the previous IP addresses!</p>
<pre>[PS] C:\&gt;Get-ReceiveConnector "Relay Connector" | fl remoteipranges

RemoteIPRanges : {10.0.0.99}
</pre>
<p>If you were just adding one new IP address the Management Console would do the job, but that can be slow for remote servers and is not as efficient if the change is being applied to multiple servers or involves adding multiple IP addresses.</p>
<p>Fortunately with the Exchange Management Shell we can easily add IP addresses to existing Receive Connectors.</p>
<p>To add a single IP address to an existing Receive Connector:</p>
<pre>[PS] C:\&gt;$RecvConn = Get-ReceiveConnector "Relay Connector"
[PS] C:\&gt;$RecvConn.RemoteIPRanges += "10.0.0.99"
[PS] C:\&gt;Set-ReceiveConnector "Relay Connector" -RemoteIPRanges $RecvConn.RemoteIPRanges
</pre>
<p>Now we can see that 10.0.0.99 has been added to the Receive Connector.</p>
<pre>[PS] C:\&gt;Get-ReceiveConnector "Relay Connector" | fl remoteipranges

RemoteIPRanges : {10.0.0.99, 10.0.0.23, 10.0.0.22, 10.0.0.21, 10.0.0.1, 10.0.0.2, 10.0.0.3, 10.0.0.11, 10.0.0.12, 10.0.
                 0.13, 10.0.0.4, 10.0.0.5, 10.0.0.6, 10.0.0.7, 10.0.0.8, 10.0.0.9, 10.0.0.10, 10.0.0.15, 10.0.0.16, 10.
                 0.0.17, 10.0.0.18, 10.0.0.19, 10.0.0.20, 10.0.0.14}</pre>
<p>To add multiple IP addresses at once use this command sequence:</p>
<pre>[PS] C:\&gt;$RecvConn = Get-ReceiveConnector "Relay Connector"
[PS] C:\&gt;$RecvConn.RemoteIPRanges += "10.0.0.99", "10.0.0.100", "10.0.0.101"
[PS] C:\&gt;Set-ReceiveConnector "Relay Connector" -RemoteIPRanges $RecvConn.RemoteIPRanges
</pre>
<p>Sometimes the list of IPs being added is too long to type out.  To add multiple IP addresses from a text file called newips.txt use this command sequence instead:</p>
<pre>[PS] C:\&gt;$RecvConn = Get-ReceiveConnector "Relay Connector"
[PS] C:\&gt;Get-Content .\newips.txt | foreach {$RecvConn.RemoteIPRanges += "$_"}
[PS] C:\&gt;Set-ReceiveConnector "Relay Connector" -RemoteIPRanges $RecvConn.RemoteIPRanges
</pre>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><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/exchange-2010-publish-pop3-client-settings" title="How to Publish POP3 Client Settings to Users with Exchange 2010 SP1">How to Publish POP3 Client Settings to Users with Exchange 2010 SP1</a></li><li><a href="http://exchangeserverpro.com/how-to-configure-a-relay-connector-for-exchange-server-2010" title="How to Configure a Relay Connector for Exchange Server 2010">How to Configure a Relay Connector for Exchange Server 2010</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><li><a href="http://exchangeserverpro.com/browsing-mailbox-databases-in-exchange-2007-and-2010" title="Browsing Mailbox Databases in Exchange 2007 and 2010">Browsing Mailbox Databases in Exchange 2007 and 2010</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/how-to-add-remote-ip-addresses-to-existing-receive-connectors">How to Add Remote IP Addresses to Existing Receive Connectors</a> is © 2009 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-add-remote-ip-addresses-to-existing-receive-connectors/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>How to Prevent Truncation of Long Output in Exchange Management Shell</title>
		<link>http://exchangeserverpro.com/how-to-prevent-truncation-of-long-output-in-exchange-management-shell</link>
		<comments>http://exchangeserverpro.com/how-to-prevent-truncation-of-long-output-in-exchange-management-shell#comments</comments>
		<pubDate>Thu, 17 Dec 2009 04:35:37 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=1082</guid>
		<description><![CDATA[How to use Powershell environment variables to prevent long values in output from being truncated.]]></description>
			<content:encoded><![CDATA[<p>When working in the Exchange Management Shell you may encounter some query output that gets truncated with ellipsis.  An example of this is a long <strong>RemoteIPRanges</strong> list on a Receive Connector.  For example:</p>
<pre>[PS] C:\>Get-ReceiveConnector "Relay Connector" | fl remoteipranges

RemoteIPRanges : {10.0.0.14, 10.0.0.20, 10.0.0.19, 10.0.0.18, 10.0.0.17, 10.0.0
                 .16, 10.0.0.15, 10.0.0.10, 10.0.0.9, 10.0.0.8, 10.0.0.7, 10.0.
                 0.6, 10.0.0.5, 10.0.0.4, 10.0.0.13, 10.0.0.12...}</pre>
<p>The reason this happens is that the default Powershell environment for Exchange has an enumeration limit.  This is controlled by the <strong>$FormatEnumerationLimit</strong> variable in the <strong>..\bin\Exchange.ps1</strong> file.  This variable has a default value of 16.</p>
<pre>[PS] C:\>$FormatEnumerationLimit
16</pre>
<p>You can modify the variable to a larger value, or set it to <strong>-1</strong> for &#8220;unlimited&#8221;.</p>
<pre>[PS] C:\>$FormatEnumerationLimit =-1</pre>
<p>Now when we run the same command the output is no longer truncated.</p>
<pre>[PS] C:\>Get-ReceiveConnector "Relay Connector" | fl remoteipranges

RemoteIPRanges : {10.0.0.14, 10.0.0.20, 10.0.0.19, 10.0.0.18, 10.0.0.17, 10.0.0
                 .16, 10.0.0.15, 10.0.0.10, 10.0.0.9, 10.0.0.8, 10.0.0.7, 10.0.
                 0.6, 10.0.0.5, 10.0.0.4, 10.0.0.13, 10.0.0.12, 10.0.0.11, 10.0
                 .0.3, 10.0.0.2, 10.0.0.1}</pre>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><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><li><a href="http://exchangeserverpro.com/browsing-mailbox-databases-in-exchange-2007-and-2010" title="Browsing Mailbox Databases in Exchange 2007 and 2010">Browsing Mailbox Databases in Exchange 2007 and 2010</a></li><li><a href="http://exchangeserverpro.com/how-to-add-remote-ip-addresses-to-existing-receive-connectors" title="How to Add Remote IP Addresses to Existing Receive Connectors">How to Add Remote IP Addresses to Existing Receive Connectors</a></li><li><a href="http://exchangeserverpro.com/how-to-enter-the-exchange-server-2010-product-key-for-multiple-servers" title="How to Enter the Exchange Server 2010 Product Key for Multiple Servers">How to Enter the Exchange Server 2010 Product Key for Multiple Servers</a></li><li><a href="http://exchangeserverpro.com/how-to-use-a-specific-domain-controller-in-exchange-2010-management-shell" title="How to Use a Specific Domain Controller in Exchange 2010 Management Shell">How to Use a Specific Domain Controller in Exchange 2010 Management Shell</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/how-to-prevent-truncation-of-long-output-in-exchange-management-shell">How to Prevent Truncation of Long Output in Exchange Management Shell</a> is © 2009 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-prevent-truncation-of-long-output-in-exchange-management-shell/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Enter the Exchange Server 2010 Product Key for Multiple Servers</title>
		<link>http://exchangeserverpro.com/how-to-enter-the-exchange-server-2010-product-key-for-multiple-servers</link>
		<comments>http://exchangeserverpro.com/how-to-enter-the-exchange-server-2010-product-key-for-multiple-servers#comments</comments>
		<pubDate>Wed, 02 Dec 2009 10:30:38 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=1050</guid>
		<description><![CDATA[How to use the Exchange Management Shell to enter the product key for new Exchange Servers.]]></description>
			<content:encoded><![CDATA[<p>When Exchange Server 2010 is first installed it runs as a 120 day time-limited trial.  Within that first 120 days, or preferably before you put the server into production, you must enter a product key to remove the server from trial status.</p>
<p>For multiple servers in the organization this can be achieved using the Exchange Management Shell.  First identify which servers are currently in trial mode.</p>
<pre>[PS] C:\&gt;Get-ExchangeServer | where {$_.IsExchange2007TrialEdition -eq "True"}

Name                Site                 ServerRole  Edition     AdminDisplayVersion
----                ----                 ----------  -------     -------------------
EX1                 exchangeserverpro... Mailbox,... Standard... Version 14.0 (Bu...</pre>
<p>To enter the product key use the Set-ExchangeServer cmdlet with the -ProductKey switch.</p>
<pre>[PS] C:\&gt;$trialservers = Get-ExchangeServer | where {$_.IsExchange2007TrialEdition -eq "True"}

[PS] C:\&gt;$trialservers | Set-ExchangeServer -ProductKey 12345-12345-12345-12345-12345
WARNING: The product key has been validated and the product ID has been successfully created. This change won't take effect until the Information Store service has been restarted.</pre>
<p>Restart the Information Store on the servers and they are no longer in trial mode.</p>
<pre>[PS] C:\&gt;Get-ExchangeServer | fl name,*trial*

Name                              : EX1
IsExchange2007TrialEdition        : False
IsExpiredExchange2007TrialEdition : False
RemainingTrialPeriod              : 00:00:00</pre>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/how-to-use-a-specific-domain-controller-in-exchange-2010-management-shell" title="How to Use a Specific Domain Controller in Exchange 2010 Management Shell">How to Use a Specific Domain Controller in Exchange 2010 Management Shell</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><li><a href="http://exchangeserverpro.com/powershell-tip-find-commands" title="PowerShell Tip: Search for Commands by Keyword">PowerShell Tip: Search for Commands by Keyword</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></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/how-to-enter-the-exchange-server-2010-product-key-for-multiple-servers">How to Enter the Exchange Server 2010 Product Key for Multiple Servers</a> is © 2009 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-enter-the-exchange-server-2010-product-key-for-multiple-servers/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Use a Specific Domain Controller in Exchange 2010 Management Shell</title>
		<link>http://exchangeserverpro.com/how-to-use-a-specific-domain-controller-in-exchange-2010-management-shell</link>
		<comments>http://exchangeserverpro.com/how-to-use-a-specific-domain-controller-in-exchange-2010-management-shell#comments</comments>
		<pubDate>Mon, 30 Nov 2009 10:20:17 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=1039</guid>
		<description><![CDATA[How to configure the domain controller for shell cmdlets to use during Exchange Management Shell sessions on Exchange Server 2010.]]></description>
			<content:encoded><![CDATA[<p>In a recent post I looked at <a href="http://exchangeserverpro.com/how-to-use-a-specific-domain-controller-in-the-exchange-2007-management-shell">how to specify a domain controller for use in the Exchange Management Shell</a> for Exchange Server 2007.  In this post I will demonstrate the same technique for Exchange Server 2010.</p>
<p>Any Exchange Management Shell cmdlet will permit you to specify a domain controller using the <strong>-DomainController</strong> switch.  But you can also set a preferred domain controller for your entire session.</p>
<p>Note the cmdlet to use here &#8211; <strong>Set-AdServerSettings</strong>.  This cmdlet configures the session settings such as the preferred Domain Controller and other settings such as the recipient scope.  Check out the <a href="http://technet.microsoft.com/en-us/library/dd298063%28EXCHG.140%29.aspx">full list of Set-AdServerSettings parameters here</a>.</p>
<p>First take a look at the current session settings.  In this example dc1.exchangeserverpro.local has been automatically selected.</p>
<pre>[PS] C:\&gt;Get-ADServerSettings | fl

RunspaceId                                 : 15e4d968-032b-4cd8-bc66-bf0b665c4161
DefaultGlobalCatalog                       : DC1.exchangeserverpro.local
PreferredDomainControllerForDomain         : {}
DefaultConfigurationDomainController       : DC1.exchangeserverpro.local
DefaultPreferredDomainControllers          : {DC1.exchangeserverpro.local}
UserPreferredGlobalCatalog                 :
UserPreferredConfigurationDomainController :
UserPreferredDomainControllers             : {}
RecipientViewRoot                          : exchangeserverpro.local
ViewEntireForest                           : False
Identity                                   :
IsValid                                    : True</pre>
<p>Using Set-ADServerSettings we can specify the preferred server for the current session with the -PreferredServer switch.</p>
<pre>[PS] C:\&gt;Set-ADServerSettings -PreferredServer dc2.exchangeserverpro.local</pre>
<p>Now Get-ADServerSettings shows this change has occurred.</p>
<pre>[PS] C:\&gt;Get-ADServerSettings | fl

RunspaceId                                 : b15cbfd9-5144-442e-bc74-c00a3216b864
DefaultGlobalCatalog                       : dc2.exchangeserverpro.local
PreferredDomainControllerForDomain         : {}
DefaultConfigurationDomainController       : dc2.exchangeserverpro.local
DefaultPreferredDomainControllers          : {DC1.exchangeserverpro.local}
UserPreferredGlobalCatalog                 : dc2.exchangeserverpro.local
UserPreferredConfigurationDomainController : dc2.exchangeserverpro.local
UserPreferredDomainControllers             : {dc2.exchangeserverpro.local}
RecipientViewRoot                          : exchangeserverpro.local
ViewEntireForest                           : False
Identity                                   :
IsValid                                    : True</pre>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/how-to-enter-the-exchange-server-2010-product-key-for-multiple-servers" title="How to Enter the Exchange Server 2010 Product Key for Multiple Servers">How to Enter the Exchange Server 2010 Product Key for Multiple 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><li><a href="http://exchangeserverpro.com/powershell-tip-find-commands" title="PowerShell Tip: Search for Commands by Keyword">PowerShell Tip: Search for Commands by Keyword</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></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/how-to-use-a-specific-domain-controller-in-exchange-2010-management-shell">How to Use a Specific Domain Controller in Exchange 2010 Management Shell</a> is © 2009 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-use-a-specific-domain-controller-in-exchange-2010-management-shell/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to Modify Recipient Scope in the Exchange Management Shell</title>
		<link>http://exchangeserverpro.com/how-to-modify-recipient-scope-in-the-exchange-management-shell</link>
		<comments>http://exchangeserverpro.com/how-to-modify-recipient-scope-in-the-exchange-management-shell#comments</comments>
		<pubDate>Wed, 07 Oct 2009 12:00:25 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Exchange Management Shell]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=1002</guid>
		<description><![CDATA[In multi-Domain Forests you may encounter a situation where the Exchange Management Shell is not displaying the results you are expecting for some Get- queries.  The reason for this is what is known as the Recipient Scope.]]></description>
			<content:encoded><![CDATA[<p>In multi-Domain Forests you may encounter a situation where the Exchange Management Shell is not displaying the results you are expecting for some Get- queries.  The reason for this is what is known as the Recipient Scope.</p>
<pre>[PS] C:\Admin&gt;Get-Mailbox

Name           Alias          ServerName  ProhibitSendQuota
----           -----          ----------  ---------------
Administrator  Administrator  exchserv    unlimited</pre>
<p>The Recipient Scope is the portion of Active Directory that the Exchange Management Shell or Console will use when managing recipients.  For example, you may set the scope to a single Domain, OU, or to the entire Forest.</p>
<p>You can view the current Recipient Scope in the Exchange Management Shell.</p>
<pre>[PS] C:\Admin&gt;$AdminSessionADSettings

ViewEntireForest              : False
DefaultScope                  : resource.contoso.com
PreferredGlobalCatalog        :
ConfigurationDomainController : dc1.resource.contoso.com
PreferredDomainControllers    : {}</pre>
<p>You can also modify the scope.  For example, to modify the scope to the entire Forest you would issue this shell command.</p>
<pre>[PS] C:\Admin>$AdminSessionADSettings.ViewEntireForest = $true
[PS] C:\Admin>$AdminSessionADSettings

ViewEntireForest              : True
DefaultScope                  :
PreferredGlobalCatalog        :
ConfigurationDomainController : dc1.resource.contoso.com
PreferredDomainControllers    : {}</pre>
<p>Notice now that the entire Forest is enabled and the scope is not limited to a single domain.  Get- cmdlets for recipient management will now return all recipients in the multi-Domain Forest.</p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/browsing-mailbox-databases-in-exchange-2007-and-2010" title="Browsing Mailbox Databases in Exchange 2007 and 2010">Browsing Mailbox Databases in Exchange 2007 and 2010</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><li><a href="http://exchangeserverpro.com/clone-mailbox-database-configuration" title="Exchange 2007/2010: How to Clone a Mailbox Database Configuration">Exchange 2007/2010: How to Clone a Mailbox Database Configuration</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/how-to-modify-recipient-scope-in-the-exchange-management-shell">How to Modify Recipient Scope in the Exchange Management Shell</a> is © 2009 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-modify-recipient-scope-in-the-exchange-management-shell/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Configuring the Exchange Server 2007 Product Key</title>
		<link>http://exchangeserverpro.com/configuring-the-exchange-server-2007-product-key</link>
		<comments>http://exchangeserverpro.com/configuring-the-exchange-server-2007-product-key#comments</comments>
		<pubDate>Thu, 20 Aug 2009 20:00:33 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[EMS]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange Server 2007 Transition Guide]]></category>

		<guid isPermaLink="false">http://www.exchangeserverpro.com/?p=758</guid>
		<description><![CDATA[Your Exchange server will run for 120 days without a product key but you should enter one as soon as possible by following these steps.]]></description>
			<content:encoded><![CDATA[<p>Your Exchange server will run for 120 days without a product key but you should enter one as soon as possible and certainly before placing the server into production.</p>
<p class="note">You can also <a href="http://www.exchangeserverpro.com/ems-exchange-server-2007-product-keys/">enter product keys using the Exchange Management Shell</a>.</p>
<p>Launch the Exchange Management Console from the Start Menu of your server.  A warning will appear listing each Exchange server that is currently unlicensed.  Click OK to clear the warning.</p>
<p><img class="alignnone size-full wp-image-759" title="productkey1" src="http://www.exchangeserverpro.com/wp-content/uploads/2009/08/productkey1.png" alt="productkey1" width="479" height="281" /></p>
<p>In the left pane of the Exchange Management console navigate to Server Configuration/Mailbox.  Right-click the server in the middle pane and choose Enter Product Key.</p>
<p><img class="alignnone size-full wp-image-760" title="productkey2" src="http://www.exchangeserverpro.com/wp-content/uploads/2009/08/productkey2.png" alt="productkey2" width="519" height="237" /></p>
<p>Enter your Product Key in the field and then click the Enter button.</p>
<p><img class="alignnone size-full wp-image-761" title="productkey3" src="http://www.exchangeserverpro.com/wp-content/uploads/2009/08/productkey3.png" alt="productkey3" width="404" height="209" /></p>
<p>You will see a message when the Product Key has been applied warning you that the change does not take effect until the Information Store service is restarted.</p>
<p><img class="alignnone size-full wp-image-762" title="productkey4" src="http://www.exchangeserverpro.com/wp-content/uploads/2009/08/productkey4.png" alt="productkey4" width="441" height="183" /></p>
<p>You can ignore this for now because we will be restarting that service at least once before the server goes into production.</p>
<p>Click Finish to complete the task.</p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/browsing-mailbox-databases-in-exchange-2007-and-2010" title="Browsing Mailbox Databases in Exchange 2007 and 2010">Browsing Mailbox Databases in Exchange 2007 and 2010</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/exchange-2010-difference-between-remove-and-disable-mailbox" title="Exchange 2010 FAQ: What is the Difference Between Disabling and Removing a Mailbox">Exchange 2010 FAQ: What is the Difference Between Disabling and Removing a Mailbox</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></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/configuring-the-exchange-server-2007-product-key">Configuring the Exchange Server 2007 Product Key</a> is © 2009 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/configuring-the-exchange-server-2007-product-key/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

