Archive for March 2012

How to run BETest on Exchange Server 2007

There are many articles available on running BETest, I thought of writing my own article with experience I had running BETest.

The version of BETest that is used here is located in the VSS SDK, which can be
Downloaded from the following location
http://www.microsoft.com/downloads/details.aspx?FamilyID=0B4F56E4-0CCC-4626-826A-ED2C4C95C871&displaylang=en
The current version of the VSS SDK is 7.2

After installing the VSS SDK, you will then find BETest in the following directory.
%Program Files%\Microsoft\VSSSDK72\TestApps\betest\obj\x64 (or i386). There are separate versions of Betest for x64, and i386.
Make sure to run the version that corresponds to the OS build that you have (x64 or x86).

The next step to using Betest is to build your input file. Most documentation refers to it as components.txt, but it can be called whatever you want. The contents are what is important. The information required in the components.txt file is as follows:

"<writer-id>": "<component-logical-path>";

The first step in building your components.txt file is to determine the writer ID. Fortunately, the Exchange Writer ID does not change.
That ID will be as follows.

"{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}":

This information can be confirmed by running the following command from a command prompt.

vssadmin list writers
Writer name: 'Microsoft Exchange Writer'
Writer Id: {76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}
Writer Instance Id: {9ba5818d-b602-4486-b014-9c667a9a8916}
State: [1] Stable
Last error: No error

You now have the Exchange Writer ID, which makes up the first half of the input file. The second part of the file is the logical path. This is the path to the GUID of the Storage Group that you want to back up. This requires you to find out what the GUID of the storage groups are. Fortunately, with Exchange 2007, this is easily done using PowerShell. Simply run the below command.

Get-StorageGroup -server <servername> | fl name, guid

Name: First Storage Group
Guid: aaecdeb8-7891-4fca-ade8-a1a3c0bf97f8

Name: Second Storage Group
Guid: 32fca98d-e58c-42dd-b2d2-a0982a3ff480

Name: Third Storage Group
Guid: e28a4919-79fa-4741-b76d-b780d5578460

Standalone
"{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}": "Microsoft Exchange Server\Microsoft Information Store\<SERVERNAME>\aaecdeb8-7891-4fca-ade8-a1a3c0bf97f8";

CCR system input file
"{76fe1ac4-15f7-4bcd-987e-8e1acb462fb7}": "Microsoft Exchange Server\Microsoft Information Store\<SERVERNAME>\<GUID of SG>"

You are now ready to run the BEtest command. Note that the switches included with the command are case sensitive

BETEST.exe /B /E /T 1 /S output.xml /C components.txt /D c:\backup

The backup should now start, and you will see output on the screen similar to the following.
Asked to do backup only
Asked to exclude BETEST test writer
Backup-type to use is 1
File name to save/load Backup Document is "output.xml"
File name for Components Selection is "sg1active.txt"
Directory to save/restore backup files is "c:\backup\"

Conclusion:
BETest is a utility to test Exchange Writer. If BETest is successful, and leaves the Exchange Writer in a STABLE state (observed from the output), then the you needs to be referred to your backup vendor for further troubleshooting of their application. Prior to testing with BETest, ensure that you have the most recent Windows VSS hotfixes/updates applied.

Note: This article applies to Exchange Server 2007 running on Windows Server 2003 only. Refer to my previous blog for running BETest on Windows Server 2008.

Cheers,

554 Policy violation. Email Session ID: {4F4807CA-17-2FEA8C0-1FFFF}

I was working with my friend on exchange server 2010 mail flow issue. He is not able to send email outside on the internet, but he could receive email from outside. Everything was working fine but all of a sudden it stopped working.

Exchange server is running in mixed environment with exchange server 2007 and 2010


I tried to send email using telnet but it failed. Checked the event viewer for any information but surprisingly there were not event generated related to the issue. It is happening to all the users on both exchange 2007 and exchange 2010 server.

Checked the Queue Viewer on 2010 server and got the below information which was very helpful in terms of troubleshooting.
Queue_HUBTransport-LAN - CopyWe had a Check Point firewall between Exchange 2010 Hub Transport and EDGE server.
After looking into Check Point firewall, I found that SMTP inspection is ON on it.
But it worked fine in the past without any issue. All though I didn’t checked the SMTP inspection on the Check Point server in past, hence I do not know what was the status of it, was it ON or OFF.
Turned OFF the SMTP Inspection on Check Point firewall and checked the mail flow and it started working fine.
The only thing I can think of for SMTP Inspection got turned ON would be any update for Check Point or my Security guy must have done it without knowing the impact of it on exchange server Winking smile
Reference article to turn Off SMTP Inspection:
http://technet.microsoft.com/en-us/library/dd277550(v=exchg.80).aspx
Cheers,

Manually uninstalling Exchange server 2010 from a computer

You must have been ran into the situation where you are uninstalling Exchange server 2010 from the server using control panel or Exchange Management Shell (EMS) but you are getting errors and even after trying hours and hours to fix it but you are not able to uninstall the server. You can remove the server manually.

Consider before removing the Exchange 2010 manually:
A: Is the server the OAB Generation Server?
B: Is it the host for any connectors or subscriptions to Edge servers?
C: Are there any public folders that need to be re-homed to other servers?
D: System state backup did not completed successfully today?
If any of these are YES than you should take care of it before you start uninstalling the server.

By following the below steps you can remove the exchange server manually from the computer/server.
1: Take the flat file copy of database.EDB file in case you want to mount the database on some other server.
2: Stop and disable all the below exchange services. Click on Start...>Click on Run...>Type Services.msc

Exchange Services
Note: In your case you might see lots of other services depending on the number of exchange server roles you have installed.
3: Remove all exchange registry from the server from the below location
Note: Take registry backup before deleting it. It's always a best practice.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSExchange*

Exchange Server Registry keys
Note: In your case you might see more or less registry keys depends on number of Exchange Server Roles you have installed on the server.
HKEY_LOCAL_MACHINE\Software\Microsoft\ExchangeServer

4: Open windows explorer and go to the location C:\Program Files\Microsoft\ExchangeServer\V14\bin, delete the bin folder. Bin folder contains all the binary files of exchange server.
If you are getting Access error message or File is locked/used by other program, than you rename ExchangeServerfolder to ExchangeServer_OLD. After renaming the folder delete the ExchangeServer_OLD folder.
5: Go to Adsiedit.msc...>Configuration...>Services...>Microsoft Exchange...> Administrative Groups...>ExchangeAdministrativeGroup...>Servers...> here you will find all the exchange 2010 server you have in your environment. Delete the server you are uninstalling.

Note: Follow the above step as mentioned, if you delete something else other than mentioned in the article you will/might break the exchange environment.
6: Restart the exchange server and go to Control Panel...>Programs and Features...>Make sure you don't have Exchange Server Object listed here, but sometime you will see the Exchange Server 2010 listed but the size of the server will be in MB's. I call is shadow of Exchange Server Winking smile
Remove the server from Programs and Features, it will take less than minute to remove the exchange object from Programs and Features.You have successfully uninstalled/removed exchange server 2010 manually Smile
Cheers,

EXCHANGE RANGER