Diagnostic Logging to find Deletion of Public folder in Exchange 2007 and Exchange 2010

 

Many users will have access to the Public Folder and Many are the owner of Public folder and have full access to it. Chances are that use accidently deletes the folder or some times intentional. To identify this we have to Enable logging on Public folder.  Below has the steps to enabled the same

1. Open Exchagne Management Console
2. Expand and select Server Configuration
3. On the right you will find all the servers
4. Select the Exchange Server where public Folder Database is residing
5. Right click on the Server and select Manage Diagnostic Logging
5. Expand to reach MSexchangeIS-> 9001 public and click on General and  
6. Select Medium and configure to enable this settings

7. When a Public Folder is deleted Event ID 9682 is logged in the Application log. You can search for the evet Id in the application logs.

Setting Exchange Mailbox Server to Use specific Hub Transport for mail submission – SubmissionServerOverrideList

Exchange Hub transport Server will be automatically load balanced with in the Active Directory Site. Hub Transport Servers are load balanced in Round robin fashion with in the Site. If you want to Force Exchange Mailbox server to use specific Hub Server you need to make use of SUBMISSIONSERVEROVERRIDELIST.

Set-MailboxServer -Id:MailboxServer1 -SubmissionServerOverrideList: htserver1,htserver2

Above commands will set MailboxServer to  use htserver1 and htserver2 for mailsubmission. It is normally used for troubleshooting.

Implementing SCOM Monitoring on DMZ servers using Scom Gateway Server in DMZ

Every Orginization has Production Network and DMZ Network.  DMZ Network will have lots of servers. This servers also needs to be monitored and it can be monitored with the help of SCOM server in production. We need make use of certificate for this purpose

  1. Export Root Certificate domain.com from CA and install on all the SCOM RMS and MS into Computer Account
  2. Create Custom Certificate from the Certificate Authority OpsManagerCert by Duplicating IPSec(Offline Request) Certificate with all the Required parameter and with Setting key as exportable
  3. From RMS open CA Web enrollment Request Page and Request the Certificate           with the Custom Created Template OpsManagerCert and RMSservername.domain.com and install the same
  4. Export the newly Installed Certicate from “Current User –Personal Certificate” and import into to Certicate – Local computer – Personal store
  5.  Access All Management Servers in the production domain and  and follow step 3 and 4 to install OpsManagerCert
  6. Loging to GateWay server in DMZ and request the certificate for OpsManagercert using webenrollment gatewayserver.efsecure.com
  7. Export the newly Installed Certicate from “Current User –Personal Certificate”  in PFX form with password and import into to Certicate – Local computer – Personal store
  8. Import PFX file using MoMCertimport.exe  C:\cert.pfx  Cert which is exported on all the DMZ servers
  9. Loging to Servers in DMZ and and open Certificate webenrollment page in domain and request OpsMansgerCert Custom certificate with DMZ server name
  10. Follow Step 7 and export and import to the personal Store
  11. Install Root Certificate on all the Serves in DMZ
  12. Running Gateway approval tool on the RMS Server
  13. Running MomGateway.msi on the Gateway server
  14. Install the Agent on Servers
  15. Loging to the Scom Server and Approve

Note : TCP ports 5723 and 5724 Must be open between DMZ and Interal Network

Below Article helps to Request certificate for all the DMZ servers in the given input text file

http://blogs.technet.com/momteam/archive/2008/08/22/obtaining-certificates-for-non-domain-joined-agents-made-easy.aspx

Exchange 2007 SP2 Prepare Schema Error because an override is set in the registry.

[ERROR] Setup cannot use domain controller ‘because an override is set in the registry. Run Setup again, and specify ‘/DomainController:.

When you are running /prepareschema or /PrepareAd from the Exchange 2007 SP1 server some times you may land in Above error message.  This error can occur when you are set the restriction on Exchange 2007 to use specific DC by using Set-ExchangeServer command. Below link has some example on how to point Exchange 2007 to user specific GCs and DCs  and also to restrict pointing to required GCs and DCs

/2009/03/20/statically-pointing-exchange-2007-servers-to-dedicated-domain-controllers-and-global-catalogs-and-excluding-other-domain-controllers/

Solution :

1. You can add Schema Master domain controller to the list of Staticdomaincontrollers and StaticGlobalcatalogserver and run the setup

2. Run PrepareSchema and PrepareAd on the Server where you have not installed any Exchange server using below command

Setup.com /PrepareSchema /DomainController:SchemaMasterServer

Setup.com /PrepareAD /DomainController:SchemaMasterServer

Powershell to Pull out Exchange 2007 Mount Free Disk Details

In Exchange 2007 We have may have lots of DBs which we land up in creating multiple mount points instead of Drives for each Logs and Database. Below script helps to pull out the size and free size of all the mount point of the database . Change the servername and for loop with the number of Database you have.

$K = gwmi win32_volume -computername “Servername” |where-object {$_.name -like “C:\Mountpoints\DB*”}|select name,capacity,freespace

for ($i=0; $i -le 22; $i++)
{
$name = $K[$i].name
$Capacity = [math]::truncate($K[$i].capacity/1gb)
$freespace = [math]::truncate($K[$i].freespace/1gb)
$L = $name + ” ” + $Capacity  + ” ” + $freespace
write-output $L
}

Exchange 2007 IMAP and POP Protocol Logging

IMAP and POP Protocol logging is made easy in Exchange 2007. Below are the step by step to enabled the same.

1. Login to Exchange 2007 client access server
2. Browse to C:\Program Files\Microsoft\Exchange Server\ClientAccess\PopImap
3. Open Microsoft.Exchange.Imap4.exe.config with notepad
4. Find the <addkey=”ProtocolLog” value=”false” /> in the file
5. Change False to True
6. Below link <add key=”LogPath” value=”C:\Program Files\Microsoft\Exchange Server\Logging\Imap4″ /> is the path of the Imap4 log file location
7. Restart MSExchangeIMAP Service