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