Tuesday, December 11, 2012

Exchange Server 2010 Installation Step by Step

Exchange Server 2010 Installation Step by Step



System Requirements

First, you need to make sure that your Active Directory (AD) environment and your Exchange server meet the minimum requirements:
  • AD forest functional level is Windows Server 2003 (or higher)
  • AD Schema Master is running Windows Server 2003 w/SP1 or later
  • Full installation of Windows Server 2008 w/SP2 or later OR Windows Server 2008 R2 for the Exchange server itself
  • Exchange server is joined to the domain (except for the Edge Transport server role)

Prerequisites

In this example we are going to install Exchange 2010 on a Windows Server 2008 R2 operating system. Before installing Exchange we need to install some Windows components. It's important that you don't miss anything here because the Exchange 2010 installer does not provide very good feedback if Server 2008 R2 is missing required components.
  1. Install the 2007 Office System Converter: Microsoft Filter Pack
  2. Add the appropriate Windows components/features
    1. Open PowerShell via the icon on the task bar or Start >> All Programs >> Accessories >> Windows PowerShell >> Windows PowerShell. Be sure that PowerShell opened with an account that has rights to install Windows components/features.
    2. Run the following command: Import-Module ServerManager
    3. For a typical install with the Client Access, Hub Transport, and Mailbox roles run the following command: Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart. For a full matrix of the required Windows components with regards to the Exchange server roles see: http://technet.microsoft.com/en-us/library/bb691354.aspx#WS08R2
  3. If your Exchange server will have the Client Access Server role set the Net.Tcp Port Sharing Service to start automatically
    1. Open PowerShell via the icon on the task bar or Start >> All Programs >> Accessories >> Windows PowerShell >> Windows PowerShell. Be sure that PowerShell opened with an account that has rights to modify service startup settings.
    2. Run the following command: Set-Service NetTcpPortSharing -StartupType Automatic  
    Exchange 2010 Installation
    1. Now we're ready to run the Exchange 2010 installer. We'll go through a typical installation that includes the Client Access, Hub Transport, and Mailbox roles. This is what you will want to install if you are only going to be running one Exchange server. If you scale out your Exchange architecture with multiple servers then you will want to familiarize yourself with the Exchange server roles for a proper deployment.
    2. Logon to the desktop of your soon to be Exchange server with a Domain Admin account.
    3. Run setup from the Exchange 2010 media.
    4. Click on "Step 3: Choose Exchange language option" and choose one of the options (Install only languages from the DVD will be fine in most cases).
    5. Click on "Step 4: Install Microsoft Exchange."
    6. Click Next at the Introduction page.
    7. Accept the license terms and click Next.
    8. Make a selection on the Error Reporting page and click Next.
    9. Stick with the default "Typical Exchange Server Installation" and click Next.
    10. Choose a name for your Exchange Organization and click Next.
    11. Make a selection on the Client Settings page and click Next.
    12. If you want your Exchange server to be available externally then choose a domain name such as mail.myorganization.com, click Next.
    13. Make a selection on the Customer Experience Improvement Program page and click Next.
    14. If all the prerequisites are there then you can click Install.
    15. Grab a cup of coffee or take a walk while the installation process does its thing.
    16. When the installation has finished go back to the Exchange installation page click on "Step 5: Get critical updates for Microsoft Exchange."
    17. Install Microsoft Update (if necessary) so that Windows update will check for non-OS updates, and verify that there are no Exchange updates.

Friday, March 9, 2012

Get All Users Mailbox Size report in Exchange 2007

to Get all user mailbox size report in Exchange 2007 run following command:

Get-Mailbox | Get-MailboxStatistics | select-object DisplayName,{$_.TotalItemSize.Value.ToMB()} | Export-Csv C:\report.Csv

report will be saved in "C" drive as repor.

Exchange 2007 SSL Certificate

You can get SSL certificate for exchange server from website
www.CACert.org
There you can request certificate. They give you certificate in format like:-
----BEGIN CERTIFICATE-----
U1GyMdIR/+XOd3deT5eGCo3J8tqg/+ExWaEqQ+Bjls7/+
jnxsDq9rg/6/gzIDOKZLBckoShvn2SaGjJILmo54kP6JU4
YV5QQVDsh/sdfsdfvxtrsdgfgddfgdfg7dfgfdg45dfgdf5g4df/o
werert312rtr5e4tret4er5t121g5d45g4df5g
2lFO+AfsdftertbfhfgyfgdgdgdgfgRsFmuZhzdfgdfgdfgqxTd/M=
-----END CERTIFICATE-----

Save in text file as cert1.cer.
Import to CAS Server in personal Certificate store.
Now Run command:-
Dir cert:\LocalMachine\My fl

you will see the currently installed certificate on CAS server.

Copy the Thumprint for the newly installed certificate.

Now time to enable certificate for the services by running command

Enable-ExchangeCertificate -thumbprint 67DA55B9F5AB2A735E7CBD11A895F7757ACC07C4 -services "IIS,SMTP"

Replace the thumprint with new certificate thumbprint and enter.

You got error:-

Enable-ExchangeCertificate : The certificate with thumbprint was found but is not valid for use with Exchange Server (reason: SigningNotSupported).At line:1 char:27+ enable-exchangecertificate <<<< -thumbprint -services "SMTP"

Solution:-

Open Microsoft Management Console and add the Certificates snap-in by clicking Start, Run, mmc.exe

Double-click the imported certificate that is in the Personal folder.

Click the Details tab.

Click Serial Number in the Field column, highlight the serial number, and then write it down.

Open a command prompt.

Type: certutil -repairstore my "SerialNumber" (SerialNumber is the serial number that you wrote down in step 4.)

In the Certificates snap-in, right-click Certificates, and then click Refresh. The certificate now has an associated private key.

To verify that the issue is resolved, run the Get-ExchangeCertificate cmdlet which should now show the correct certificate.

Now export certificate form CAs and install it to ISA Server 2006 for enable publishing.
Note:-

Also install Root Certificate for CACert.org to Both ISA server and CAS Server.

Count