<ObjectCollector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<!-- ** Type file for the Microsoft Exchange Server Best Practices Analyzer Tool (ExBPA) - Errors/Additions/Comments, please e-mail EXBPAFB@MICROSOFT.COM ** -->

	<!-- *********************************************************************  -->
	<!--  Copyright (C) 2004-2007 Microsoft Corporation. All Rights Reserved.   -->
	<!-- *********************************************************************  -->

	<_locDefinition>
		<_locDefault _loc="locNone"/>
		<_locTag _loc="locNone" _locAttrData="ChangeDescription">Configuration</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text,Title,Class,LogText">Object</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text,Title,NotText,NotTitle">Rule</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text,Title">Template</_locTag>
		<_locTag _loc="locNone" _locAttrData="Name">Baseline</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text,Title">RestrictionType</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text,Title">Option</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text,Title">Setting</_locTag>
	</_locDefinition>

	<Configuration ConfigVersion="14.1.3.0" ConfigName="E14 PreReq Checks"/>

	<Type Name="PreCheck">
		<Object Type="Group" Name="E14 Prereqs" Task="PrecheckInstall,PrecheckUpgrade,PrecheckDR,PrecheckUninstall">
			<Setting Key1="Topology Rules">
				<Rule Name="fOrgNotNativeMode" Query="$szExchangeMixedMode='True'" Text="The Exchange organization is not in native mode." Error="Error" AlwaysEvaluate="True" Role="Global" GUID="63bbe074-5dae-41b4-b71b-80ffb0b1d42b"/>
			</Setting>
			<Setting Key1="Common Server Rules">
				<Rule Name="fServerNotWin2003" Query="$fE12 and $szWindowsVersion &lt;5.2 or ($szWindowsProductName='Microsoft Windows XP')" Error="Error" Text="This computer is not running Windows Server 2003 or later." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,Gateway" GUID="12d3d293-b720-4e4e-856a-9a10b1c2a348" AlwaysEvaluate="True"/>
				<Rule Name="fComputerNotWinXP" Query="$fE12 and $szWindowsVersion &lt;5.1" Error="Error" Text="This computer is not running Windows XP or later." Role="Global,AdminTools" GUID="12d3d293-b720-4e4e-856a-9a10b1c2a348" AlwaysEvaluate="True"/>
				<Rule Name="fComputerNotWinXPSP2" Query="$fE12 and $szWindowsVersion='5.1' and (not(starts-with($szWindowsSPLevel,'Service Pack')) or ($szWindowsSPLevel='Service Pack 1'))" Error="Error" Text="This computer is not running Windows XP Service Pack 2 or later." Role="Global,AdminTools" GUID="12d3d293-b720-4e4e-856a-9a10b1c2a348" AlwaysEvaluate="True"/>
				<Rule Name="fComputerLonghornOrVista" Query="$fE12 and not($fE12SP1orHigher) and $szWindowsVersion='6.0'" Error="Error" Text="" GUID="1bfc1c01-c389-480d-bd68-a6b625af3dbe" AlwaysEvaluate="True"/>
				<!-- // [118887] fUMComputerLonghorn rule is removed -->
				<!-- // [115722] Windows 2003 SP2 is the minimum requirement for Exchange 2007 SP1 except Global and 32-bit AdminTools -->
				<Rule Name="fServerNotWin2003SPn" Query="$fE12 and not($fE12SP1orHigher) and $szWindowsVersion='5.2' and not(starts-with($szWindowsSPLevel,'Service Pack'))" Error="Error" Text="This computer is not running Windows Server 2003 Service Pack 1 or later." GUID="12d3d293-b720-4e4e-856a-9a10b1c2a348" AlwaysEvaluate="True"/>
				<Rule Name="fServerNotWin2003SPnGlobal" Query="$fE12SP1orHigher and $szWindowsVersion='5.2' and not(starts-with($szWindowsSPLevel,'Service Pack'))" Error="Error" Text="This computer is not running Windows Server 2003 Service Pack 1 or later." Role="Global" GUID="12d3d293-b720-4e4e-856a-9a10b1c2a348" AlwaysEvaluate="True"/>
				<Rule Name="fServerNotWin2003SPnAdmin32" Query="$fE12SP1orHigher and $f32bit and $szWindowsVersion='5.2' and not(starts-with($szWindowsSPLevel,'Service Pack'))" Error="Error" Text="This computer is not running Windows Server 2003 Service Pack 1 or later." Role="AdminTools" GUID="12d3d293-b720-4e4e-856a-9a10b1c2a348" AlwaysEvaluate="True"/>
				<Rule Name="fServerNotWin2003SP2Admin64" Query="$fE12SP1orHigher and $f64bit and $szWindowsVersion='5.2' and (not(starts-with($szWindowsSPLevel,'Service Pack')) or ($szWindowsSPLevel='Service Pack 1'))" Error="Error" Text="This computer is not running Windows Server 2003 Service Pack 2 or later." Role="AdminTools" AlwaysEvaluate="True"/>
				<Rule Name="fServerNotWin2003SP2" Query="$fE12SP1orHigher and $szWindowsVersion='5.2' and (not(starts-with($szWindowsSPLevel,'Service Pack')) or ($szWindowsSPLevel='Service Pack 1'))" Error="Error" Text="This computer is not running Windows Server 2003 Service Pack 2 or later" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,Gateway" AlwaysEvaluate="True"/>
				<Rule Name="fCannotAccessAD" Query="count($szConfigurationNamingContext)=0" Error="Error" Text="Active Directory does not exist or cannot be contacted." AlwaysEvaluate="True" Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="51e5500d-8b18-4eee-bb8e-925d063b60a1"/>
				<Rule Name="fSchemaFSMONotWin2003SPn" Query="$fWin2003FSMOSchemaServer and not($fFSMOSchemaServicePack)" Text="The schema master is not running Windows Server 2003 Service Pack 1 or later." Error="Error" AlwaysEvaluate="True" Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="546fbabd-daa7-4878-9db3-0c32bc693ab4"/>
				<Rule Name="fExchangeAlreadyInstalled" Query="count($iNewestBuild)=1 and count($szServicesPath)=1 and $iNewestBuild &lt;10000" Text="A previous version of Exchange Server is already installed on this computer. Run Exchange 2010 Setup from a different computer or remove the previous version of Exchange Server." Error="Error" AlwaysEvaluate="True" GUID="c1c58f14-0baf-4a34-b320-6bc9953612a7"/>
				<Rule Name="fMetabaseCannotBeRead" Query="count($szKeyType)=0" Text="Unable to read data from the Metabase. Ensure that Microsoft Internet Information Services is installed." Error="Error" AlwaysEvaluate="True" Role="Mailbox,ClientAccess" GUID="a4a4d339-4009-4fb7-b842-ca2ba79f13f0"/>
				<Rule Name="fCannotAddToGateway" Query="count($szGatewayInstallation)=1" Text="Cannot install a new server role on an existing Edge Transport installation." Error="Error" AlwaysEvaluate="True" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="8e77cb74-7fbe-4a7b-8308-b426b99cc931"/>
				<Rule Name="fMSDAPv2492NotInstalled" Query="false() and $f64bit and substring($szFileVersionMSDAPS,6,4) &lt;2492" Text="This computer is running a 64-bit operating system and requires MSDAPS.DLL version 2.82.2492.0 or later. Please install the update described in Microsoft Knowledge Base article 904639 - http://go.microsoft.com/fwlink/?linkid=55328" Error="Error" AlwaysEvaluate="True" Role="Mailbox" GUID="797ca4ec-9cb3-4278-bc29-bed7cb9267fc"/>
				<Rule Name="fTCPIPHotfixNotInstalled" Query="$f64bit and starts-with($szFileVersionTCPIPSYS, '5.2.3790.1830')" Text="This computer is running the original TCPIP.SYS driver from Windows Server 2003 Service Pack 1. Please install the update described in Microsoft Knowledge Base article 898060 - http://go.microsoft.com/fwlink/?linkid=59272" Error="Error" AlwaysEvaluate="True" Role="Mailbox,Bridgehead,Gateway,ClientAccess,UnifiedMessaging" GUID="cce67eda-72e3-47f1-8472-2e56af15a504"/>
				<Rule Name="fW3SVCDisabledOrNotInstalled" Query="count($szW3SVCStartMode)=0 or $szW3SVCStartMode='4'" Error="Error" Text="The World Wide Web (W3SVC) service is either disabled or not installed on this computer. You must exit Setup, install the required component, then restart the Setup process." AlwaysEvaluate="True" Role="Mailbox,ClientAccess" GUID="9eeaa77f-4d46-4d9a-9c36-f262a075392b"/>
				<Rule Name="fShouldReRunSetupForW3SVC" Query="'%IISINSTALLED%'='false' and not(count($szW3SVCStartMode)=0 or $szW3SVCStartMode='4')" Error="Error" Text="The World Wide Web (W3SVC) service is running, however, you must exit and restart Setup to continue." AlwaysEvaluate="True" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="9eeaa77f-4d46-4d9a-9c36-f262a075392b"/>
				<Rule Name="fNNTPSvcInstalled" Query="count($szNNTPSvcStartMode)=1 and not($fExchangeAlreadyInstalled)" Error="Error" Text="The Network News Transport Protocol (NNTP) service is installed on this computer. This must be removed before Setup can continue." AlwaysEvaluate="True" Role="Mailbox,Bridgehead,ClientAccess,Gateway,UnifiedMessaging" GUID="47ea666e-ae8a-4a10-9667-0ffba19dd554"/>
				<Rule Name="fSMTPSvcInstalled" Query="count($szSMTPSvcStartMode)=1 and not($fExchangeAlreadyInstalled)" Error="Error" Text="The Simple Mail Transfer Protocol (SMTP) service is installed on this computer. This must be removed before Setup can continue." AlwaysEvaluate="True" Role="Mailbox,Bridgehead,ClientAccess,Gateway,UnifiedMessaging" GUID="63c39cb2-3cdd-46d9-8155-60f6ab10fc4c"/>
				<Rule Name="fSchemaUpdateRequired" Query="('%PREPARESCHEMA%'='true') and not($fSchemaAdmin and $fEnterpriseAdmin)" Error="Error" Text="The Active Directory Schema is not up-to-date, and this user account is not a member of the 'Schema Admins' and/or 'Enterprise Admins' group." AlwaysEvaluate="True" Role="Global" GUID="2fafe5d4-04e0-4c5a-a69f-7613d438131f"/>
				<Rule Name="fE14ServerNotWin2008SP2" Query="$fE14 and ($szWindowsVersion &lt;6.0 or starts-with($szWindowsProductName, 'Windows Vista') or starts-with($szWindowsProductName, 'Windows 7') or ($szWindowsVersion='6.0' and (not(starts-with($szWindowsSPLevel,'Service Pack')) or $szWindowsSPLevel='Service Pack 1')))" Error="Error" Text="This computer is not running Windows Server 2008 Service Pack 2 or later." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,Gateway" GUID="cbecd4b4-bf57-4072-ab14-2ccd145fb7c5" AlwaysEvaluate="True"/>
				<Rule Name="fE14ComputerNotVistaSp2" Query="$fE14 and ($szWindowsVersion &lt;6.0 or ($szWindowsVersion='6.0' and (not(starts-with($szWindowsSPLevel,'Service Pack')) or $szWindowsSPLevel='Service Pack 1')))" Error="Error" Text="This computer is not running Windows Vista Service Pack 2, Windows Server 2008 Service Pack 2, or later." Role="AdminTools" GUID="d3119473-cbbd-47ae-a972-9ed540434c54" AlwaysEvaluate="True"/>
				<Rule Name="fPrepareSchemaLdifdeNotInstalled" Query="($szWindowsVersion &gt;=6.0) and ('%PREPARESCHEMA%'='true') and count($szFileVersionLdifde)=0" Error="Error" Text="The Active Directory Schema is not up-to-date and Ldifde.exe is not installed on this computer. You must install Ldifde.exe by running 'ServerManagerCmd -i RSAT-ADDS' or restart setup on a domain controller." Role="Global" AlwaysEvaluate="True"/>
				<Rule Name="fPrepareAdLdifdeNotInstalled" Query="($szWindowsVersion &gt;=6.0) and ('%PREPAREORGANIZATION%'='true') and count($szFileVersionLdifde)=0" Error="Error" Text="The Active Directory needs to be prepared for Exchange Server and Ldifde.exe is not installed on this computer. You must install Ldifde.exe by running 'ServerManagerCmd -i RSAT-ADDS' or restart setup on a domain controller." Role="Global" AlwaysEvaluate="True"/>
				<Rule Name="fGlobalUpdateRequired" Query="(('%PREPAREORGANIZATION%'='true') or ('%PREPAREALLDOMAINS%'='true') or ('%PREPARELEGACYEXCHANGEPERMISSIONS%'='2A7F95FC-66C6-445F-AAB9-19744C05E70E')) and not($fEnterpriseAdmin)" Error="Error" Text="Global updates need to be made to Active Directory, and this user account is not a member of the 'Enterprise Admins' group." GUID="fb97f691-d7c3-40b6-8515-95fd489db46e" AlwaysEvaluate="True" Role="Global"/>
				<Rule Name="fDomainPrepWithoutADUpdate" Query="(count($iSchemaVersionRangeUpper)=0 or $iSchemaVersionRangeUpper &lt;14622 or count($szExchangeServersGroup)=0) and ('%PREPARESCHEMA%'='false') and ('%PREPAREORGANIZATION%'='false') and (('%PREPAREDOMAIN%'!='') or ('%PREPAREALLDOMAINS%'='true'))" Error="Error" Text="The Active Directory must be modified with 'Setup /PrepareAD' before domains can be prepared for Exchange 2010." Role="Global" GUID="d6e50c63-9a93-45fd-acb4-9b623c1ecf42" AlwaysEvaluate="True"/>
				<Rule Name="fADUpdateRequired" Query="(('%PREPAREORGANIZATION%'='true') and not($fHasExtendedRightsCreateChildPerms or $fGlobalUpdateRequired))" Error="Error" Text="The Active Directory must be modified with 'Setup /PrepareAD' and this user account lacks required permissions even though it is a member of the 'Enterprise Admins' group. Check whether this is a valid account." Role="Global" GUID="52d39c34-766d-46ad-a2b4-a10709e2a3b0" AlwaysEvaluate="True"/>
				<Rule Name="fNoE12ServerWarning" Query="$fE14 and ('%PREPAREORGANIZATION%'='true') and count($szE12ServerInTopology)=0 and count($szE14ServerInTopology)=0" Error="Warning" Text="Setup is going to prepare the organization for Exchange 2010 by using 'Setup /PrepareAD'. No Exchange 2007 server roles have been detected in this topology. After this operation, you will not be able to install any Exchange 2007 server roles." Role="Global" GUID="b8bb6d61-4f46-4109-a0f2-7050b485e3e1" AlwaysEvaluate="True"/>


				<!-- // [82390] This rule verifies that the logged-on user has sufficient permissions to perform the /PrepareDomain operation -->
				<!-- // The user needs to have Domain Admin permissions, plus the ability to update the membership of the Exchange Servers USG (read/write on 'members' property) -->
				<!-- // The USG permissions will be automatically granted to all existing Domain Admins during the /PrepareAD phase -->
				<!-- // For domains created after the /PrepareAD phase, the administrator running /PrepareDomain will see a Setup failure message detailing the exact problem -->
				<!-- // The presence of the GUID means that Setup is requesting a local /PrepareDomain -->
				<Rule Name="fLocalDomainPrep" Query="('%PREPAREDOMAIN%'='F63C3A12-7852-4654-B208-125C32EB409A') and not(($fLocalDomainAdmin and $fHasExchangeServersUSGBasicAccess) or $fEnterpriseAdmin)" Error="Error" Text="The local domain needs to be updated. You must be a member of the 'Domain Admins' group and 'Organization Management' role group, or 'Enterprise Admins' group to continue." Role="Global" GUID="57887854-be52-43eb-9549-e854e4dbe33b" AlwaysEvaluate="True"/>

				<Rule Name="fGlobalServerInstall" Query="not($fExOrgAdmin or $fEnterpriseAdmin or ($fServerAlreadyExists and count($fHasServerDelegatedPermsBlocked)=0))" Error="Error" Text="You must be a member of the 'Organization Management' role group or 'Enterprise Admins' group to continue." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="1d750594-9222-44d7-8f80-45e522e889e6" AlwaysEvaluate="True"/>
				<Rule Name="fNotInSchemaMasterSite" Query="(('%PREPARESCHEMA%'='true') or ('%PREPAREORGANIZATION%'='true')) and lower-case($szSiteName)!=lower-case($szFSMOSchemaSiteName) and ($szSiteName!='') and ($szFSMOSchemaSiteName!='')" Error="Error" Text="Setup needs to contact the Active Directory schema master but this computer is not in the same Active Directory site as the schema master ({3})." P3="$szFSMOSchemaSiteName" Role="Global" GUID="2376fec1-b9ce-44db-beb6-cb9ac4788988" AlwaysEvaluate="True"/>
				<Rule Name="fNotInSchemaMasterDomain" Query="(('%PREPARESCHEMA%'='true') or ('%PREPAREORGANIZATION%'='true')) and lower-case($szComputerDomainDN)!=lower-case($szFSMOSchemaDomain) and ($szComputerDomainDN!='') and ($szFSMOSchemaDomain!='')" Error="Error" Text="Setup needs to contact the Active Directory schema master but this computer is not in the same Active Directory domain as the schema master ({3})." P3="$szFSMOSchemaDomain" Role="Global" GUID="2376fec1-b9ce-44db-beb6-cb9ac4788988" AlwaysEvaluate="True"/>

				<!-- // [92107] When Setup is launched, it verifies the state of the Active Directory. If it finds problems, it'll log them but stay silent to allow pre-reqs to run -->
				<!-- // This rule surfaces the string of any Active Directory initialization error detected by Setup so that pre-reqs can report it -->
				<Rule Name="fADInitError" Query="(@S1 !='')" Error="Error" Text="{1}" S1="%ADINITERROR%" Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging"/>

				<Rule Name="fProvisionedUpdateRequired" Query="('%NEWPROVISIONEDSERVERNAME%'!='') and count($szExOrgAdminAccountName)=0" Error="Error" Text="You must prepare the organization (via 'Setup /PrepareAD') before provisioning new servers." AlwaysEvaluate="True" Role="Global"/>
				<Rule Name="fADCFound" Query="count($szADCServer)&gt;0" Error="Error" Text="One or more Active Directory Connectors have been found. Please remove all Active Directory Connectors before installing Exchange 2010." AlwaysEvaluate="True" Role="Global" GUID="bee744c9-dcf7-46a2-9a71-ab0236fa7732"/>
				<!-- // [109750] Rules fClientAccessRoleUpgrade and fUnifiedMessagingRoleUpgrade are conditioned only for RTM insallation as a build-to-build upgrade is supported with SP1 -->
				<Rule Name="fClientAccessRoleUpgrade" Query="$fE12 and not($fE12SP1orHigher) and $fClientAccessRoleInstalled" Error="Error" Text="The Client Access server role cannot be upgraded. Remove the current role using 'Add or Remove Programs' in the Control Panel, then install the newer version of the software." Task="PrecheckUpgrade" Role="ClientAccess" AlwaysEvaluate="True"/>
				<Rule Name="fUnifiedMessagingRoleUpgrade" Query="$fE12 and not($fE12SP1orHigher) and $fUnifiedMessagingRoleInstalled" Error="Error" Text="The Unified Messaging server role cannot be upgraded. Remove the current role using 'Add or Remove Programs' in the Control Panel, then install the newer version of the software." Task="PrecheckUpgrade" Role="UnifiedMessaging" AlwaysEvaluate="True"/>
			</Setting>
			<Setting Key1="Install Only Server Rules" Task="PrecheckInstall">
				<Rule Name="fMailboxRoleAlreadyExists" Query="$fServerAlreadyExists and $fMailboxRoleInstalled" Error="Error" Text="The Mailbox server role is already installed on this computer." AlwaysEvaluate="True" Role="Mailbox"/>
				<Rule Name="fClientAccessRoleAlreadyExists" Query="$fServerAlreadyExists and $fClientAccessRoleInstalled" Error="Error" Text="The Client Access server role is already installed on this computer." AlwaysEvaluate="True" Role="ClientAccess"/>
				<Rule Name="fUnifiedMessagingRoleAlreadyExists" Query="$fServerAlreadyExists and $fUnifiedMessagingRoleInstalled" Error="Error" Text="The Unified Messaging server role is already installed on this computer." AlwaysEvaluate="True" Role="UnifiedMessaging"/>
				<Rule Name="fBridgeheadRoleAlreadyExists" Query="$fServerAlreadyExists and $fBridgeheadRoleInstalled" Error="Error" Text="The Hub Transport server role is already installed on this computer." AlwaysEvaluate="True" Role="Bridgehead"/>
				<Rule Name="fCannotInstallGateway" Query="count($szMailboxInstallation)=1 or count($szBridgeheadInstallation)=1 or count($szClientAccessInstallation)=1 or count($szUnifiedMessagingInstallation)=1 or count($szAdminToolsInstallation)=1" Error="Error" Text="Cannot install the Edge Transport server role when other roles are already installed." Role="Gateway" GUID="132c35d2-dde3-410d-8e03-6611cd0bbaec" AlwaysEvaluate="True"/>
				<Rule Name="fMetabaseDefaultWebSiteCannotBeRead" Query="count($szDefaultWebSiteKeyType)=0 and not($fW3SVCDisabledOrNotInstalled)" Error="Error" Text="Unable to access the 'Default Web Site' on this computer." AlwaysEvaluate="True" Role="ClientAccess" GUID="aadc8176-1c47-49b7-83a0-9493a1093af1"/>
				<Rule Name="f32BitNonProductionWarning" Query="count($f32bit) &gt;0" Error="Warning" Text="The 32-bit version of Exchange Server 2010 is not supported for production use." Role="Mailbox,Bridgehead,ClientAccess,Gateway,UnifiedMessaging" GUID="fe72dfed-6138-4a9a-a3bc-f2e2c0ba2693"/>
				<Rule Name="fWin2003Web" Query="$fE12 and $szWindowsVersion='5.2' and bitwise-and($iOSProductSuite,1024)" Error="Error" Text="This computer is running Windows Server 2003 Web Edition. Exchange Server 2007 is not supported on this operating system."/>
				<Rule Name="fE14ServerWinWebEdition" Query="$fE14 and starts-with($szWindowsVersion, '6.') and bitwise-and($iOSProductSuite,1024)" Error="Error" Text="This computer is running Windows Web Server 2008 or Windows Web Server 2008 R2. Exchange Server 2010 is not supported on this operating system." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,Gateway,AdminTools" GUID="19806543-5eaa-415e-9b2c-fa241e7e3066"/>
				<Rule Name="fComputerNameDnsDomainBad" Query="$szComputerNameDnsDomain='' or count($szComputerNameDnsDomain)=0" Error="Error" Text="The fully qualified domain name of the computer is either missing or empty. Setup cannot continue." AlwaysEvaluate="True" Role="Gateway" GUID="7f28860b-0727-40ca-90b0-ecccad6ef360"/>
				<Rule Name="fBridgeheadRoleNotPresentInSite" Query="count($szBridgeheadRoleInCurrentADSite)=0 and not(contains('%SETUPROLES%', 'Bridgehead'))" Error="Warning" Text="Setup did not detect an existing Hub Transport server role installed in Active Directory site '{1}'. Mail cannot be sent or received from this mailbox server until a Hub Transport role is installed." P1="$szSiteName" Role="Mailbox" GUID="06197cec-f7ab-420a-9ed5-f51aa58a2673" AlwaysEvaluate="True"/>
				<Rule Name="fClientAccessRoleNotPresentInSite" Query="count($szClientAccessRoleInCurrentADSite)=0 and not(contains('%SETUPROLES%', 'ClientAccess'))" Error="Warning" Text="Setup didn't detect an existing Client Access server role installed in Active Directory site '{1}'. Outlook Web App and Exchange ActiveSync mobile phone access won't be available until a Client Access role is installed." P1="$szSiteName" Role="Mailbox" GUID="6dcaac9f-2e10-4a65-a929-01eb8a762333" AlwaysEvaluate="True"/>
				<Rule Name="fDelegatedMailboxFirstInstall" Query="count($szMailboxRoleInTopology)=0 and $fServerIsProvisioned and not($fExOrgAdmin)" Error="Error" Text="You must be logged-on as an Exchange organization administrator to install the first Mailbox Server role in the topology." AlwaysEvaluate="True" Role="Mailbox" GUID="e58f51fd-2c66-4a4b-914a-628dccf9a09f"/>
				<Rule Name="fDelegatedBridgeheadFirstInstall" Query="count($szBridgeheadRoleInTopology)=0 and $fServerIsProvisioned and not($fExOrgAdmin)" Error="Error" Text="You must be logged-on as an Exchange organization administrator to install the first Hub Transport server role in the topology." AlwaysEvaluate="True" Role="Bridgehead" GUID="e58f51fd-2c66-4a4b-914a-628dccf9a09f"/>
				<Rule Name="fDelegatedClientAccessFirstInstall" Query="count($szClientAccessRoleInTopology)=0 and $fServerIsProvisioned and not($fExOrgAdmin)" Error="Error" Text="You must be logged-on as an Exchange organization administrator to install the first Client Access server role in the topology." AlwaysEvaluate="True" Role="ClientAccess" GUID="e58f51fd-2c66-4a4b-914a-628dccf9a09f"/>
				<Rule Name="fDelegatedUnifiedMessagingFirstInstall" Query="count($szUnifiedMessagingRoleInTopology)=0 and $fServerIsProvisioned and not($fExOrgAdmin)" Error="Error" Text="You must be logged on as an Exchange organization administrator to install the first Unified Messaging server role in the topology." AlwaysEvaluate="True" Role="UnifiedMessaging" GUID="e58f51fd-2c66-4a4b-914a-628dccf9a09f"/>
				<!-- // [92011] If this is the first mailbox role install into a legacy org, then we need to provide information about OWA free/busy access from Exchange 200x servers -->
				<!-- // If the new free/busy folder isn't replicated to down-level servers, then older OWA users won't be able to see free/busy data for Exchange 2007 mailboxes. This does not apply to MAPI clients -->
				<Rule Name="fFirstPublicMDBWarning" Query="('%CREATEPUBLICDB%'='true') and count($fExchange200x) &gt;0 and count($szMailboxRoleInTopology)=0" Error="Warning" Text="If Microsoft Outlook 2003 is in use, you should replicate the free/busy folder on this server to every other free/busy server in the organization. This step should be performed once Setup completes." AlwaysEvaluate="True" Role="Mailbox"/>
				<!-- SERVICE_AUTO_START is 2. -->
				<Rule Name="fClusSvcInstalledRoleBlock" Query="$szClusSvcStartMode=2" Error="Error" Text="The Windows Failover Cluster Service is installed on this computer. The machine must not be a member of a cluster prior to installing Exchange. Uninstall Windows Failover Clustering prior to installing Exchange." AlwaysEvaluate="True" Role="Mailbox" GUID="3ef67fb6-ece1-4a30-96df-9281a6c2f4ad"/>
				<!--Global CEIP. Report one warning when global ceip is not specified during preparing organization-->
				<Rule Name="fGlobalCEIPIsNotSpecifiedWarningDuringPrepareOrganization" Query="'%PREPAREORGANIZATION%'='true' and (count($szGlobalCustomerFeedbackEnabled)=0 or $szGlobalCustomerFeedbackEnabled='') and '%CUSTOMERFEEDBACKENABLED%'='' and false()" Error="Warning" Text="The Customer Experience Improvement Program has been set to True by your organization administrator, but /customerfeedbackenabled:true was not specified for this install. Therefor, this server will not be included in the program at this time." Role="Global" GUID="d860fd5d-9b6d-4aa6-87fa-b838e0435a5a" AlwaysEvaluate="True"/>
				<!--Server CEIP-->
				<!--Report warning when server CEIP is not specifed during clean installation if global CEIP is empty or true-->
				<Rule Name="fServerCEIPIsNotSpecifiedWarningDuringCleanInstallation" Query="(count($szMsiInstallPath)=0 or $szMsiInstallPath='') and not($szGlobalCustomerFeedbackEnabled='false') and '%CUSTOMERFEEDBACKENABLED%'='' and false()" Error="Warning" Text="Customer Experience Improvement Program is not specified for this server. For more information, see Privacy Statement for the Microsoft Customer Experience Improvement Program(http://go.microsoft.com/fwlink/?linkid=52097) and Microsoft Customer Experience Improvement Program(http://go.microsoft.com/fwlink/?linkid=52095)." Role="Mailbox,Bridgehead,ClientAccess,Gateway,UnifiedMessaging" GUID="d0399c3d-ec27-4d85-9cb6-8a835393e502" AlwaysEvaluate="True"/>
				<!--Report warning during clean installation if global CEIP is false.-->
				<Rule Name="fGlobalCEIPIsFalseWaringDuringCleanInstallation" Query="(count($szMsiInstallPath)=0 or $szMsiInstallPath='') and $szGlobalCustomerFeedbackEnabled='false' and false()" Error="Warning" Text="The Customer Experience Improvement Program is set to False by your Organization Admin.Therefore, this server will not be included in the program. For more information, see Privacy Statement for the Microsoft Customer Experience Improvement Program(http://go.microsoft.com/fwlink/?linkid=52097) and Microsoft Customer Experience Improvement Program(http://go.microsoft.com/fwlink/?linkid=52095)." Role="Mailbox,Bridgehead,ClientAccess,Gateway,UnifiedMessaging" GUID="4da094c2-c6cf-4779-b7c1-b9181dde8d03" AlwaysEvaluate="True"/>
			</Setting>
			<Setting Key1="Install, Upgrade and DR Rules" Task="PrecheckInstall,PrecheckUpgrade,PrecheckDR">
				<!-- // [140628] Only perform mmc hotfix check in setup when the OS version is smaller than 6.0.6001.22169, for higher version of OS the hotfix has been built into it.-->
				<Rule Name="fMmcHotFix" Query="count($szMmcHotFix)=0 and (version-compare($szWindowsVersion, '6.0') &lt;0 or (version-compare($szWindowsVersion, '6.0')=0 and version-compare($szWindowsBuildAndRevisionNumber, '6001.22169')&lt;0))" Error="Error" Text="This computer requires the update described in Microsoft Knowledge Base article 951725 (http://support.microsoft.com/kb/951725). Please install the required update to proceed." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,Gateway,AdminTools" GUID="e9c26690-dd0c-4d3c-a211-984789a61cb1" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornWmvcoreNotInstalled" Query="starts-with($szWindowsVersion,'6.') and (count($szFileVersionWmvcore)=0 or (starts-with($szFileVersionWmvcore,'10.00.00') and substring($szFileVersionWmvcore,10,4) &lt;3802))" Error="Error" Text="This computer requires {4}. Install the Desktop-Experience component via Server Manager." S4="Windows Media Encoder" Role="UnifiedMessaging" GUID="5dbd230b-da19-4200-a839-1ebe89feed0e" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornWmspdmoxNotInstalled" Query="starts-with($szWindowsVersion,'6.') and ((count($szFileVersionWmspdmod)=0 or (starts-with($szFileVersionWmspdmod,'10.00.00') and substring($szFileVersionWmspdmod,10,4) &lt;3804)) or (count($szFileVersionWmspdmoe)=0 or (starts-with($szFileVersionWmspdmoe,'10.00.00') and substring($szFileVersionWmspdmoe,10,4) &lt;3804)))" Error="Error" Text="This computer requires {4}. Install the Desktop-Experience component via Server Manager." S4="Windows Media Audio Voice Codec" AlwaysEvaluate="True" Role="UnifiedMessaging"/>
				<Rule Name="fMSXML6NotInstalled" Query="count($szFileVersionMSXML6)=0" Error="Error" Text="This computer requires Microsoft Core XML Services (MSXML) 6.0. Please install the software from http://go.microsoft.com/fwlink/?LinkId=70796." Role="UnifiedMessaging" GUID="c0c73588-92d7-4478-8210-f51b9aa01039" AlwaysEvaluate="True"/>
				<Rule Name="fMSFilterPackNotInstalled" Query="count($szMSFilterPack)=0" Error="Warning" Text="This computer requires the 2007 Office System Converter: Microsoft Filter Pack. Please install the software from http://go.microsoft.com/fwlink/?LinkId=123380." Role="Mailbox,Bridgehead" GUID="e5a983e0-a549-4110-ba94-f0f69de57b4c" AlwaysEvaluate="True"/>
				<Rule Name="fAdsiisVersionIssue" Query="starts-with($szFileVersionAdsiis,'6.0.3790.0')" Error="Error" Text="The version of '{5}' installed on this computer is not from Windows Server 2003 Service Pack 1 or later. Apply Service Pack 1 and restart Setup." S5="adsiis.dll" Role="ClientAccess,Mailbox"/>
				<Rule Name="fIisextVersionIssue" Query="starts-with($szFileVersionIisext,'6.0.3790.0')" Error="Error" Text="The version of '{5}' installed on this computer is not from Windows Server 2003 Service Pack 1 or later. Apply Service Pack 1 and restart Setup." S5="iisext.dll" Role="ClientAccess,Mailbox"/>
				<Rule Name="fExchange2003MinVerNotMet" Query="count($fExchange2003PreSP2) &gt;0" Error="Error" Text="One or more servers in the existing organization is running Exchange Server 2003 without Service Pack 2 (or later). Installation cannot proceed until existing Exchange Server 2003 computers are upgraded to Service Pack 2." Role="Global" GUID="976e716a-b14a-4e67-a913-7b2fe0e9045c"/>
				<Rule Name="fExchange2000PresentInOrg" Query="$fE14 and count($fExchange2000) &gt;0" Error="Error" Text="One or more servers in the existing organization is running Exchange 2000 Server. Please upgrade these servers to Exchange Server 2003 (or later) or remove them.  Installation cannot proceed until existing Exchange 2000 servers are upgraded or removed." Role="Global" GUID="8723d75f-011a-4a50-9801-0c750af16c34"/>
				<Rule Name="fDSTHotfixNotInstalled" Query="not($fDST2007Enabled)" Error="Error" Text="This computer requires the update described in Microsoft Knowledge Base article 931836 (http://go.microsoft.com/fwlink/?LinkID=92858). Without this update you might encounter incorrect time zone information." Role="Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="2dbcc670-d1e5-40d9-9ad4-80bd40464ece"/>
				<Rule Name="fDSTOldHotfixInstalled" Query="$fDST2007Enabled and count($szDynamicDSTKey)=0" Error="Error" Text="An older version of a software update is detected. Uninstall the update from Microsoft Knowledge Base article 924840 and install the update described in Microsoft Knowledge Base article 951072 instead (http://go.microsoft.com/fwlink/?LinkID=3052&amp;kbid=951072)." Role="Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="2dbcc670-d1e5-40d9-9ad4-80bd40464ece" AlwaysEvaluate="True"/>
				<Rule Name="fNtoskrnlHotfixNotInstalled" Query="version-compare($szFileVersionNtoskrnl, '5.2.3790.2838') &lt;0" Error="Error" Text="This computer requires the update described in Microsoft Knowledge Base article 928368 (http://go.microsoft.com/fwlink/?LinkID=92853). Without this update, the Microsoft Exchange Information Store service may stop responding." Role="Mailbox"/>
				<Rule Name="fRebootPending" Query="(count($szPendingFileRenames) &gt;0 and $szPendingFileRenames != '') or $fUpdateNeedsReboot" Error="Error" Text="A reboot from a previous installation is pending. Please restart the system and rerun setup." AlwaysEvaluate="True"/>
				<Rule Name="fLonghornNoIPv4" Query="($szWindowsVersion='6.0' and not(starts-with($szWindowsProductName, 'Windows Vista'))) and count($szIPv4Address)=0" Error="Warning" Text="This computer has not been assigned an IPv4 address. IPv6 is only supported in Exchange Server 2010 when it is installed on a computer running Windows Server 2008 SP2 or R2 that has both IPv4 and IPv6 enabled. See http://go.microsoft.com/fwlink/?LinkId=102391 for more details." Role="Mailbox,Gateway,Bridgehead,ClientAccess,AdminTools" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornUMNoIPv4" Query="(starts-with($szWindowsVersion,'6.') and not(starts-with($szWindowsProductName, 'Windows Vista'))) and count($szIPv4Address)=0" Error="Error" Text="This computer has not been assigned an IPv4 address. The Unified Messaging server role requires a valid IPv4 address configured on this computer. See http://go.microsoft.com/fwlink/?LinkId=102391 for more details." Role="UnifiedMessaging" AlwaysEvaluate="True"/>
				<Rule Name="fVistaNoIPv4" Query="($szWindowsVersion='6.0' and starts-with($szWindowsProductName, 'Windows Vista')) and count($szIPv4Address)=0" Error="Error" Text="This computer is running Windows Vista and has not been assigned an IPv4 address. Check the network configuration. IPv6 is only supported in Exchange Server 2010 when it is installed on a computer running Windows Vista that has both IPv4 and IPv6 enabled. See http://go.microsoft.com/fwlink/?LinkId=102391 for more details." Role="AdminTools" AlwaysEvaluate="True"/>
				<Rule Name="fNoConnectorToStar" Query="count($fE14orHigherHubAlreadyExists) &gt;0 and count($szConnectorToStar)=0" Error="Warning" Text="Setup cannot detect an SMTP or Send connector with an address space of '*'. Mail flow to the Internet may not work properly." Role="Bridgehead" GUID="0976a448-3503-435f-b428-6fbd149f9b19" AlwaysEvaluate="True"/>
				<Rule Name="fHTTPActivationNotInstalled" Query="$szWindowsVersion='6.0' and count($szHTTPActivation)=0" Error="Error" Text="The 'HTTP Activation' feature is not installed. Install the feature via Server Manager (.NET Framework 3.0 Features\WCF Activation\HTTP Activation)." Role="ClientAccess" AlwaysEvaluate="True"/>
				<Rule Name="fMsdrmHotfixNotInstalled" Query="version-compare($szFileVersionMsdrm, '6.0.6001.22144') &lt;0" Error="Error" Text="This computer requires the update described in Microsoft Knowledge Base article 950888 (http://support.microsoft.com/?kbid=950888). Without this update, the Microsoft Exchange Transport service or Microsoft Exchange Unified Messaging service may stop responding." Role="Bridgehead,UnifiedMessaging" GUID="af93794f-a114-42dc-bc1d-ab4ed389b32c" AlwaysEvaluate="True"/>
				<Rule Name="fLoadBalancingHotfixNotInstalled" Query="version-compare($szFileVersionLbservice, '6.0.6001.22276') &lt;0" Error="Error" Text="This computer requires the update described in Microsoft Knowledge Base article 958178 (http://support.microsoft.com/?kbid=958178). Without this update, the load balancing functionality of Microsoft Exchange on the Client Access servers for Outlook Anywhere will not work." Role="ClientAccess" GUID="ba5a6606-76f3-418e-8c22-8e521a93a473" AlwaysEvaluate="True"/>

				<!-- // [93367] Some tasks such as Get-OwaVirtualDirectory requires metabase access. This functionality is provided by IIS Common Files -->
				<!-- // This component will be pre-installed on Mailbox and ClientAccess roles because they require IIS -->
				<!-- // For Bridgehead and UnifiedMessaging roles, we will recommend the installation of this component to provide the full admin experience -->
				<!-- // For the AdminTools role, we demand the installation of this component so that the administrator, scripts and tools can guarantee remote access -->
				<Rule Name="fIISCommonFilesNotInstalled" Query="$fE12 and ($szWindowsVersion='5.1' or $szWindowsVersion='5.2') and count($szIISCommonFiles)=0" Error="Error" Text="Microsoft Internet Information Services Common Files is required. Install the component via Control Panel, Add or Remove Programs." Role="AdminTools" GUID="e06c0ec9-6323-4101-8a90-d2d432d46b91" AlwaysEvaluate="True"/>
				<Rule Name="fIISCommonFilesNotInstalledWarning" Query="$fE12 and $szWindowsVersion='5.2' and count($szIISCommonFiles)=0" Error="Warning" Text="The installation of Microsoft Internet Information Services Common Files is recommended as it allows for the administration of all server roles. Install the component via Control Panel, Add or Remove Programs." Role="Bridgehead,UnifiedMessaging" GUID="e06c0ec9-6323-4101-8a90-d2d432d46b91" AlwaysEvaluate="True"/>

				<Rule Name="fLonghornIIS6MetabaseNotInstalled" Query="$szWindowsVersion='6.0' and (count($szIIS6MetabaseStatus)=0 or $szIIS6MetabaseStatus='0')" Error="Error" Text="The 'IIS 6 Metabase Compatibility' component is not installed. Install the component via Server Manager." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="0a71c4f6-68de-40f7-94cf-74b73cbda37b" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornIIS6MgmtConsoleNotInstalled" Query="$szWindowsVersion='6.0' and (count($szIIS6ManagementConsoleStatus)=0 or $szIIS6ManagementConsoleStatus='0')" Error="Error" Text="The 'IIS 6 Management Console' component is not installed. Install the component via Server Manager." Role="Mailbox,ClientAccess,AdminTools" GUID="0a71c4f6-68de-40f7-94cf-74b73cbda37b" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornIIS6MgmtConsoleNotInstalledWarning" Query="$szWindowsVersion='6.0' and (count($szIIS6ManagementConsoleStatus)=0 or $szIIS6ManagementConsoleStatus='0')" Error="Warning" Text="The 'IIS 6 Management Console' component is recommended as it allows for the administration of all server roles. Install the component via Server Manager." Role="Bridgehead,UnifiedMessaging" GUID="0a71c4f6-68de-40f7-94cf-74b73cbda37b" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornIIS7HttpCompressionDynamicNotInstalled" Query="$szWindowsVersion='6.0' and (count($szIIS7CompressionDynamic)=0 or $szIIS7CompressionDynamic='0')" Error="Error" Text="The '{4}' component is required. Install the component via Server Manager." S4="IIS 7 Dynamic Content Compression" Role="ClientAccess" GUID="41a25c5e-0d39-4e55-a1f0-7be885982236" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornIIS7HttpCompressionStaticNotInstalled" Query="$szWindowsVersion='6.0' and (count($szIIS7CompressionStatic)=0 or $szIIS7CompressionStatic='0')" Error="Error" Text="The '{4}' component is required. Install the component via Server Manager." S4="IIS 7 Static Content Compression" Role="ClientAccess" GUID="41a25c5e-0d39-4e55-a1f0-7be885982236" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornIIS7ManagedCodeAssembliesInstalled" Query="$szWindowsVersion='6.0' and (count($szIIS7ManagedCodeAssemblies)=0 or $szIIS7ManagedCodeAssemblies='0')" Error="Error" Text="The '{4}' component is required. Install the component via Server Manager." S4="Web Server (IIS) Tools" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="30622171-7b05-49f2-b563-bf8b06e0c9b2" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornWASProcessModelInstalled" Query="$szWindowsVersion='6.0' and (count($szWASProcessModel)=0 or $szWASProcessModel='0')" Error="Error" Text="The '{4}' component required. Install the component via Server Manager." S4="Windows Process Activation Service Process Model" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="6a74b3d5-b213-41c7-a184-06e735e44265" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornIIS7BasicAuthNotInstalled" Query="$szWindowsVersion='6.0' and (count($szIIS7BasicAuthentication)=0 or $szIIS7BasicAuthentication='0')" Error="Error" Text="The '{4}' component required. Install the component via Server Manager." S4="IIS 7 Basic Authentication" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="41a25c5e-0d39-4e55-a1f0-7be885982236" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornIIS7WindowsAuthNotInstalled" Query="$szWindowsVersion='6.0' and (count($szIIS7WindowAuthentication)=0 or $szIIS7WindowAuthentication='0')" Error="Error" Text="The '{4}' component is required. Install the component via Server Manager." S4="IIS 7 Windows Authentication" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="41a25c5e-0d39-4e55-a1f0-7be885982236" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornIIS7DigestAuthNotInstalled" Query="$szWindowsVersion='6.0' and (count($szIIS7DigestAuthentication)=0 or $szIIS7DigestAuthentication='0')" Error="Error" Text="The '{4}' component is required. Install the component via Server Manager." S4="IIS 7 Digest Authentication" Role="ClientAccess" GUID="41a25c5e-0d39-4e55-a1f0-7be885982236" AlwaysEvaluate="True"/>
				<Rule Name="fLonghornIIS7NetExt" Query="$szWindowsVersion='6.0' and (count($szIIS7NetExt)=0 or $szIIS7NetExt='0')" Error="Error" Text="The '{4}' component is required. Install the component via Server Manager." S4="IIS 7 .NET Extensibility" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="5f29a861-f472-4f11-a23a-04155373f5ed" AlwaysEvaluate="True"/>
				<Rule Name="fPreviousBuildDetected" Query="$fMailboxPreviousBuild or $fUnifiedMessagingPreviousBuild or $fBridgeheadPreviousBuild" AlwaysEvaluate="True"/>
				<Rule Name="fADAMNotInstalled" Query="$fE12 and $szWindowsVersion='5.2' and count($szADAMVersion)=0" Error="Error" Text="Active Directory Application Mode (ADAM) is not installed on this computer. You must install ADAM Service Pack 1 to proceed. This software can be downloaded from http://go.microsoft.com/fwlink/?linkid=71063." Role="Gateway" GUID="a8e696b4-e6dd-4516-a293-cbe79e15061b" AlwaysEvaluate="True"/>
				<Rule Name="fADAMLonghornNotInstalled" Query="$szWindowsVersion='6.0' and count($szADAMVersion)=0" Error="Error" Text="Active Directory Lightweight Directory Service is not installed on this computer. Install the component via Server Manager." Role="Gateway" GUID="68ca8e42-c2b2-4e13-80d8-9e219a9b8bb5" AlwaysEvaluate="True"/>
                                <Rule Name="fADAMWin7ServerInstalled" Query="$szWindowsVersion='6.1' and count($szADAMVersion)=0" Error="Error" Text="Active Directory Lightweight Directory Service is not installed on this computer. Install the component via Server Manager." Role="Gateway" GUID="68ca8e42-c2b2-4e13-80d8-9e219a9b8bb5" AlwaysEvaluate="True"/>
                                <Rule Name="fE14BridgeheadRoleNotFound" Query="count($fE14orHigherHubAlreadyExists)=0 and not(contains('%SETUPROLES%', 'Bridgehead'))" Error="Warning" Text="Setup didn't detect an Exchange 2010 Hub Transport server in your organization. Unified Messaging features will not be available until you install the Hub Transport server role." Role="UnifiedMessaging" AlwaysEvaluate="True"/>
				<Rule Name="fE12CASOrUMOrMBXOrHubSP1FoundinADSite" Query="$fE14 and (count($fE12SP1orLowerUMAlreadyExists)&gt;0 or count($fE12SP1orLowerCASAlreadyExists)&gt;0 or count($fE12SP1orLowerHubAlreadyExists)&gt;0 or count($fE12SP1orLowerMBXAlreadyExists)&gt;0)" Error="Error" Text="Coexistence between Exchange Server 2010 and Exchange Server versions older than Exchange Server 2007 SP2 in the same Active Directory Site is not supported." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="fb049413-b962-4973-a1b2-a62a81ef8691" AlwaysEvaluate="True"/>

				<!-- TODO: Placeholder strings for potential fixes -->
				<Rule Name="fDotNetFrameworkNeedsUpdate" Query="$f64bit and (version-compare($szFileVersionMSCorLib, '2.0.50727.235') &lt;0 or version-compare($szFileVersionMSCorWks, '2.0.50727.235') &lt;0)" Error="Error" Text="This computer requires a software update. Download and install the software from http://go.microsoft.com/fwlink/?linkid=74465. The computer will need to be rebooted before restarting setup." Role="Global,Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="729d1648-ff17-43f9-a1cf-4285a82d4917"/>
				<Rule Name="fUpdate2" Query="$f64bit and version-compare($szFileVersionMSDAPS, '2.82.2696.0') &lt;0" Error="Error" Text="This computer requires a software update. Download and install the update from http://go.microsoft.com/fwlink/?linkid=74467." Role="Mailbox" GUID="a7c3d273-8407-47c5-a9d4-096297abcfdd"/>
				<Rule Name="fDotNetFrameworkNeedsUpdate32" Query="$f32bit and (version-compare($szFileVersionMSCorLib, '2.0.50727.235') &lt;0 or version-compare($szFileVersionMSCorWks, '2.0.50727.235') &lt;0)" Error="Error" Text="This computer requires a software update. Download and install the software from http://go.microsoft.com/fwlink/?linkid=74469. The computer will need to be rebooted before restarting setup." Role="Global,Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="729d1648-ff17-43f9-a1cf-4285a82d4917"/>
				<Rule Name="fUpdate4" Query="false()" Error="Error" Text="This computer requires a software update. Download and install the software from http://go.microsoft.com/fwlink/?linkid=74470."/>
				<Rule Name="fUpdate5" Query="false()" Error="Error" Text="This computer requires a software update. Download and install the software from http://go.microsoft.com/fwlink/?linkid=74471."/>
				<Rule Name="fDotNetFrameworkSP1NotInstalled" Query="false()" Error="Error" Text="This computer requires Microsoft .NET Framework 2.0 Service Pack 1. Please install the software from http://www.microsoft.com/downloads and restart setup." Role="Global,Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools"/>
				<Rule Name="fDotNetFramework942027NotInstalled" Query="$fE12SP1orHigher and (version-compare($szFileVersionMSCorLib, '2.0.50727.926') &lt;0 or version-compare($szFileVersionMSCorWks, '2.0.50727.926') &lt;0)" Error="Warning" Text="When you run Exchange Server 2007 Service Pack 1 (SP1) on Windows Server 2003 or earlier versions of the operating system, we recommend that you install Microsoft .NET Framework 2.0 Service Pack 1 (SP1). If you cannot install .NET Framework 2.0 SP1, install hotfix Microsoft Knowledge Base article 942027 from http://go.microsoft.com/fwlink/?linkid=101219." Role="Global,Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools"/>

				<!-- Language Pack Setup Rules -->
				<Rule Name="fLangPackBundleVersioning" Query="'%LANGUAGEPACKVERSIONING%'='false'" Error="Error" Text="The language pack bundle is not compatible with the current version of Microsoft Exchange." AlwaysEvaluate="True" Role="LanguagePacks"/>
				<Rule Name="fLangPackBundleCheck" Query="'%LANGUAGESAVAILABLETOINSTALL%'='false'" Error="Error" Text="The language pack bundle could not be found or is corrupt." AlwaysEvaluate="True" Role="LanguagePacks"/>
				<Rule Name="fLangPackDiskSpaceCheck" Query="'%SUFFICIENTLANGUAGEPACKDISKSPACE%'='false'" Error="Error" Text="There is insufficient disk space available for language pack bundle installation." AlwaysEvaluate="True" Role="LanguagePacks"/>
			</Setting>
			<Setting Key1="Non-Install Server Rules" Task="PrecheckUpgrade,PrecheckDR">
				<Rule Name="fMailboxRoleNotInstalled" Query="not ($fMailboxRoleInstalled) and count($szClusSvcStartMode)=0" Error="Error" Text="The Mailbox server role is not installed on this computer." AlwaysEvaluate="True" Role="Mailbox"/>
				<Rule Name="fUnifiedMessagingRoleNotInstalled" Query="not ($fUnifiedMessagingRoleInstalled)" Error="Error" Text="The Unified Messaging server role is not installed on this computer." AlwaysEvaluate="True" Role="UnifiedMessaging"/>
				<Rule Name="fBridgeheadRoleNotInstalled" Query="not ($fBridgeheadRoleInstalled)" Error="Error" Text="The Hub Transport server role is not installed on this computer." AlwaysEvaluate="True" Role="Bridgehead"/>
				<Rule Name="fUpgradeGateway605Block" Query="(substring($szExBPAAppVersion,5,6) &gt;=605.0) and (substring($szGatewayInstallation,5,6) &lt;606.0)" Error="Error" Text="Setup cannot upgrade the Edge Transport server role due to a schema incompatibility. You must remove the Edge Transport role using Control Panel." Role="Gateway"/>
				<Rule Name="fUpgradeBridgehead578Block" Query="(substring($szExBPAAppVersion,5,6) &gt;=605.0) and (substring($szBridgeheadInstallation,5,6) &lt;578.0)" Error="Error" Text="The installed version of Exchange 2010 cannot be upgraded. You must remove the existing Hub Transport role using Control Panel." Role="Bridgehead"/>
				<Rule Name="fUpgradeMailbox556Block" Query="(substring($szExBPAAppVersion,5,6) &gt;=605.0) and (substring($szMailboxInstallation,5,6) &lt;556.0)" Error="Error" Text="The installed version of Exchange 2007 cannot be upgraded. You must remove the existing Mailbox role using Control Panel." Role="Mailbox"/>
			</Setting>
			<Setting Key1="Upgrade Only Server Rules" Task="PrecheckUpgrade">
				<Rule Name="fDelegatedBridgehealFirstSP1upgrade" Query="$fE12SP1orHigher and not($fExOrgAdmin) and count($fE12SP1orHigherHubAlreadyExists)=0" Error="Error" Text="You must be a member of the Organization Management role group to upgrade the first Hub Transport server role in your organization to Exchange Server 2007 Service Pack 1." Role="Bridgehead" AlwaysEvaluate="True"/>
				<Rule Name="fDelegatedUnifiedMessagingFirstSP1upgrade" Query="$fE12SP1orHigher and not($fExOrgAdmin) and count($fE12SP1orHigherUMAlreadyExists)=0" Error="Error" Text="You must be a member of the Organization Management role group to upgrade the first Unified Messaging server role in your organization to Exchange Server 2007 Service Pack 1." Role="UnifiedMessaging" AlwaysEvaluate="True"/>
				<Rule Name="fDelegatedClientAccessFirstSP1upgrade" Query="$fE12SP1orHigher and not($fExOrgAdmin) and count($fE12SP1orHigherCASAlreadyExists)=0" Error="Error" Text="You must be a member of the Organization Management role group to upgrade the first Client Access server role in your organization to Exchange Server 2007 Service Pack 1." Role="ClientAccess" AlwaysEvaluate="True"/>
				<Rule Name="fDelegatedMailboxFirstSP1upgrade" Query="$fE12SP1orHigher and not($fExOrgAdmin) and count($fE12SP1orHigherMBXAlreadyExists)=0" Error="Error" Text="You must be a member of the Organization Management role group to upgrade the first Mailbox server role to Exchange Server 2007 Service Pack 1." Role="Mailbox" AlwaysEvaluate="True"/>
			</Setting>
			<Setting Key1="Disaster Recovery Rules" Task="PrecheckDR">
				<Rule Name="fMemberOfDatabaseAvailabilityGroyp" Query="count($szDatabaseAvailabilityGroup) &gt; 0" Error="Error" Text="Exchange server is a member of a database availability group." AlwaysEvaluate="True"/>
			</Setting>
			<Setting Key1="Uninstall Server Rules" Task="PrecheckUninstall">
				<Rule Name="fCannotUninstallOABServer" Query="count($szOABDN)&gt;0 and count($szOtherPotentialOABServers)&gt;1" Error="Error" Text="This Mailbox server is responsible for generating an Offline Address Book. Removal of the Mailbox role is not permitted" AlwaysEvaluate="True" Role="Mailbox" GUID="d0faeb2a-79d3-4ded-aa40-20f3b187b414"/>

				<!-- // [77729] When removing all roles from a server, Setup removes the computer account from the Exchange Servers USG. For this, we need to pre-req sufficient permissions -->
				<!-- // We condition out AdminTools because this role is virtual and does not effect the Exchange Servers USG -->
				<!-- 114937 The last server must be uninstalled by org admin. -->
				<Rule Name="fCannotUninstallDelegatedServer" Query="count($fServerSetupRole)=count($szServerRoleUnpacked) and (count($szExchangeServers)=1) and not($fHasExchangeServersUSGWritePerms) and ('%SETUPROLES%'!='AdminTools')" Error="Error" Text="You must be a member of the 'Organization Management' role group, or 'Enterprise Admins' group to remove all roles from this computer." GUID="2e85f271-f9d9-436c-b300-9d710b81f621" AlwaysEvaluate="True"/>
				<Rule Name="fCannotUninstallClusterNode" Query="$szClusSvcStartMode=2" Error="Error" Text="This computer is a member of a cluster. It must be removed from the Database Availability Group with the Remove-DatabaseAvailabilityGroupServer task before uninstalling Exchange." AlwaysEvaluate="True" Role="Mailbox" GUID="22cdcab6-17f3-435a-a3a9-ec7dcb636608"/>
			</Setting>
			<Setting Key1="Setup Version">
				<Rule Name="fE12SP1orHigher" Query="version-compare('%EXCHANGEVERSION%', '8.1.0.0') &gt;0 and $fE12"/>
				<Rule Name="fE12" Query="starts-with('%EXCHANGEVERSION%', '8')"/>
				<Rule Name="fE14" Query="starts-with('%EXCHANGEVERSION%', '14')"/>
			</Setting>

			<!-- List parameters passed by setup -->
			<Object Type="If" Name="Setup Parameters" Key1="true()">
				<Setting Key1="string('%PREREQSERVER%')" Key2="PREREQSERVER"/>
				<Setting Key1="string('%EXCHANGEVERSION%')" Key2="EXCHANGEVERSION"/>
				<Setting Key1="string('%SETUPROLES%')" Key2="SETUPROLES"/>
				<Setting Key1="string('%NEWPROVISIONEDSERVERNAME%')" Key2="NEWPROVISIONEDSERVERNAME"/>
				<Setting Key1="string('%REMOVEPROVISIONEDSERVERNAME%')" Key2="REMOVEPROVISIONEDSERVERNAME"/>
				<Setting Key1="string('%TARGETDIR%')" Key2="TARGETDIR"/>
				<Setting Key1="string('%GLOBALCATALOG%')" Key2="GLOBALCATALOG"/>
				<Setting Key1="string('%DOMAINCONTROLLER%')" Key2="DOMAINCONTROLLER"/>
				<Setting Key1="string('%PREPAREDOMAIN%')" Key2="PREPAREDOMAIN"/>
				<Setting Key1="string('%PREPAREORGANIZATION%')" Key2="PREPAREORGANIZATION"/>
				<Setting Key1="string('%PREPARESCHEMA%')" Key2="PREPARESCHEMA"/>
				<Setting Key1="string('%PREPAREALLDOMAINS%')" Key2="PREPAREALLDOMAINS"/>
				<Setting Key1="string('%PREPARELEGACYEXCHANGEPERMISSIONS%')" Key2="PREPARELEGACYEXCHANGEPERMISSIONS"/>
				<Setting Key1="string('%CREATEPUBLICDB%')" Key2="CREATEPUBLICDB"/>
				<Setting Key1="string('%CUSTOMERFEEDBACKENABLED%')" Key2="CUSTOMERFEEDBACKENABLED"/>
				<Setting Key1="string('%IISINSTALLED%')" Key2="IISINSTALLED"/>
				<Setting Key1="string(@Key3)" Key2="ADINITERROR" Key3="%ADINITERROR%"/>
				<Setting Key1="string('%LANGUAGEPACKDIR%')" Key2="LANGUAGEPACKDIR"/>
				<Setting Key1="string('%LANGUAGESAVAILABLETOINSTALL%')" Key2="LANGUAGESAVAILABLETOINSTALL"/>
			</Object>

			<!-- // Setup passes a comma-separated list of roles to BPA. We'll put these into a cache so that we can enumerate the list as individual values -->
			<Object Type="Cache" Name="SetupRoles" Key1="Add" Key2="SetupRoles" Key3="%SETUPROLES%" Key4=",">
				<Setting Key1="SetupRole">
					<Rule Name="fServerSetupRole" Query="$.!='AdminTools'"/>
				</Setting>
			</Object>

			<!-- Retrieve local ExBPA data -->
			<Object Type="Engine" Name="ExBPA Execution">
				<Setting Key1="AppVersion">
					<Rule Name="szExBPAAppVersion" Query="$."/>
				</Setting>
				<Setting Key1="DataFilename"/>
				<Setting Key1="ExecutionDirectory"/>
				<Setting Key1="ExecutionCulture"/>
			</Object>

			<!-- Retrieve the identity of the logged-on user. We use the GetUserNameEx object processor to ensure that the data is correct even when running under a Terminal Services session. -->
			<Object Type="GetUserNameEx" Name="Interactive User">
				<Setting Key1="NameFullyQualifiedDN"/>
				<Setting Key1="NameSamCompatible" Substitution="CURRENTLOGON"/>
				<Setting Key1="NameDisplay"/>
				<Setting Key1="NameDnsDomain"/>

				<!-- Verify that the logged-on user is a member of the local Administrators group. -->
				<Object Type="CheckTokenMembership" Key1="S-1-5-32-544" Name="LocalAdmin">
					<Rule Name="fNotLocalAdmin" Query="count(../Instance[@Name='LocalAdmin'])=0" Error="Error" Text="You must be logged-on as a member of the local Administrators group to continue." S1="%CURRENTLOGON%" GUID="1b304a45-c7c8-420c-8a49-df26a1e27531"/>
				</Object>
			</Object>

			<!-- Test the remote registry service -->
			<Object Type="MonadCommand" Key1="[Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, [System.Net.Dns]::GetHostEntry([System.Net.Dns]::GetHostName()).HostName)">
				<Rule Name="szRemoteRegException" Query="../Exception/@Message" Error="Error" Text="There was a problem accessing the registry on this computer. This may happen if the Remote Registry service is not running. It may also indicate a network problem or that the TCP/IP Netbios Helper service is not running." Role="Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging"/>
			</Object>

			<!-- Retrieve local computer details -->
			<Object Type="GetComputerNameEx" Name="Local computer">
				<Setting Key1="ComputerNameNetBIOS">
					<Rule Name="szComputerNameNetBIOS" Query="$."/>
					<Rule Name="fComputerNameDiscrepancy" Query="lower-case($szComputerNameDnsHostName) != lower-case($.)" Error="Error" Text="The NetBIOS name of the computer does not match the DNS host name. Ensure that the NetBIOS name is not truncated due to the 15-character limit." Role="Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools"/>
				</Setting>
				<Setting Key1="ComputerNameDnsHostname">
					<Rule Name="szComputerNameDnsHostName" Query="$."/>
				</Setting>
				<Setting Key1="ComputerNameDnsDomain">
					<Rule Name="szComputerNameDnsDomain" Query="$."/>
					<!--Verifies that the DNS domain of the server only contains 'A'-'Z', 'a'-'z', '0'-'9', '.' and '-'-->
					<Rule Name="fDNSDomainNameNotValid" Query="not(matches($., '^[A-Za-z0-9\-\.]*$'))" Error="Error" Text="The DNS domain name is invalid. It contains characters other than 'A'-'Z', 'a'-'z', '0'-'9', '.' and '-'." Role="Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="0861e169-9ea6-4a1c-958f-250d035690eb"/>
				</Setting>
				<Setting Key1="ComputerNameDnsFullyQualified">
					<Rule Name="szComputerNameDnsFullyQualified" Query="$."/>
				</Setting>
				<Setting Key1="ComputerNamePhysicalNetBIOS"/>
				<Setting Key1="ComputerNamePhysicalDnsHostname"/>
				<Setting Key1="ComputerNamePhysicalDnsDomain"/>
				<Setting Key1="ComputerNamePhysicalDnsFullyQualified"/>
			</Object>

			<!-- Connect to the well-known reg key to see if the server is responding -->
			<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\Windows NT\CurrentVersion">
				<Setting Key1="CurrentVersion">
					<Rule Name="szWindowsVersion" Query="$."/>
				</Setting>

				<Setting Key1="BuildLabEx">
					<Rule Name="szWindowsBuildAndRevisionNumber" Query="replace($.,'^(\d+\.\d+).*$', '$1')"/>
				</Setting>

				<!-- Find out if the computer is running Service Pack 1 or above -->
				<Setting Key1="CSDVersion">
					<Rule Name="szWindowsSPLevel" Query="$."/>
				</Setting>

				<!-- Get the product name -->
				<Setting Key1="ProductName">
					<Rule Name="szWindowsProductName" Query="$."/>
				</Setting>

				<!-- Discover whether ADAM is already installed -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\Windows\CurrentVersion\ADAM_Shared" Task="PrecheckInstall" Role="Gateway">
					<Setting Key1="InstalledVersion">
						<Rule Name="szADAMVersion" Query="$."/>
						<Rule Name="fOldADAMInstalled" Query="starts-with($., '1.1.3790') and substring($.,10,4) &lt;2075" Error="Error" Text="An older version of Active Directory Application Mode (ADAM) is already installed on this computer. You must update to ADAM Service Pack 1 to continue. This software can be downloaded from http://go.microsoft.com/fwlink/?linkid=71063." GUID="bfaf6dbd-6e45-4d66-854f-9d242f140e0a"/>
					</Setting>
				</Object>

				<!-- // [92929] Check the ADAM service state. The Exchange-created ADAM instance needs to be running otherwise upgrades and uninstalls will fail -->
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_Service" Key4="Name='ADAM_MSExchange'" Task="PrecheckUpgrade,PrecheckUninstall" Role="Gateway">
					<Setting Key1="Started">
						<Rule Name="fADAMSvcStopped" Query="$.='False'" Error="Error" Text="The Active Directory Application Mode (ADAM) service must be started before Setup can continue."/>
					</Setting>
				</Object>

				<!-- // [84799,84800] Check the COM+ Event System service state for Edge and Client Access roles -->
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_Service" Key4="Name='EventSystem'" Task="PrecheckInstall,PrecheckUpgrade,PrecheckUninstall" Role="ClientAccess,Gateway">
					<Setting Key1="Started">
						<Rule Name="fEventSystemStopped" Query="$.='False'" Error="Error" Text="The COM+ Event System service must be started before Setup can continue." GUID="24e8fb0e-1ed7-4d64-9e7b-3996093919f1"/>
					</Setting>
				</Object>

				<!-- // [84800,85290] Check the MSDTC service state for Client Access and Unfied Messaging roles -->
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_Service" Key4="Name='MSDTC'" Task="PrecheckInstall,PrecheckUpgrade,PrecheckUninstall" Role="ClientAccess,UnifiedMessaging">
					<Setting Key1="Started">
						<Rule Name="fMSDTCStopped" Query="$.='False'" Error="Error" Text="The Distributed Transaction Coordinator service must be started before Setup can continue." GUID="280ca216-ea9a-46fc-a23e-137e92527eb4"/>
					</Setting>
				</Object>

				<!-- // [119016] Check whether the Windows Firewall service is stopped on Windows Server 2008 -->
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_Service" Key4="Name='MpsSvc'" Task="PrecheckInstall,PrecheckUpgrade,PrecheckDR,PrecheckUninstall" Role="Mailbox,Bridgehead,Gateway,ClientAccess,UnifiedMessaging">
					<Setting Key1="Started">
						<Rule Name="fMpsSvcStopped" Query="$szWindowsVersion='6.0' and $.='False'" Error="Error" Text="The Windows Firewall service must be started before Setup can continue."/>
					</Setting>
				</Object>

				<!-- // Check the Net.Tcp Port Sharing service for Client Access role. The Net.Tcp Port Sharing service must be enabled (set to Automatic) for the Mailbox Replication Service (MRS) to be deployed successfully. -->
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_Service" Key4="Name='NetTcpPortSharing'" Task="PrecheckInstall,PrecheckUpgrade" Role="ClientAccess">
					<Setting Key1="StartMode">
						<Rule Name="fNetTcpPortSharingSvcNotAuto" Query="$.!='Auto'" Error="Error" Text="The start mode for the Net.Tcp Port Sharing service must be set to Automatic before Setup can continue."/>
					</Setting>
				</Object>
				
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_QuickFixEngineering" Key4="HotFixID='KB951725'" Task="PrecheckInstall,PrecheckUpgrade,PrecheckDR" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,Gateway,AdminTools">
					<Setting Key1="HotFixID">
						<Rule Name="szMmcHotFix" Query="$."/>
					</Setting>
				</Object>

				<!-- Find out if SMTP is installed -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="System\CurrentControlSet\Services\SMTPSVC">
					<Setting Key1="DisplayName"/>
					<Setting Key1="Start">
						<Rule Name="szSMTPSvcStartMode" Query="$."/>
					</Setting>
				</Object>

				<!--Find Global CEIP-->
				<Object Type="MonadCommand" Key1="$a=Get-OrganizationConfig;if($error.Count -gt 0){''}else{if($a -eq $null){''}else{$b=$a.CustomerFeedbackEnabled;if($b -eq $null){''}else{$b.ToString().ToLower()}}}">
					<Setting Key1="__THIS">
						<Rule Name="szGlobalCustomerFeedbackEnabled" Query="$."/>
					</Setting>
				</Object>

				<!-- Verifies that the server component of Exchange is not installed -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\ExchangeServer\v14\Setup">
					<Setting Key1="NewestBuild">
						<Rule Name="iNewestBuild" Query="$."/>
					</Setting>
					<Setting Key1="Services">
						<Rule Name="szServicesPath" Query="$."/>
					</Setting>
					<Setting Key1="MsiInstallPath">
						<Rule Name="szMsiInstallPath" Query="replace($., '\\$', '')"/>
					</Setting>
				</Object>

				<!-- Verifies that IIS Common Files is installed for ClientAccess role administration -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\InetStp">
					<Setting Key1="__KEYPATH">
						<Rule Name="szIISCommonFiles" Query="$."/>
					</Setting>
				</Object>

				<!-- Checks whether IIS 6 components and IIS 7 required components are installed on Longhorn -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\InetStp\Components">
					<Setting Key1="Metabase">
						<Rule Name="szIIS6MetabaseStatus" Query="$."/>
					</Setting>
					<Setting Key1="LegacySnapin">
						<Rule Name="szIIS6ManagementConsoleStatus" Query="$."/>
					</Setting>
					<Setting Key1="HttpCompressionDynamic">
						<Rule Name="szIIS7CompressionDynamic" Query="$."/>
					</Setting>
					<Setting Key1="HttpCompressionStatic">
						<Rule Name="szIIS7CompressionStatic" Query="$."/>
					</Setting>
					<Setting Key1="ManagedCodeAssemblies">
						<Rule Name="szIIS7ManagedCodeAssemblies" Query="$."/>
					</Setting>
					<Setting Key1="ProcessModel">
						<Rule Name="szWASProcessModel" Query="$."/>
					</Setting>
					<Setting Key1="BasicAuthentication">
						<Rule Name="szIIS7BasicAuthentication" Query="$."/>
					</Setting>
					<Setting Key1="WindowsAuthentication">
						<Rule Name="szIIS7WindowAuthentication" Query="$."/>
					</Setting>
					<Setting Key1="DigestAuthentication">
						<Rule Name="szIIS7DigestAuthentication" Query="$."/>
					</Setting>
					<Setting Key1="NetFxExtensibility">
						<Rule Name="szIIS7NetExt" Query="$."/>
					</Setting>
				</Object>

				<!--Check for metabase consistency -->
				<Object Type="Metabase" Key1="%PREREQSERVER%" Key2="LM" Timeout="%300" Role="Mailbox,ClientAccess">
					<Setting Key1="1002" Key2="KeyType">
						<Rule Name="szKeyType" Query="$."/>
					</Setting>
				</Object>
				<Object Type="Metabase" Key1="%PREREQSERVER%" Key2="LM\W3SVC\1\ROOT" Timeout="%300" Role="ClientAccess">
					<Setting Key1="1002" Key2="KeyType">
						<Rule Name="szDefaultWebSiteKeyType" Query="$."/>
					</Setting>
				</Object>
				<Object Type="Metabase" Key1="%PREREQSERVER%" Key2="LM\W3SVC\AppPools" Timeout="%300" Role="ClientAccess">
					<Setting Key1="9040" Key2="Enable32BitAppOnWin64">
						<Rule Name="fIIS32BitMode" Query="$f64bit and $.=1" Error="Error" Text="The Microsoft Internet Information Service is in 32-bit mode and this is a 64-bit computer. The mode must be changed before Setup can continue." GUID="2a3422f7-58c3-4002-b22a-22d405f70ee8"/>
					</Setting>
				</Object>

				<!-- // Enumate the number of installed server roles on this computer -->
				<!-- // NOTE: AdminTools is excluded from this enumeration -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\ExchangeServer\v14" Key4="^(.*Role)$" Key5="OneLevel">
					<Setting Key1="__KEYPATH" Substitution="ROLE" SubstitutionFormat="^.*\\(.*)Role$----$1"/>
					<Setting Key1="UnpackedVersion">
						<Rule Name="szServerRoleUnpacked" Query="$."/>
					</Setting>
					<!-- [E12:69013] Watermark residue equates to a previous Setup failure. If we see this, we need to halt Setup because the user is attempting to perform another action rather than clean up the existing problem -->
					<Setting Key1="Watermark">
						<Rule Name="szInstallWatermark" Query="$." Error="Error" Text="A Setup failure previously occurred while installing the {1} role. Either run Setup again for just this role, or remove the role using Control Panel." S1="%ROLE%" Task="PrecheckInstall,PrecheckDR" GUID="d75e184d-b94b-4c07-b43a-ac5b9f0c4789"/>
					</Setting>
					<!-- [E14:61241] If a role has an Action of 'Uninstall', then it must be among the roles for this uninstall action.  Install and DR is protected by the szInstallWatermark check.  Upgrade is executed for all roles, so should not be affected. -->
					<Setting Key1="Action">
						<Rule Name="fInterruptedUninstallNotContinued" Query="$.='Uninstall' and not(contains('%SETUPROLES%', '%ROLE%') or '%SETUPROLES%'='Global')" Error="Error" Text="A Setup failure previously occurred while uninstalling the {1} role. Uninstall action must include this role." S1="%ROLE%" Task="PrecheckUninstall" GUID="0e6c3aab-47f9-4b16-9cf2-8d0106e60226"/>
					</Setting>
				</Object>

				<!--Check for Gateway installation -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\ExchangeServer\v14" Key4="^(EdgeTransportRole|GatewayRole)$" Key5="OneLevel">
					<Setting Key1="ConfiguredVersion">
						<Rule Name="szGatewayInstallation" Query="$."/>
					</Setting>
					<Setting Key1="UnpackedVersion">
						<Rule Name="fGatewayMinVersionCheck" Query="version-compare($.,'%EXCHANGEVERSION%') &gt;=0 and $.=$szGatewayInstallation" Error="Error" Text="The installed version of Exchange Server 2010 is the same or newer than the version you are attempting to install." Role="Gateway" Task="PrecheckInstall"/>
						<Rule Name="fGatewayUpgrade605Block" Query="version-compare($., '8.0.605.11') &lt;0 and version-compare('%EXCHANGEVERSION%', '8.0.606.0') &gt;=0" Error="Error" Text="The installed version of Exchange 2010 cannot be upgraded. You must remove the existing Edge Transport server role using Control Panel." Role="Gateway" Task="PrecheckUpgrade"/>
						<Rule Name="fGatewayUpgradeMinVersionBlock" Query="version-compare($.,'%EXCHANGEVERSION%') &gt;0 and $.=$szGatewayInstallation" Error="Error" Text="The installed version of Exchange Server 2010 is newer than the version you are attempting to upgrade to." Role="Gateway" Task="PrecheckUpgrade"/>
					</Setting>
				</Object>

				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\ExchangeServer\v14\MailBoxRole">
					<Setting Key1="ConfiguredVersion">
						<Rule Name="szMailboxInstallation" Query="$."/>
					</Setting>
					<Setting Key1="UnpackedVersion">
						<Rule Name="fMailboxPreviousBuild" Query="version-compare($.,'%EXCHANGEVERSION%') &lt;0"/>
						<Rule Name="fMailboxMinVersionCheck" Query="version-compare($.,'%EXCHANGEVERSION%') &gt;=0 and not($fPreviousBuildDetected) and $.=$szMailboxInstallation" Error="Error" Text="The installed version of Exchange Server 2010 is the same or newer than the version you are attempting to install." Role="Mailbox" Task="PrecheckInstall"/>
						<Rule Name="fMailboxUpgradeMinVersionBlock" Query="version-compare($.,'%EXCHANGEVERSION%') &gt;0 and $.=$szMailboxInstallation" Error="Error" Text="The installed version of Exchange Server 2010 is the newer than the version you are attempting to upgrade to." Role="Mailbox" Task="PrecheckUpgrade"/>
					</Setting>
				</Object>

				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\ExchangeServer\v14\UnifiedMessagingRole">
					<Setting Key1="ConfiguredVersion">
						<Rule Name="szUnifiedMessagingInstallation" Query="$."/>
					</Setting>
					<Setting Key1="UnpackedVersion">
						<Rule Name="fUnifiedMessagingPreviousBuild" Query="version-compare($.,'%EXCHANGEVERSION%') &lt;0"/>
						<Rule Name="fUnifiedMessagingMinVersionCheck" Query="version-compare($.,'%EXCHANGEVERSION%') &gt;=0 and not($fPreviousBuildDetected) and $.=$szUnifiedMessagingInstallation" Error="Error" Text="The installed version of Exchange Server 2010 is the same or newer than the version you are attempting to install." Role="UnifiedMessaging" Task="PrecheckInstall"/>
						<Rule Name="fUnifiedMessagingUpgradeMinVersionBlock" Query="version-compare($.,'%EXCHANGEVERSION%') &gt;0 and $.=$szUnifiedMessagingInstallation" Error="Error" Text="The installed version of Exchange Server 2010 is the newer than the version you are attempting to upgrade to." Role="UnifiedMessaging" Task="PrecheckUpgrade"/>
					</Setting>
				</Object>

				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\ExchangeServer\v14\ClientAccessRole">
					<Setting Key1="ConfiguredVersion">
						<Rule Name="szClientAccessInstallation" Query="$."/>
					</Setting>
				</Object>

				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\ExchangeServer\v14" Key4="^(BridgeheadRole|HubTransportRole)$" Key5="OneLevel">
					<Setting Key1="ConfiguredVersion">
						<Rule Name="szBridgeheadInstallation" Query="$."/>
					</Setting>
					<Setting Key1="UnpackedVersion">
						<Rule Name="fBridgeheadPreviousBuild" Query="version-compare($.,'%EXCHANGEVERSION%') &lt;0"/>
						<Rule Name="fBridgeheadMinVersionCheck" Query="version-compare($.,'%EXCHANGEVERSION%') &gt;=0 and not($fPreviousBuildDetected) and $.=$szBridgeheadInstallation" Error="Error" Text="The installed version of Exchange Server 2010 is the same or newer than the version you are attempting to install." Role="Bridgehead" Task="PrecheckInstall"/>
						<Rule Name="fBridgeheadUpgrade605Block" Query="version-compare($., '8.0.605.11') &lt;0 and version-compare('%EXCHANGEVERSION%', '8.0.606.0') &gt;=0" Error="Error" Text="The installed version of Exchange 2007 cannot be upgraded. You must remove the existing Hub Transport server role using Control Panel." Role="Bridgehead" Task="PrecheckUpgrade"/>
						<Rule Name="fBridgeheadUpgradeMinVersionBlock" Query="version-compare($.,'%EXCHANGEVERSION%') &gt;0 and $.=$szBridgeheadInstallation" Error="Error" Text="The installed version of Exchange Server 2007 is the newer than the version you are attempting to upgrade to." Role="Bridgehead" Task="PrecheckUpgrade"/>
					</Setting>
				</Object>

				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\ExchangeServer\v14\AdminTools">
					<Setting Key1="__KEYPATH">
						<Rule Name="szAdminToolsInstallation" Query="$."/>
					</Setting>
				</Object>

				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\Exchange\v8.0" Key4="^(BridgeheadRole|HubTransportRole|MailboxRole|UnifiedMessagingRole|ClientAccessRole|GatewayRole)$" Key5="OneLevel">
					<Setting Key1="UnpackedVersion">
						<Rule Name="fExchange2010AnyOnExchange2007Server" Query="$." Error="Error" Text="Exchange Server 2010 cannot be installed on a server that has an Exchange Server 2007 server role installed." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,Gateway,AdminTools" Task="PrecheckInstall"/>
					</Setting>
				</Object>

				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\Exchange\v8.0" Key4="^AdminTools$" Key5="OneLevel">
					<Setting Key1="UnpackedVersion">
						<Rule Name="fExchange2010ServerOnExchange2007AdminTools" Query="$." Error="Error" Text="An Exchange Server 2010 server role cannot be installed on a computer that has Exchange Server 2007 management tools installed. Only Exchange Server 2010 management tools can be installed." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,Gateway" Task="PrecheckInstall"/>
					</Setting>
				</Object>

				<!-- Check for 64-bit Operating System -->
				<Object Type="WMI" Name="DeviceID" Key1="%PREREQSERVER%" Key3="Win32_Processor">
					<Setting Key1="AddressWidth">
						<Rule Name="f32bit" Query="$.=32"/>
						<Rule Name="f64bit" Query="$.=64"/>
					</Setting>
				</Object>

				<!-- Pending updates check. Ensuring that there are no pending reboots before we proceed with our installation. -->
				<!-- Refer http://technet.microsoft.com/en-us/library/bb418921.aspx -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="System\CurrentControlSet\Control\Session Manager">
					<Setting Key1="PendingFileRenameOperations">
						<Rule Name="szPendingFileRenames" Query="$."/>
					</Setting>
				</Object>
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\Updates\UpdateExeVolatile">
					<Setting Key1="Flags">
						<Rule Name="fUpdateNeedsReboot" Query="$.!=0"/>
					</Setting>
				</Object>

				<!-- Hotfix checks -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\Windows\CurrentVersion">
					<Setting Key1="ProgramFilesDir" Substitution="PROGRAMFILEPATH" SubstitutionFormat="\\----\\"/>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%PROGRAMFILEPATH%\\Common Files\\System\\Ole DB\\msdaps.dll'">
						<Setting Key1="Version">
							<Rule Name="szFileVersionMSDAPS" Query="replace($.,'^(\d+\.\d+\.\d+\.\d+).*$', '$1')"/>
						</Setting>
					</Object>
				</Object>

				<!-- // [105655] Check the existence of KB928388 -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\Windows NT\CurrentVersion\Time Zones\Pacific Standard Time">
					<Setting Key1="TZI">
						<Rule Name="fDST2007Enabled" Query="upper-case($.)='E001000000000000C4FFFFFF00000B0000000100020000000000000000000300000002000200000000000000'"/>
					</Setting>
					<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\Windows NT\CurrentVersion\Time Zones\Pacific Standard Time\Dynamic DST">
						<Setting Key1="__KEYPATH">
							<Rule Name="szDynamicDSTKey" Query="$."/>
						</Setting>
					</Object>
				</Object>

				<!-- // Check the installed version of the .NET Framework -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\.NETFramework">
					<Setting Key1="InstallRoot" Substitution="FRAMEWORKPATH" SubstitutionFormat="\\----\\"/>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%FRAMEWORKPATH%v2.0.50727\\mscorlib.dll'">
						<Setting Key1="Version">
							<Rule Name="szFileVersionMSCorLib" Query="replace($.,'^(\d+\.\d+\.\d+\.\d+).*$', '$1')"/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%FRAMEWORKPATH%v2.0.50727\\mscorwks.dll'">
						<Setting Key1="Version">
							<Rule Name="szFileVersionMSCorWks" Query="replace($.,'^(\d+\.\d+\.\d+\.\d+).*$', '$1')"/>
						</Setting>
					</Object>
				</Object>

				<!-- // Check whether HTTP Activation is installed -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\NET Framework Setup\NDP\v3.0\Setup\Windows Communication Foundation\HTTPActivation">
					<Setting Key1="__KEYPATH">
						<Rule Name="szHTTPActivation" Query="$."/>
					</Setting>
				</Object>

				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\Microsoft\Windows NT\CurrentVersion">
					<Setting Key1="SystemRoot" Substitution="WINDOWSPATH" SubstitutionFormat="\\----\\"/>
					<!--// [108587] Check the existence of KB928368 -->
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\System32\\ntoskrnl.exe'">
						<Setting Key1="Version">
							<Rule Name="szFileVersionNtoskrnl" Query="replace($.,'^(\d+\.\d+\.\d+\.\d+).*$', '$1')"/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\system32\\msxml6.dll'" Role="UnifiedMessaging">
						<Setting Key1="Version">
							<Rule Name="szFileVersionMSXML6" Query="$."/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\system32\\wmspdmod.dll'" Role="UnifiedMessaging">
						<Setting Key1="Version">
							<Rule Name="szFileVersionWmspdmod" Query="$."/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\system32\\wmspdmoe.dll'" Role="UnifiedMessaging">
						<Setting Key1="Version">
							<Rule Name="szFileVersionWmspdmoe" Query="$."/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\system32\\wmvcore.dll'" Role="UnifiedMessaging">
						<Setting Key1="Version">
							<Rule Name="szFileVersionWmvcore" Query="$."/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\system32\\ldifde.exe'">
						<Setting Key1="Version">
							<Rule Name="szFileVersionLdifde" Query="$."/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\system32\\drivers\\tcpip.sys'">
						<Setting Key1="Version">
							<Rule Name="szFileVersionTCPIPSYS" Query="$."/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\system32\\drivers\\mountmgr.sys'">
						<Setting Key1="Version">
							<Rule Name="szFileVersionMountmgr" Query="$."/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\system32\\inetsrv\\adsiis.dll'" Role="ClientAccess,Mailbox">
						<Setting Key1="Version">
							<Rule Name="szFileVersionAdsiis" Query="$."/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\system32\\inetsrv\\iisext.dll'" Role="ClientAccess,Mailbox">
						<Setting Key1="Version">
							<Rule Name="szFileVersionIisext" Query="$."/>
						</Setting>
					</Object>
					<!--// [PS 73646] Check the existence of KB950888. Version of msdrm.dll >= 6.0.6001.22144 -->
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\System32\\msdrm.dll'">
						<Setting Key1="Version">
							<Rule Name="szFileVersionMsdrm" Query="replace($.,'^(\d+\.\d+\.\d+\.\d+).*$', '$1')"/>
						</Setting>
					</Object>
					<!--Check the existence of KB958178. Version of lbservice.dll >= 6.0.6001.22276 -->
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="name = '%WINDOWSPATH%\\System32\\RpcProxy\\lbservice.dll'">
						<Setting Key1="Version">
							<Rule Name="szFileVersionLbservice" Query="replace($.,'^(\d+\.\d+\.\d+\.\d+).*$', '$1')"/>
						</Setting>
					</Object>
				</Object>

				<!-- Find out if W3SVC is installed -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="System\CurrentControlSet\Services\W3SVC">
					<Setting Key1="Start">
						<Rule Name="szW3SVCStartMode" Query="$."/>
					</Setting>
				</Object>

				<!-- Find out if NNTPSVC is installed -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="System\CurrentControlSet\Services\NntpSvc">
					<Setting Key1="Start">
						<Rule Name="szNNTPSvcStartMode" Query="$."/>
					</Setting>
				</Object>

				<!-- Find out if Microsoft Filter Pack is installed -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Classes\CLSID\{5A98B233-3C59-4B31-944C-0E560D85E6C3}\InprocServer32">
					<Setting Key1="__KEYPATH">
						<Rule Name="szMSFilterPack" Query="$."/>
					</Setting>
				</Object>

				<!-- // [91227] Verify that Setup is using the same DC if DSAccess has been hard-coded -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="System\CurrentControlSet\Services\MSExchange ADAccess\Instance0">
					<Setting Key1="ConfigDCHostName">
						<Rule Name="fConfigDCHostNameMismatch" Query="$.!='' and lower-case($.) != lower-case('%DOMAINCONTROLLER%')" Error="Error" Text="Setup cannot use domain controller '{0}' because an override is set in the registry. Run Setup again, and specify '/DomainController:{1}'." S0="%DOMAINCONTROLLER%" P1="$." GUID="12e99289-15ea-4c77-be70-77ee4b71d2a7"/>
					</Setting>
				</Object>

				<!-- // Enumerate cluster information -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="System\CurrentControlSet\Services\ClusSvc">
					<Setting Key1="Start" Substitution="STARTMODE">
						<Rule Name="szClusSvcStartMode" Query="$."/>
					</Setting>

				</Object>

				<!-- Enumerate network information -->
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_NetworkAdapter" Key4="AdapterTypeID='0'" Task="PrecheckInstall,PrecheckUpgrade,PrecheckDR">
					<Setting Key1="Caption" Substitution="NICCAPTION"/>
					<Object Type="WMI" Name="Caption" Key1="%PREREQSERVER%" Key3="Win32_NetworkAdapterConfiguration" Key4="Caption='%NICCAPTION%'">
						<Setting Key1="DHCPEnabled">
							<Rule Name="fDHCPEnabled" Query="$.='True'"/>
						</Setting>
						<Setting Key1="IPAddress">
							<Rule Name="szIPv4Address" Query="$.[matches(., '^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*$')]"/>
							<Rule Name="fIPv6Enabled" Query="count($.[contains(., ':')]) &gt;0"/>
						</Setting>
						<Setting Key1="DNSServerSearchOrder" Substitution="DNSADDRESS" SubstitutionFormat="^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*$----$1;"/>
						<Object Type="Cache" Name="DNSOrder" Key1="Add" Key2="DNSAddr-%PREREQSERVER%" Key3="%DNSADDRESS%" Display="Hide">
							<Setting Key1="DNSAddr" Substitution="PRIMARYDNS" SubstitutionFormat="^(.*?);.*----$1"/>
							<Object Type="Port" Name="Primary DNS Alive" Key1="%PRIMARYDNS%">
								<Setting Key1="53">
									<Rule Name="fPrimaryDNSTestFailed" Query="not ($.[2]='53 Available' or $fIPv6Enabled)" Error="Warning" Text="Setup cannot contact the primary DNS server ({3}) using TCP port 53. Check that the IP address of the DNS server is correct and that the DNS server is reachable." S3="%PRIMARYDNS%" GUID="2fcc99e5-6c19-4ad0-8c7a-7b77dbc3fe1b" AlwaysEvaluate="True"/>
								</Setting>
							</Object>
							<Object Type="GetComputerNameEx" Name="Local computer">
								<Setting Key1="ComputerNameDnsFullyQualified" Substitution="LOCALFQDN"/>
								<Object Type="DNS" Name="DNS" Key1="%PRIMARYDNS%" Key2="%LOCALFQDN%">
									<Setting Key1="A">
										<Rule Name="fHostRecordMissing" Query="$.[4]='DNS Query Result = '" Error="Warning" Text="Setup cannot verify that the 'Host' (A) record for this computer exists within the DNS database on server {3}." S3="%PRIMARYDNS%" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="ecf66997-d80e-4d0f-9e6a-1a942c92a8d9"/>
									</Setting>
									<Object Type="Cache" Name="DNSOrder" Key1="Delete" Key2="DNSAddr-%PREREQSERVER%" Display="Hide"/>
								</Object>
							</Object>
						</Object>
					</Object>
				</Object>

				<!-- Find out if we're going to hit a problem with upgrades of the search service on Mailbox servers -->
				<Object Type="MonadCommand" Key1="test-MSFTEInstall" Task="PrecheckUpgrade" Role="Mailbox">
					<Setting Key1="MSFTEInstallUserName" Substitution="MSFTEUSER"/>
					<Setting Key1="CanCurrentUserUpgrade">
						<Rule Name="fMSFTEUpgradeIssue" Query="$.='False'" Error="Error" Text="The Microsoft Search service cannot be upgraded by the logged-on user. Please logon as user '{1}' and retry the upgrade operation." S1="%MSFTEUSER%"/>
					</Setting>
				</Object>

				<!-- // [122242] Check whether the msExchResourcePropertySchema value is invalid -->
				<Object Type="MonadCommand" Key1="$rsCfg = Get-ResourceConfig; Set-ResourceConfig -ResourcePropertySchema $rsCfg.ResourcePropertySchema -whatif" Task="PrecheckUpgrade" Role="Global">
					<Rule Name="fResourcePropertySchemaException" Query="../Exception/@Message" Error="Error" Text="Setup cannot continue with the upgrade because the resource property contains invalid data: {1}" P1="../Exception/@Message"/>
				</Object>

				<!-- Find out if there are any messages in the queues -->
				<Object Type="MonadCommand" Key1="get-Queue" Task="PrecheckUninstall" Role="Bridgehead,Gateway">
					<Setting Key1="Identity" Substitution="QUEUENAME"/>
					<Setting Key1="MessageCount">
						<Rule Name="fMessagesInQueue" Query="$. &gt;0" Error="Warning" Text="There are {9} messages waiting in the '{1}' queue. Proceeding with the removal of the server role may result in data loss." S1="%QUEUENAME%" P9="$." AlwaysEvaluate="True" Role="Bridgehead,Gateway" GUID="b9601fab-3a58-4b55-8f07-cf874dd122a2"/>
					</Setting>
				</Object>

				<!--Check whether Unified Messaging voicemail folder is empty on upgrade-->
				<Object Type="If" Key1="true()" Task="PrecheckUpgrade" Role="UnifiedMessaging">
					<Setting Key1="concat(string('%TARGETDIR%'),'\unifiedmessaging\voicemail')" Substitution="VOICEMAILPATH"/>
					<Object Type="MonadCommand" Key1="@(get-childitem -name -force '%VOICEMAILPATH%').Count">
						<Setting Key1="__THIS">
							<Rule Name="fVoiceMessagesInQueue" Query="$. &gt; 0" Error="Error" Text="The Unified Messaging voice mail folder '{1}' isn't empty. This folder must be empty before upgrade can proceed." S1="%VOICEMAILPATH%"/>
						</Setting>
					</Object>
				</Object>

				<!-- Test ADAM port availability for Gateway installs -->
				<Object Type="Port" Name="ADAM Port" Key1="%PREREQSERVER%" Task="PrecheckInstall" Role="Gateway">
					<Setting Key1="%ADAMPORT%">
						<Rule Name="fADAMPortAlreadyInUse" Query="not(contains($.[2],'Not Available'))" Error="Error" Text="Active Directory Application Mode (ADAM) service instance installation cannot proceed. Port {7} is already in use." S7="%ADAMPORT%" GUID="00dbc109-989b-4894-a36d-017e46fcc2ea"/>
					</Setting>
					<Object Type="Port" Name="ADAM SSL Port" Key1="%PREREQSERVER%">
						<Setting Key1="%ADAMSSLPORT%">
							<Rule Name="fADAMSSLPortAlreadyInUse" Query="not(contains($.[2],'Not Available'))" Error="Error" Text="Active Directory Application Mode (ADAM) service instance installation cannot proceed. SSL port {7} is already in use." S7="%ADAMSSLPORT%" GUID="00dbc109-989b-4894-a36d-017e46fcc2ea"/>
						</Setting>
					</Object>
				</Object>

				<!-- Test the target folder to see if it's compressed -->
				<Object Type="If" Name="Edge Target Path" Key1="true()" Task="PrecheckInstall,PrecheckUpgrade" Role="Gateway">
					<Setting Key1="string('%TARGETDIR%')" Key2="1" Substitution="TARGETPATH" Format="^(.:\\.*?)\\.*$----$1" SubstitutionFormat="\\----\\"/>
					<Setting Key1="string('%TARGETDIR%')" Key2="2" Substitution="TARGETDISPLAY" SubstitutionFormat="^(.:\\.*?)\\.*$----$1"/>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_Directory" Key4="name='%TARGETPATH%'">
						<Setting Key1="Compressed">
							<Rule Name="fTargetPathCompressed" Query="$.='True'" Error="Error" Text="The target path is compressed. Disable compression for '{5}' and attempt the installation process again." S5="%TARGETDISPLAY%" GUID="ed7d0f7f-2629-4952-9f2e-49f5f68f9048"/>
						</Setting>
					</Object>
				</Object>

				<!-- Test for an existing ADAM directory. It's not possible to clean install into an existing directory -->
				<Object Type="Registry" Key1="%PREREQSERVER%" Key3="SOFTWARE\Microsoft\ExchangeServer\v14\EdgeTransportRole\AdamSettings\MsExchange" Role="Gateway" Task="PrecheckInstall">
					<Setting Key1="DataFilesPath" Substitution="ADAMDATAPATH" SubstitutionFormat="\\----\\">
						<Rule Name="fADAMDataPathExists" Query="count($szADAMDataPath)&gt;0" Error="Error" Text="An existing installation of Active Directory Application Mode (ADAM) was found in '{5}'. This folder must be removed before Setup can continue." P5="$szADAMDataPath" GUID="49e6c170-7d1c-4cda-b118-0c454d6277eb"/>
					</Setting>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_Directory" Key4="name='%ADAMDATAPATH%'">
						<Setting Key1="Name">
							<Rule Name="szADAMDataPath" Query="$."/>
						</Setting>
					</Object>
				</Object>

				<!-- Test the target folder to see if old database files exist in the first and/or second storage groups -->
				<Object Type="Group" Name="Mailbox Target Path" Task="PrecheckInstall" Role="Mailbox">
					<Setting Key1="Existing file check">
						<Rule Name="fFirstSGFilesExist" Query="count($szFirstSGFiles) &gt;0" Error="Error" Text="Database files are present in '{5}'. These must be removed before Setup can continue." S5="%TARGETDIR%\Mailbox\First Storage Group" GUID="3c7fec71-7cd2-4bcd-b4be-814b8d19bcb4"/>
						<Rule Name="fSecondSGFilesExist" Query="count($szSecondSGFiles) &gt;0" Error="Error" Text="Database files are present in '{5}'. These must be removed before Setup can continue." S5="%TARGETDIR%\Mailbox\Second Storage Group" GUID="3c7fec71-7cd2-4bcd-b4be-814b8d19bcb4"/>
					</Setting>
					<Object Type="File" Key1="%PREREQSERVER%" Key2="%TARGETDIR%\Mailbox\First Storage Group" Key3="*.*" Key5="All">
						<Setting Key1="FullName" Key2="*.*">
							<Rule Name="szFirstSGFiles" Query="$."/>
						</Setting>
					</Object>

					<!-- Only test the Second Storage Group if the Mailbox role is being installed with a Public Folder database -->
					<Object Type="If" Key1="'%CREATEPUBLICDB%'='true'">
						<Object Type="File" Key1="%PREREQSERVER%" Key2="%TARGETDIR%\Mailbox\Second Storage Group" Key3="*.*" Key5="All">
							<Setting Key1="FullName" Key2="*.*">
								<Rule Name="szSecondSGFiles" Query="$."/>
							</Setting>
						</Object>
					</Object>
				</Object>

				<!-- // [91374] Find out if an Edge Subscription still exists -->
				<Object Type="MonadCommand" Key1="get-EdgeSubscription" Task="PrecheckUninstall" Role="Gateway">
					<Setting Key1="Identity">
						<Rule Name="fEdgeSubscriptionExists" Query="upper-case($.)=upper-case($szComputerNameNetBIOS)" Error="Error" Text="The Edge Subscription needs to be removed before uninstalling the Edge Transport role from this server. Run 'Remove-EdgeSubscription' from the Exchange Management Shell." GUID="a72e3f1f-3d72-4869-9790-e26b59955844"/>
					</Setting>
				</Object>

				<!-- // [104025] Verify that help file is not opened by HH.exe before allowing upgrade to proceed -->
				<Object Type="If" Key1="'%TARGETDIR%'!=''" Task="PrecheckUpgrade" Role="Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools">
					<Setting Key1="string('%TARGETDIR%')" Substitution="TARGETPATH" SubstitutionFormat="\\----\\">
						<Rule Name="fHelpFileOpened" Query="(count($szExchHelpFile) &gt; 0) and (count($szExchHelpAccessMask)=0 or $szExchHelpAccessMask='')" Error="Error" Text="Setup cannot continue with upgrade because '{1}' is open. Close the file and restart setup." S1="%TARGETDIR%\bin\ExchHelp.chm" GUID="ec3e58ba-25e6-4857-a1ed-e7089a79e3e9" AlwaysEvaluate="True"/>
					</Setting>
					<Object Type="File" Key1="%PREREQSERVER%" Key2="%TARGETDIR%\Bin" Key3="ExchHelp.chm" Key5="All">
						<Setting Key1="FullName" Key2="*.*">
							<Rule Name="szExchHelpFile" Query="$."/>
						</Setting>
					</Object>
					<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_DataFile" Key4="name = '%TARGETPATH%\\bin\\ExchHelp.chm'">
						<Setting Key1="AccessMask">
							<Rule Name="szExchHelpAccessMask" Query="$."/>
						</Setting>
					</Object>
				</Object>
				<!--// Get the remote registry service process id. RemoteRegistry service is hosted by svchost, hence we look for the svchost process which loads the remote registry service dll regsvc.dll-->
				<Object Type="MonadCommand" Key1="get-process | where {$_.ProcessName -like 'svchost'} | where{$_.Modules | where {$_.ModuleName -like 'regsvc.dll*'}}" Task="PrecheckUpgrade,PrecheckUninstall" Role="Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools">
					<Setting Key1="Id">
						<Rule Name="szRemoteRegistryServiceId" Query="$."/>
					</Setting>
				</Object>
				<!-- // Verify that all non-core Exchange-related processes are closed before allowing upgrade to proceed -->
				<!-- // Use Monad to retrieve the list of processes that have Exchange files open -->
				<!-- // We ignore all core Exchange processes, IIS, Remote Registry, WMI and MOM because Setup will close these automatically -->
				<Object Type="MonadCommand" Key1="get-process | where { $_.ProcessName -notmatch '^(Setup.com|Setup|Exsetup|ExSetupUI|WmiPrvSE|MOM|MonitoringHost|w3wp|msftesql|msftefd|EdgeTransport|mad|store|SpeechService|umservice|UMWorkerProcess|TranscodingService|SESWorker|ExBPA|ExFBA|Microsoft\.Exchange\..*|MSExchange.*)$' } | where { $_.Modules | where {$_.FileName -like '%TARGETDIR%*'} }" Task="PrecheckUpgrade,PrecheckUninstall" Role="Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools">
					<Setting Key1="ProcessName">
						<Rule Task="PrecheckUpgrade" Name="fProcessNeedsToBeClosedOnUpgrade" Query="$. and ($szOpenProcessId != $szRemoteRegistryServiceId)" Error="Error" Text="Setup cannot continue with the upgrade because the '{1}' ({7}) process (ID: {9}) has open files. Close the process and restart Setup." P1="$." P7="$szOpenProcessTitle" P9="$szOpenProcessId"/>
						<Rule Task="PrecheckUninstall" Name="fProcessNeedsToBeClosedOnUninstall" Query="$. and ($szOpenProcessId != $szRemoteRegistryServiceId)" Error="Error" Text="Setup cannot continue with the uninstall because the '{1}' ({7}) process (ID: {9}) has open files. Close the process and restart Setup." P1="$." P7="$szOpenProcessTitle" P9="$szOpenProcessId"/>
					</Setting>
					<Setting Key1="Id">
						<Rule Name="szOpenProcessId" Query="$."/>
					</Setting>
					<Setting Key1="MainWindowTitle">
						<Rule Name="szOpenProcessTitle" Query="$."/>
					</Setting>
					<!-- // Collect module information because it lists out each binary in use by this process. This is useful for debugging -->
					<Setting Key1="Modules"/>
				</Object>

				<!-- // [111528] Verify that Microsoft.Exchange.Management.SnapIn.Esm.dll is not loaded by any process -->
				<!-- // When fProcessNeedsToBeClosed already fires for the dll, this rule does not fire -->
				<Object Type="MonadCommand" Key1="get-process | where { $_.Modules | where {$_.FileName -like '*\Microsoft.Exchange.Management.SnapIn.Esm.dll' } }" Task="PrecheckUpgrade" Role="Mailbox,Gateway,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools">
					<Setting Key1="ProcessName">
						<Rule Name="fEMCLoaded" Query="$." Error="Error" Text="Setup cannot continue with the upgrade because the '{1}' ({7}) process (ID: {9}) has '{3}' loaded. Close the process and restart setup." P1="$." S3="Microsoft.Exchange.Management.SnapIn.Esm.dll" P7="$szEMCLoadProcessId" P9="$szEMCLoadProcessTitle" GUID="f0d3f291-5a52-43ea-9121-24aa7cd0c30e"/>
					</Setting>
					<Setting Key1="Id">
						<Rule Name="szEMCLoadProcessId" Query="$."/>
					</Setting>
					<Setting Key1="MainWindowTitle">
						<Rule Name="szEMCLoadProcessTitle" Query="$."/>
					</Setting>
				</Object>

				<!-- // [112592] Forefront service checks -->
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_Processor" Task="PrecheckUpgrade" Range="1">
					<Setting Key1="AddressWidth" Substitution="ADDRESSWIDTH"/>
					<Object Type="If" Key1="true()">
						<Setting Key1="if('%ADDRESSWIDTH%'='64', 'Wow6432Node\', '')" Substitution="REGKEYADD"/>
						<Object Type="Registry" Key1="%PREREQSERVER%" Key3="Software\%REGKEYADD%Microsoft\Forefront Server Security\Exchange Server">
							<Setting Key1="InstalledPath" Substitution="FOREFRONTPATH" SubstitutionFormat="\\----\\">
								<Rule Name="fForefrontRTMInstalled" Query="$.!='' and starts-with($szFileVersionFSCController, '10.') and version-compare($szFileVersionFSCController, '10.0.566.0') &lt;=0" Error="Error" Text="Setup cannot continue with the upgrade because {3} 10.0 was detected. {3} 10.0 needs to be upgraded to a compatible version of {3} first and its services need to be disabled to upgrade Exchange Server 2007." S3="Forefront Security 2010 for Exchange Server" GUID="6dfac22b-581a-4e10-938b-5f2498ead01d"/>
								<Rule Name="fForefrontSP1orLaterRunning" Query="$.!='' and starts-with($szFileVersionFSCController, '10.') and version-compare($szFileVersionFSCController, '10.0.566.0') &gt;0 and count($szFSCStartedService) &gt;0" Error="Error" Text="Setup has detected that {3} is running on the server and has to be disabled before Exchange Server 2010 is upgraded. Please refer to your {3} User Guide for the steps to disable Forefront and restart setup after Forefront is disabled." S3="Forefront Security 2010 for Exchange Server" GUID="41542f5d-87e4-48f6-b237-005264cbe640"/>
							</Setting>
							<Object Type="WMI" Key1="%PREREQSERVER%" Key3="CIM_Datafile" Key4="Name = '%FOREFRONTPATH%\\FSCController.exe'">
								<Setting Key1="Version">
									<Rule Name="szFileVersionFSCController" Query="replace($.,'^(\d+\.\d+\.\d+\.\d+).*$', '$1')"/>
								</Setting>
							</Object>
							<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_Service" Key4="(Name='FSCController' or Name='FSCMonitor' or Name='FSEIMC' or Name='FSEMailPickup') and Started='True'">
								<Setting Key1="Name">
									<Rule Name="szFSCStartedService" Query="$."/>
								</Setting>
							</Object>
						</Object>
					</Object>
				</Object>

				<!-- // Check the domain controller that Setup is using (or has been told to use) -->
				<!-- // Determine the Active Directory site name for the domain controller -->
				<!-- // If Setup uses an out-of-site domain controller, then it will run into replication issues midway through install -->
				<!-- // For this reason, we need to insist that the domain controller is in the same site as this computer -->
				<Object Type="DsGet" Key1="SiteName" Key2="%DOMAINCONTROLLER%" Task="PrecheckInstall,PrecheckUpgrade,PrecheckDR">
					<Setting Key1="SiteName">
						<Rule Name="fDomainControllerIsOutOfSite" Query="lower-case($szSiteName)!=lower-case($.) and ($szSiteName!='') and ($.!='')" Error="Error" Text="Setup cannot use domain controller '{2}' because it belongs to Active Directory site '{1}'. Setup must use a domain controller in the same site as this computer ({0})." P0="$szSiteName" P1="$." S2="%DOMAINCONTROLLER%"/>
					</Setting>

					<!-- // We need to make sure that the chosen domain controller is not running Windows 2000 as this will cause Setup failures -->
					<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Name="cn">
						<Setting Key1="configurationNamingContext" Substitution="CONFIGDN"/>
						<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Sites,%CONFIGDN%" Key3="(&amp;(objectClass=server)(|(cn=%DOMAINCONTROLLER%)(dNSHostName=%DOMAINCONTROLLER%)))" Key4="Subtree">
							<Setting Key1="serverReference" Substitution="DOMAINCONTROLLERREF"/>
							<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%DOMAINCONTROLLERREF%">
								<Setting Key1="operatingSystemVersion">
									<Rule Name="fDomainControllerIsWin2000" Query="starts-with($., '5.0')" Error="Error" Text="Setup cannot use domain controller '{2}' because it is running Windows 2000 Server. Use the /DomainController command-line switch to specify a domain controller that is running Windows Server 2003 or later." S2="%DOMAINCONTROLLER%"/>
								</Setting>
							</Object>
						</Object>
					</Object>
				</Object>

				<!-- Find out more about the Active Directory domain where this computer resides -->
				<Object Type="Group" Name="Local Domain Check" Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools">
					<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Name="cn">
						<Setting Key1="configurationNamingContext" Substitution="CONFIGDN">
							<Rule Name="szConfigurationNamingContext" Query="$."/>
						</Setting>
						<Setting Key1="rootDomainNamingContext" Substitution="ROOTDN">
							<Rule Name="szRootDomainDN" Query="$."/>
						</Setting>

						<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Partitions,%CONFIGDN%">
							<Setting Key1="msDS-Behavior-Version">
								<Rule Name="fForestLevelNotWin2003Native" Query="$. &lt; 2" Error="Error" Text="The forest functional level of the current Active Directory forest is not Windows Server 2003 native or later. To install Exchange Server 2010, the forest functional level must be at least Windows Server 2003 native." Role="Global"/>
							</Setting>
						</Object>

						<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_ComputerSystem">
							<Setting Key1="Domain" Substitution="COMPUTERDOMAIN"/>

							<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Partitions,%CONFIGDN%" Key3="(&amp;(dnsRoot=%COMPUTERDOMAIN%)(systemFlags=3))" Key4="OneLevel">
								<!-- Check to make sure that the user can write to the domain container -->
								<Setting Key1="nCName" Substitution="LOCALNCNAME">
									<Rule Name="szComputerDomainDN" Query="$."/>
								</Setting>

								<Object Type="Directory" Key1="LDAP://%DOMAINCONTROLLER%" Key2="%LOCALNCNAME%">
									<Setting Key1="nTMixedDomain">
										<!-- The presence of the GUID signifies that setup wants to prepare the local domain -->
										<Rule Name="fLocalDomainModeMixed" Query="('%PREPAREDOMAIN%'='F63C3A12-7852-4654-B208-125C32EB409A') and $.=1" Error="Error" Text="Active Directory domain '{3}' is in mixed mode. To install Exchange Server 2010, the domain functional level must be raised to Windows 2003 native mode or above." S3="%LOCALNCNAME%" Role="Global" GUID="b88d3253-db66-4bc2-9423-65aff6b9f0a9"/>
										<Rule Name="fDomainPrepRequired" Query="not($fLocalDomainIsPrepped) and $szComputerDomainDN != $szRootDomainDN" Error="Error" Text="The local domain needs to be prepared (via 'Setup /PrepareDomain') before server roles can be installed." Role="Mailbox,ClientAccess,Bridgehead,UnifiedMessaging" GUID="55a60a46-f72c-4227-aca5-c204ec6127db" AlwaysEvaluate="True"/>
									</Setting>
									<Setting Key1="objectSid" Format="Sid" Substitution="SIDLOCALDOMAIN"/>
									<Object Type="Directory" Key1="LDAP://%DOMAINCONTROLLER%" Key2="%LOCALNCNAME%" Key3="(objectCategory=msExchSystemObjectsContainer)" Key4="Subtree">
										<Setting Key1="objectVersion">
											<Rule Name="fLocalDomainIsPrepped" Query="$. &gt;=12433"/>
										</Setting>
									</Object>
									<!-- Check to see if the logged-on user is a member of the Domain Admins group. -->
									<Object Type="CheckTokenMembership" Key1="%SIDLOCALDOMAIN%-512" Name="DomainAdmins">
										<Rule Name="fLocalDomainAdmin" Query="count(../Instance[@Name='DomainAdmins']) &gt;0"/>
									</Object>
								</Object>

							</Object>
						</Object>

						<!-- Check if the provisioned name is duplicated -->
						<Object Type="If" Key1="'%NEWPROVISIONEDSERVERNAME%'!=''">
							<Object Type="Directory" Key1="GC://%GLOBALCATALOG%" Key2="%ROOTDN%" Key3="(&amp;(objectClass=computer)(name=%NEWPROVISIONEDSERVERNAME%))" Key4="Subtree">
								<Rule Name="fDuplicateShortProvisionedName" Query="count(../Instance) &gt; 1" Error="Error" Text="Multiple computer objects with name {0} exist in the current Active Directory forest. The provisioned Exchange server must have a unique short name." S0="%NEWPROVISIONEDSERVERNAME%"/>
							</Object>
						</Object>
					</Object>
				</Object>


				<!-- Verify that the operating system supports Exchange -->
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_OperatingSystem" Role="Global,Mailbox,Bridgehead,ClientAccess,Gateway,UnifiedMessaging,AdminTools">
					<Setting Key1="OSProductSuite">
						<Rule Name="iOSProductSuite" Query="$."/>
					</Setting>
				</Object>

				<!--Check to make sure that the computer belongs to the Windows domain-->
				<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_ComputerSystem" Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools">
					<Setting Key1="DomainRole" Substitution="DOMAINROLE">
						<Rule Name="fComputerNotPartofDomain" Query="$.=0 or $.=2" Error="Error" Text="This computer is not part of a Windows domain." Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools"/>
					</Setting>
					<Setting Key1="Name" Substitution="LOCALSERVERNAME">
						<Rule Name="szServerName" Query="$."/>
						<!--Verifies that the local server name only contains 'A'-'Z', 'a'-'z', '0'-'9' and '-'-->
						<Rule Name="fServerNameNotValid" Query="not(matches($., '^[A-Za-z0-9\-]*$'))" Error="Error" Text="The server name is invalid. It contains characters other than 'A'-'Z', 'a'-'z', '0'-'9' and '-'." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools"/>
					</Setting>
					<!-- If the local computer is a domain controller, connect to the rootDSE and find out if it is also a global catalog server -->
					<Object Type="If" Key1="'%DOMAINROLE%'='4' or '%DOMAINROLE%'='5'">
						<Object Type="Directory" Key1="LDAP://%LOCALSERVERNAME%/">
							<Setting Key1="isGlobalCatalogReady">
								<Rule Name="fLocalComputerIsDCInChildDomain" Query="lower-case($.)='false' and $szComputerDomainDN != $szRootDomainDN" Error="Error" Text="It is not supported to install Exchange 2007 on domain controllers in non-root domains. Promote this computer to be a global catalog server or run the installation program on a member server in the domain." Task="PrecheckInstall,PrecheckDR" Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="b16f7767-3561-4d98-a95b-d7c8dd266af8"/>
							</Setting>
						</Object>
					</Object>
					<!--Verifies that user is logged on to an NT domain, not the local machine-->
					<Object Type="GetUserNameEx" Name="Interactive User">
						<Setting Key1="NameSamCompatible">
							<Rule Name="fLoggedOntoDomain" Query="starts-with(upper-case($.),concat(upper-case($szServerName), '\'))" Error="Error" Text="The user is not logged on to a Windows domain" Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools"/>
						</Setting>
					</Object>
				</Object>

				<Object Type="Group" Name="Active Directory Checks" Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools">
					<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Name="cn">
						<Setting Key1="configurationNamingContext" Substitution="CONFIGDN"/>
						<Setting Key1="rootDomainNamingContext" Substitution="ROOTDN"/>
						<Setting Key1="schemaNamingContext" Substitution="SCHEMADN"/>

						<!-- Locate the Exchange Servers group. -->
						<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Microsoft Exchange,cn=Services,%CONFIGDN%">
							<Setting Key1="otherWellKnownObjects" Substitution="EXSVRDN" SubstitutionFormat="(^B:32:A7D2016C83F003458132789EEB127B84:(?'dn'.*))?.*$----${dn}"/>
							<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%EXSVRDN%">
								<Setting Key1="sAMAccountName">
									<Rule Name="szExchangeServersGroup" Query="$."/>
								</Setting>
								<Setting Key1="nTSecurityDescriptor" Substitution="NTSD" Format="SecurityDescriptor"/>

								<!-- // Find out if the logged-on account has permissions on the Exchange Servers Universal Security Group object -->
								<!-- // See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/ads_rights_enum.asp for a full list of values -->
								<Object Type="AccessCheck" Key1="%NTSD%" Key2="MAXIMUM_ALLOWED">
									<Setting Key1="grantedAccess">
										<Rule Name="fHasExchangeServersUSGWritePerms" Query="bitwise-and($., hex('0xF00FF')) = hex('0xF00FF')"/>
										<Rule Name="fHasExchangeServersUSGBasicAccess" Query="bitwise-and($., hex('0xF01BD')) = hex('0xF01BD')"/>
									</Setting>
								</Object>
							</Object>

							<!-- Locate the Microsoft Exchange Security Groups organizational unit -->
							<Object Type="If" Key1="true()" Name="Microsoft Exchange Security Groups">
								<Setting Key1="string('%EXSVRDN%')" Substitution="MESGOU" SubstitutionFormat="^CN=Exchange Servers,(?'mesg'.*)$----${mesg}"/>
								<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%MESGOU%">
									<Setting Key1="allowedChildClassesEffective">
										<Rule Name="szAllowedWriteMESGClasses" Query="$."/>
									</Setting>
								</Object>
							</Object>
						</Object>

						<!-- // [111484] Verify that the logged-on account has permissions to Extended-Rights -->
						<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Extended-Rights,%CONFIGDN%">
							<Setting Key1="nTSecurityDescriptor" Substitution="NTSD" Format="SecurityDescriptor"/>
							<Object Type="AccessCheck" Key1="%NTSD%" Key2="MAXIMUM_ALLOWED">
								<Setting Key1="grantedAccess">
									<Rule Name="fHasExtendedRightsCreateChildPerms" Query="bitwise-and($., 1) = 1"/>
								</Setting>
							</Object>
						</Object>

						<!-- Check to make sure that the schema is up to date -->
						<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=ms-Exch-Schema-Version-Pt,%SCHEMADN%">
							<Setting Key1="rangeUpper">
								<Rule Name="iSchemaVersionRangeUpper" Query="$."/>
							</Setting>
						</Object>

						<!-- Check the version of windows running on schema FSMO -->
						<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%SCHEMADN%">
							<Setting Key1="fSMORoleOwner" Substitution="FSMOROLESCHEMA" SubstitutionFormat="CN=NTDS Settings,CN=(.*?),.*----$1"/>
							<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Sites,%CONFIGDN%" Key3="(&amp;(objectClass=server)(cn=%FSMOROLESCHEMA%))">
								<Setting Key1="dNSHostName" Substitution="FSMOROLESCHEMA"/>
								<Setting Key1="serverReference" Substitution="FSMOROLESCHEMAREF">
									<Rule Name="szFSMOSchemaDomain" Query="concat('DC=',substring-after($.,'DC='))"/>
								</Setting>
								<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%FSMOROLESCHEMAREF%">
									<Setting Key1="operatingSystemVersion">
										<Rule Name="fWin2000FSMOSchemaServer" Query="starts-with($., '5.0')" Error="Error" Text="Schema master '{2}' is running Windows 2000 Server. The schema master must be upgraded to Windows Server 2003 Service Pack 1 or later." S2="%FSMOROLESCHEMA%" AlwaysEvaluate="True" Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="8067537b-4a5b-4abd-8736-09635f785bc7"/>
										<Rule Name="fWin2003FSMOSchemaServer" Query="starts-with($., '5.2')"/>
									</Setting>
									<Setting Key1="operatingSystemServicePack">
										<Rule Name="fFSMOSchemaServicePack" Query="starts-with($., 'Service Pack')"/>
									</Setting>
								</Object>
								<!-- Determine the Active Directory site name for the Schema Master -->
								<Object Type="DsGet" Key1="SiteName" Key2="%FSMOROLESCHEMA%">
									<Setting Key1="SiteName">
										<Rule Name="szFSMOSchemaSiteName" Query="$."/>
									</Setting>
								</Object>
							</Object>
						</Object>

						<!-- Find out if we can determine the local Active Directory site name -->
						<Object Type="DsGet" Key1="SiteName" Key2="">
							<Setting Key1="SiteName" Substitution="SITENAME">
								<Rule Name="szSiteName" Query="$."/>
								<Rule Name="fInvalidADSite" Query="$.=''" Error="Error" Text="This computer does not belong to a valid Active Directory site. Check the site and subnet definitions." Role="Global,Mailbox,Bridgehead,ClientAccess,UnifiedMessaging,AdminTools" GUID="cb4b0ae5-1167-40e5-895d-31c01c71dc60"/>
								<Rule Name="fNoGCInSite" Query="count($fWin2003SPxGCInLocalSite)= 0 and (($fE12 and not($fE12SP1orHigher)) or ($fE12SP1orHigher and count($fLonghornGCInLocalSite)= 0))" Error="Error" Text="Cannot find at least one global catalog server running Windows Server 2003 Service Pack 1 or later in the local Active Directory site." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="67aca4a0-bc3f-4f8f-8297-b13e0d347942" AlwaysEvaluate="True"/>
							</Setting>

							<!-- Find out if there are any Active Directory Connectors in existence -->
							<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Sites,%CONFIGDN%" Key3="(objectClass=msExchActiveDirectoryConnector)" Key4="Subtree">
								<Setting Key1="cn">
									<Rule Name="szADCServer" Query="$."/>
								</Setting>
							</Object>

							<!-- // [113257] Check whether the local computer is a Read Only DC -->
							<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_ComputerSystem" Task="PrecheckInstall">
								<Setting Key1="Name" Substitution="SHORTSERVERNAME"/>
								<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=%SHORTSERVERNAME%,cn=Servers,cn=%SITENAME%,cn=Sites,%CONFIGDN%" Key3="objectCategory=nTDSDSARO" Key4="OneLevel">
									<Setting Key1="distinguishedName">
										<Rule Name="fComputerRODC" Query="true()" Error="Error" Text="This computer is a read-only domain controller. Exchange Server 2010 cannot be installed." Role="Mailbox,Bridgehead,ClientAccess,UnifiedMessaging" GUID="f8c882cc-af03-434c-b391-6ed9639a1db7" AlwaysEvaluate="True"/>
									</Setting>
								</Object>
							</Object>

							<!-- Enumerate all domain controllers in the same Active Directory site as the local computer where Setup is running -->
							<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=%SITENAME%,cn=Sites,%CONFIGDN%" Key3="(&amp;(objectClass=server)(dNSHostName=*))" Key4="Subtree">
								<Setting Key1="distinguishedName" Substitution="ADSERVERDN"/>
								<Setting Key1="dNSHostName">
									<Rule Name="fWin2003SPxGCInLocalSite" Query="$fADServerIsGC and $fADWin2003Server and $fADServicePack"/>
									<Rule Name="fLonghornGCInLocalSite" Query="$fADServerIsGC and $fADLonghornServer"/>
								</Setting>
								<Setting Key1="serverReference" Substitution="SERVERREF"/>

								<!-- Find out if this domain controller is a global catalog -->
								<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%ADSERVERDN%" Key3="(objectClass=nTDSDSA)" Key4="OneLevel">
									<Setting Key1="options">
										<Rule Name="fADServerIsGC" Query="bitwise-and($.,1)=1"/>
									</Setting>
								</Object>

								<!-- Retrieve the computer object from the domain naming context and find out if it is Windows 2003 SP1 or later -->
								<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%SERVERREF%">
									<Setting Key1="operatingSystemVersion">
										<Rule Name="fADWin2003Server" Query="starts-with($., '5.2')"/>
										<Rule Name="fADLonghornServer" Query="starts-with($., '6')"/>
									</Setting>
									<Setting Key1="operatingSystemServicePack">
										<Rule Name="fADServicePack" Query="starts-with($., 'Service Pack')"/>
									</Setting>
								</Object>

							</Object>
						</Object>

						<!-- Get the short server name and DNS domain name -->
						<Object Type="WMI" Key1="%PREREQSERVER%" Key3="Win32_ComputerSystem">
							<Setting Key1="Name" Substitution="SHORTSERVERNAME"/>
							<Setting Key1="Domain" Substitution="COMPUTERDNSDOMAIN"/>

								<!-- Check whether the Exchange Organization is native or mixed mode -->
								<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Microsoft Exchange,cn=Services,%CONFIGDN%">
									<Setting Key1="distinguishedName" Substitution="DN"/>
									<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%DN%" Key3="objectClass=msExchOrganizationContainer" Key4="OneLevel">
										<Setting Key1="distinguishedName" Substitution="DN"/>
										<Setting Key1="distinguishedName" Substitution="OrgDN"/>
										<Setting Key1="msExchMixedMode">
											<Rule Name="szExchangeMixedMode" Query="$."/>
										</Setting>

										<!-- // We now check 'msExchVersion' on the org object. This doesn't exist by default in Exchange 2007 but the implied value is essentially 0.0:6.5.6500.0 -->
										<!-- // The fExchangeVersionBlock rule allows us to block installs of Exchange 2007 should we have a native mode in a future version of Exchange -->
										<Setting Key1="msExchVersion" Format="ExchangeVersion">
											<!-- // Exchange 2010 set msExchVersion of the org object to 1.0 to block Exchange 2007 setup. So block Exchange 2010 setup from version 2.0 -->
											<Rule Name="fExchangeVersionBlock" Query="number(substring-before($.,':')) &gt;=2.0" Error="Error" Text="The Exchange organization does not support this version of Exchange Server."/>
										</Setting>

										<!-- Use Monad to retrieve the version of the existing Exchange Server object -->
										<Object Type="MonadCommand" Key1="Get-ExchangeServer -Identity %SHORTSERVERNAME%" Task="PrecheckUpgrade,PrecheckDR,PrecheckUninstall">
											<Setting Key1="AdminDisplayVersion">
												<Rule Name="szInstalledVersionCompare" Query="version-compare(replace($., '^Version (\d+\.\d+) \(Build (\d+\.\d+)\)$', '$1.$2'), '%EXCHANGEVERSION%')"/>
												<Rule Name="fDRMinVersionCheck" Query="$szInstalledVersionCompare &gt;0" Error="Error" Text="Exchange Server 2010 build {9} or later must be used to perform a recovery of this server." P9="replace($., '^Version (\d+\.\d+) \(Build (\d+\.\d+)\)$', '$1.$2')" Task="PrecheckDR" GUID="0327e02c-306a-4df0-82d6-42ee5df09203"/>
											</Setting>
										</Object>
										
										<!-- Use Monad to check if server was a member of a dag -->
										<Object Type="MonadCommand" Key1="Get-MailboxServer -Identity %SHORTSERVERNAME%" Task="PrecheckDR" Role="Mailbox">
										      <Setting Key1="DatabaseAvailabilityGroup">
										            <Rule Name="szDatabaseAvailabilityGroup" Query="$."/>
										      </Setting>
										</Object>

										<!-- // [124037] Check whether there are any SMTP/Send connectors with invalid settings -->
										<Object Type="MonadCommand" Key1="Get-SendConnector" Task="PrecheckInstall,PrecheckUpgrade,PrecheckDR" Role="Bridgehead">
											<Rule Name="fSendConnectorException" Query="../Exception/@Message" Error="Error" Text="Setup cannot continue because one or more SMTP/Send connectors have invalid settings: {1}" P1="../Exception/@Message"/>
										</Object>

										<!-- // [114394] We check whether the permission inheritance is blocked on public folder tree objects -->
										<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Administrative Groups,%DN%" Key3="(&amp;(objectCategory=msExchAdminGroup)(cn=*))" Key4="OneLevel" Task="PrecheckInstall" Role="Mailbox">
											<Setting Key1="distinguishedName" Substitution="DN"/>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Public Folders,cn=Folder Hierarchies,%DN%">
												<Setting Key1="distinguishedName" Substitution="DN"/>
												<Setting Key1="ntSecurityDescriptor" Format="SecurityDescriptor" NotForExport="True">
													<Rule Name="fInhBlockPublicFolderTree" Query="boolean(bitwise-and(sdget('Control', $.),4096))" Error="Error" Text="Access control list (ACL) inheritance is blocked for the {1} object ({3}). Re-enable the inheritance and restart setup." S1="Public Folder tree" S3="%DN%" GUID="7bfa2aec-d01b-4b5f-9229-ba2cde424b43"/>
												</Setting>
											</Object>
											<!-- // [124196] Check for Exchange Server 2003 or Exchange 2000 Server SMTP virtual servers with a smart host set -->
											<Object Type="If" Key1="not(contains('%DN%', 'FYDIBOHF23SPDLT'))">
												<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%DN%" Key3="objectClass=protocolCfgSMTPServer">
													<Setting Key1="distinguishedName">
														<Rule Name="szSMTPInstanceDN" Query="$."/>
													</Setting>
													<Setting Key1="msExchSmtpSmartHost">
														<Rule Name="fSMTPInstanceSmartHostSet" Query="$.!=''" Error="Warning" Text="SMTP instance '{3}' is configured to route all messages via smart host '{1}'. Remove this option if this SMTP instance is set as the source or target transport server of a routing group connector between an Exchange Server 2010 routing group and an Exchange Server 2003 Server routing group." P1="$." P3="$szSMTPInstanceDN" Task="PrecheckInstall,PrechekUpgrade,PrechekDR" Role="Bridgehead"/>
													</Setting>
												</Object>
											</Object>
										</Object>
										<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchRoutingSMTPConnector)(routingList=SMTP:\2a;*))">
											<Setting Key1="cn">
												<Rule Name="szConnectorToStar" Query="$."/>
											</Setting>
										</Object>

										<!-- Get the information about the server we are going to do removeprovisionedserver on -->
										<!-- [115333] Should not allow removeprovisionedserver on a server which has roles installed -->
										<!-- Removeprovisionedserver takes both FQDN and Shortservername. We need to convert FQDN to shortservername -->
										<Object Type="If" Key1="true()">
											<Setting Key1="string('%REMOVEPROVISIONEDSERVERNAME%')" Substitution="REMOVESERVERNAME" SubstitutionFormat="^(.*?)\..*$----$1"/>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(cn=%REMOVESERVERNAME%))" Task="PrecheckUninstall" Key4="Subtree">
												<Setting Key1="msExchCurrentServerRoles">
													<Rule Name="fServerRemoveProvisioningCheck" Query="not(bitwise-and($.,4096)) and ('%REMOVEPROVISIONEDSERVERNAME%'!='')" Error="Error" Text="RemoveProvisionedServer cannot be run on '{1}' because it has roles installed. Please uninstall existing roles before doing this operation." S1="%REMOVEPROVISIONEDSERVERNAME%"/>
												</Setting>
											</Object>
										</Object>

										<!-- Get any existing information about the server that we're trying to install -->
										<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(cn=%SHORTSERVERNAME%))" Key4="Subtree">
											<Setting Key1="distinguishedName" Substitution="DN"/>
											<Setting Key1="cn">
												<Rule Name="fServerAlreadyExists" Query="$."/>
											</Setting>
											<Setting Key1="msExchCurrentServerRoles">
												<Rule Name="fMailboxRoleInstalled" Query="boolean(bitwise-and($.,2))"/>
												<Rule Name="fClientAccessRoleInstalled" Query="boolean(bitwise-and($.,4))"/>
												<Rule Name="fPublicFolderRoleInstalled" Query="boolean(bitwise-and($.,8))"/>
												<Rule Name="fUnifiedMessagingRoleInstalled" Query="boolean(bitwise-and($.,16))"/>
												<Rule Name="fBridgeheadRoleInstalled" Query="boolean(bitwise-and($.,32))"/>
												<Rule Name="fGatewayRoleInstalled" Query="boolean(bitwise-and($.,64))"/>
												<Rule Name="fServerIsProvisioned" Query="boolean(bitwise-and($.,4096))"/>
											</Setting>
											<Setting Key1="legacyExchangeDN" Substitution="PREREQSERVERLEGDN"/>
											<Setting Key1="distinguishedName" Substitution="PREREQSERVERDN"/>
											<Setting Key1="nTSecurityDescriptor" Substitution="NTSD" Format="SecurityDescriptor"/>
											<!-- Find out if the logged-on account has permissions on the Exchange server object -->
											<Object Type="If" Key1="true()">
												<Setting Key1="'0;a8df74a7-c5ea-11d1-bbcb-0080c76670c0'" Key2="mTA" Substitution="G01"/>
												<Setting Key1="'0;a8df74b2-c5ea-11d1-bbcb-0080c76670c0'" Key2="exchangeAdminService" Substitution="G02"/>
												<Setting Key1="'0;bf967a8b-0de6-11d0-a285-00aa003049e2'" Key2="container" Substitution="G03"/>
												<Setting Key1="'0;28630ec1-41d5-11d1-a9c1-0000f80367c1'" Key2="serviceConnectionPoint" Substitution="G04"/>
												<Setting Key1="'0;031b371a-a981-11d2-a9ff-00c04f8eedd8'" Key2="msExchInformationStore" Substitution="G05"/>
												<Setting Key1="'0;3435244a-a982-11d2-a9ff-00c04f8eedd8'" Key2="msExchStorageGroup" Substitution="G06"/>
												<Setting Key1="'0;36145cf4-a982-11d2-a9ff-00c04f8eedd8'" Key2="msExchPrivateMDB" Substitution="G07"/>
												<Setting Key1="'0;966540a1-75f7-4d27-ace9-3858b5dea688'" Key2="msExchAutoDiscoverVirtualDirectory" Substitution="G08"/>
												<Setting Key1="'0;9432cae6-b09e-11d2-aa06-00c04f8eedd8'" Key2="msExchProtocolCfgHTTPContainer" Substitution="G09"/>
												<Setting Key1="'0;93da93e4-b09e-11d2-aa06-00c04f8eedd8'" Key2="msExchProtocolCfgIMAPContainer" Substitution="G10"/>
												<Setting Key1="'0;a8df74d1-c5ea-11d1-bbcb-0080c76670c0'" Key2="protocolCfgSharedServer" Substitution="G11"/>
												<Setting Key1="'0;a8df74c5-c5ea-11d1-bbcb-0080c76670c0'" Key2="protocolCfgIMAPServer" Substitution="G12"/>
												<Setting Key1="'0;a8df74ce-c5ea-11d1-bbcb-0080c76670c0'" Key2="protocolCfgPOPServer" Substitution="G13"/>
												<Setting Key1="'0;3378ca84-a982-11d2-a9ff-00c04f8eedd8'" Key2="protocolCfgSMTPServer" Substitution="G14"/>
												<Setting Key1="'0;33bb8c5c-a982-11d2-a9ff-00c04f8eedd8'" Key2="protocolCfgSMTPDomainContainer" Substitution="G15"/>
												<Setting Key1="'0;3397c916-a982-11d2-a9ff-00c04f8eedd8'" Key2="protocolCfgSMTPRoutingSources" Substitution="G16"/>
												<Setting Key1="'0;8ef628c6-b093-11d2-aa06-00c04f8eedd8'" Key2="protocolCfgSMTPSessions" Substitution="G17"/>
												<Setting Key1="'0;93f99276-b09e-11d2-aa06-00c04f8eedd8'" Key2="msExchProtocolCfgPOPContainer" Substitution="G18"/>
												<Setting Key1="'0;93bb9552-b09e-11d2-aa06-00c04f8eedd8'" Key2="msExchProtocolCfgSMTPContainer" Substitution="G19"/>
												<Setting Key1="'0;44601346-776a-46e7-b4a4-2472e1c66806'" Key2="msExchSmtpReceiveConnector" Substitution="G20"/>
												<Setting Key1="'0;20309cbd-0ae3-4876-9114-5738c65f845c'" Key2="msExchSmtpSendConnectorFQDN" Substitution="G21"/>
												<Object Type="Cache" Name="GUIDS" Key1="AddValue" Key2="GUIDS" Key3="%G01%|%G02%|%G03%|%G04%|%G05%|%G06%|%G07%|%G08%|%G09%|%G10%|%G11%|%G12%|%G13%|%G14%|%G15%|%G16%|%G17%|%G18%|%G19%|%G20%|%G21%" Key4="\|"/>
												<Object Type="Cache" Name="GUIDS" Key1="Dump" Key2="GUIDS">
													<Setting Key1="OBJECT_TYPE_LIST" Substitution="OBJECT_TYPE_LIST"/>
													<Object Type="AccessCheck" Key1="%NTSD%" Key2="MAXIMUM_ALLOWED" Key4="%OBJECT_TYPE_LIST%">
														<Setting Key1="grantedAccess">
															<Rule Name="fHasServerDelegatedPermsBlocked" Query="bitwise-and($., hex('0xF00FF')) != hex('0xF00FF')"/>
														</Setting>
													</Object>
												</Object>
											</Object>

											<!-- // [14:21148] Check database settings in E14 locations -->
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Administrative Groups,%OrgDN%" Key3="(&amp;(objectClass=msExchPrivateMDB)(msExchOwningServer=%DN%))" Role="Mailbox">
												<Setting Key1="cn" Substitution="DATABASENAME">
													<Rule Name="fUnwillingToRemoveMailboxDatabase" Query="count($szRemoveMailboxDatabaseException) &gt;0" Error="Error" Text="Uninstall cannot continue. Database '{3}': {1}" P1="$szRemoveMailboxDatabaseException" S3="%DATABASENAME%" Task="PrecheckUninstall" GUID="4a96fd69-9cec-4a48-9571-5c9e8ab3cfe9"/>
												</Setting>
												<Setting Key1="distinguishedName" Substitution="DN"/>
												<Setting Key1="msExchESEParamLogFilePath" Substitution="LOGDRIVE" SubstitutionFormat="^(.:\\).*$----$1"/>
												<Setting Key1="msExchEDBFile" Substitution="EDBDRIVE" SubstitutionFormat="^(.:\\).*$----$1"/>
												<!-- Find out if the log drive(s) exist -->
												<Object Type="MonadCommand" Key1="test-path '%LOGDRIVE%'" Task="PrecheckDR">
													<Setting Key1="__THIS">
														<Rule Name="fMailboxLogDriveDoesNotExist" Query="$.='False'" Error="Error" Text="Disaster recovery setup needs access to log drive '{5}' to continue." S5="%LOGDRIVE%" Task="PrecheckDR" GUID="80689097-fe5e-4501-b1ec-2189297e7580"/>
													</Setting>
												</Object>
												<!-- Find out if the mailbox database EDB drive exists -->
												<Object Type="MonadCommand" Key1="test-path '%EDBDRIVE%'" Task="PrecheckDR">
													<Setting Key1="__THIS">
														<Rule Name="fMailboxEDBDriveDoesNotExist" Query="$.='False'" Error="Error" Text="Disaster recovery setup needs access to mailbox database drive '{5}' to continue." S5="%EDBDRIVE%" Task="PrecheckDR" GUID="6b5623fa-9a86-4b75-8af0-b3ca1045048c"/>
													</Setting>
												</Object>
												<!-- Find out if it's okay to remove this database -->
												<Object Type="MonadCommand" Key1="Remove-MailboxDatabase '%DN%' -whatif" Task="PrecheckUninstall">
													<Rule Name="szRemoveMailboxDatabaseException" Query="../Exception/@Message"/>
												</Object>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Administrative Groups,%OrgDN%" Key3="(&amp;(objectClass=msExchPublicMDB)(msExchOwningServer=%DN%))" Role="Mailbox">
												<Setting Key1="cn" Substitution="DATABASENAME">
													<Rule Name="fUnwillingToRemovePublicFolderDatabase" Query="count($szRemovePublicFolderDatabaseException) &gt;0" Error="Error" Text="Uninstall cannot continue. Database '{3}': {1}" P1="$szRemovePublicFolderDatabaseException" S3="%DATABASENAME%" Task="PrecheckUninstall" GUID="b6e3b32a-8848-46cb-9567-72288ac15f60"/>
												</Setting>
												<Setting Key1="distinguishedName" Substitution="DN"/>
												<Setting Key1="msExchESEParamLogFilePath" Substitution="LOGDRIVE" SubstitutionFormat="^(.:\\).*$----$1"/>
												<Setting Key1="msExchEDBFile" Substitution="EDBDRIVE" SubstitutionFormat="^(.:\\).*$----$1"/>
												<!-- Find out if the log drive(s) exist -->
												<Object Type="MonadCommand" Key1="test-path '%LOGDRIVE%'" Task="PrecheckDR">
													<Setting Key1="__THIS">
														<Rule Name="fPublicFolderLogDriveDoesNotExist" Query="$.='False'" Error="Error" Text="Disaster recovery setup needs access to log drive '{5}' to continue." S5="%LOGDRIVE%" Task="PrecheckDR" GUID="80689097-fe5e-4501-b1ec-2189297e7580"/>
													</Setting>
												</Object>
												<!-- Find out if the public folder database EDB drive exists -->
												<Object Type="MonadCommand" Key1="test-path '%EDBDRIVE%'" Task="PrecheckDR">
													<Setting Key1="__THIS">
														<Rule Name="fPublicFolderEDBDriveDoesNotExist" Query="$.='False'" Error="Error" Text="Disaster recovery setup needs access to public folder database drive '{5}' to continue." S5="%EDBDRIVE%" Task="PrecheckDR" GUID="e197c6c1-2fb8-4ab3-ad0f-6e973529f29b"/>
													</Setting>
												</Object>
												<!-- Find out if it's okay to remove this database -->
												<Object Type="MonadCommand" Key1="Remove-PublicFolderDatabase '%DN%' -whatif" Task="PrecheckUninstall">
													<Rule Name="szRemovePublicFolderDatabaseException" Query="../Exception/@Message"/>
												</Object>
											</Object>

											<!-- Check to see if this server is responsible for any OABs -->
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Offline Address Lists,cn=Address Lists Container,%OrgDN%" Key3="(&amp;(objectClass=msExchOAB)(offlineABServer=%PREREQSERVERDN%))" Key4="Subtree" Role="Mailbox">
												<Setting Key1="distinguishedName">
													<Rule Name="szOABDN" Query="$."/>
												</Setting>
											</Object>

											<!-- // [108272] Find out if there are any additional UM languages packs installed for B2B upgrade -->
											<Object Type="MonadCommand" Key1="get-UMServer -Identity %SHORTSERVERNAME%" Task="PrecheckUpgrade" Role="UnifiedMessaging">
												<Setting Key1="Languages">
													<Rule Name="fAdditionalUMLangPackExists" Query="count($.[upper-case(.)!='EN-US']) &gt;0" Error="Error" Text="All the Unified Messaging language packs other than US English (en-US) need to be uninstalled before upgrading the Unified Messaging server role. Detected language packs: {1}" P1="join(',', $.)" GUID="e158634b-50e3-4cb0-bf23-f94073bb9e43"/>
												</Setting>
											</Object>

											<!-- // Verify that its safe to remove the Hub Transport role from this server. Objects will be orphaned if we don't block uninstall -->
											<!-- // The tests are performed using Monad rather than LDAP because current AD attributes are overloaded for E12 and are due to be deprecated at a future point in time -->
											<!-- // Monad abstracts us from the underlying attributes should they change -->
											<!-- // By design, the rules are not conditioned on the number of servers in the organization, so we will force administrators to tear down objects manually, even for last server uninstalls -->
											<Object Type="Group" Name="Transport Uninstall" Role="Bridgehead" Task="PrecheckUninstall">
												<Setting Key1="Rules">
													<Rule Name="fServerIsSourceForSendConnector" Query="count($szSendConnector) &gt;0" Error="Error" Text="This computer is configured as a source transport server for {9} connector(s) in the organization. These must be moved or deleted before Setup can continue." P9="count($szSendConnector)" GUID="67c28d7f-cf6f-4f9c-b8a0-7e28ed318e2f"/>
													<Rule Name="fServerIsBridgeheadForRGConnector" Query="count($szRGConnector) &gt;0" Error="Error" Text="This computer is configured as a bridgehead server for {9} routing group connector(s) in the organization. These must be moved or deleted before Setup can continue." P9="count($szRGConnector)" GUID="b35c4602-e6c4-4fcc-873c-31f80a2582e1"/>
													<Rule Name="fServerIsGroupExpansionServer" Query="count($szGroupDN) &gt;0" Error="Error" Text="This computer is responsible for expanding the membership of {9} distribution group(s). These must be reassigned to another server before Setup can continue." P9="count($szGroupDN)" GUID="9b815db1-19fa-482b-8218-ba8affef57eb"/>
													<Rule Name="fServerIsDynamicGroupExpansionServer" Query="count($szDynamicGroupDN) &gt;0" Error="Error" Text="This computer is responsible for expanding the membership of {9} dynamic distribution group(s). These must be reassigned to another server before Setup can continue." P9="count($szDynamicGroupDN)" GUID="9b815db1-19fa-482b-8218-ba8affef57eb"/>
													<Rule Name="fServerIsLastHubForEdgeSubscription" Query="count($szEdgeSubscriptionForSite) &gt;0 and count($szHubTransportRoleInCurrentADSite)=1" Error="Error" Text="This is the only computer with a Hub Transport server role installed in Active Directory site '{1}' and an Edge Subscription is subscribed to this site. The Edge Subscription must be removed before setup can continue." P1="$szSiteName" GUID="a72e3f1f-3d72-4869-9790-e26b59955844" AlwaysEvaluate="True"/>
												</Setting>

												<!-- // Check to see if this server is a source bridgehead for any Send Connectors -->
												<!-- // We use a RegEx here because we're testing a multi-valued property -->
												<Object Type="MonadCommand" Key1="Get-SendConnector | where {$_.SourceTransportServers -match '^%SHORTSERVERNAME%$'}">
													<Setting Key1="DistinguishedName">
														<Rule Name="szSendConnector" Query="$."/>
													</Setting>
												</Object>

												<!-- // Check to see if this server is a source or target bridgehead for any Routing Group Connectors -->
												<!-- // We use a RegEx here because we're testing a multi-valued property -->
												<Object Type="MonadCommand" Key1="Get-RoutingGroupConnector | where {$_.SourceTransportServers -match '^%SHORTSERVERNAME%$' -or $_.TargetTransportServers -match '^%SHORTSERVERNAME%$'}">
													<Setting Key1="DistinguishedName">
														<Rule Name="szRGConnector" Query="$."/>
													</Setting>
												</Object>

												<!-- // Check to see if this server is responsible for Distribution Group expansion -->
												<Object Type="MonadCommand" Key1="Get-DistributionGroup | where {$_.ExpansionServer -eq '%PREREQSERVERLEGDN%'}">
													<Setting Key1="DistinguishedName">
														<Rule Name="szGroupDN" Query="$."/>
													</Setting>
												</Object>

												<!-- // Check to see if this server is responsible for Dynamic Distribution Group expansion -->
												<Object Type="MonadCommand" Key1="Get-DynamicDistributionGroup | where {$_.ExpansionServer -eq '%PREREQSERVERLEGDN%'}">
													<Setting Key1="DistinguishedName">
														<Rule Name="szDynamicGroupDN" Query="$."/>
													</Setting>
												</Object>

												<!-- // Check to see if an Edge Transport server is subscribed to this AD site and this is not the last Hub Transport role in the site -->
												<Object Type="DsGet" Key1="SiteName" Key2="">
													<Setting Key1="SiteName" Substitution="SITENAME"/>
													<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=%SITENAME%,cn=Sites,%CONFIGDN%">
														<Setting Key1="canonicalName" Substitution="SITECANONICALNAME"/>
														<Object Type="MonadCommand" Key1="get-EdgeSubscription | where {$_.Site -eq '%SITECANONICALNAME%'}">
															<Setting Key1="Identity">
																<Rule Name="szEdgeSubscriptionForSite" Query="$."/>
															</Setting>
														</Object>
													</Object>
													<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%OrgDN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchServerSite=cn=%SITENAME%,cn=Sites,%CONFIGDN%)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=32))" Key4="OneLevel">
														<Setting Key1="cn">
															<Rule Name="szHubTransportRoleInCurrentADSite" Query="$."/>
														</Setting>
													</Object>
												</Object>
											</Object>
										</Object>

										<!-- Enumerate the list of recipient policies -->
										<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Recipient Policies,%DN%" Key3="objectClass=msExchRecipientPolicy" Key4="OneLevel">
											<Setting Key1="cn" Substitution="RECIPPOLNAME"/>
											<Setting Key1="msExchNonAuthoritativeDomains" Format="LowerCase" Substitution="NONAUTHDOMAINS" SubstitutionFormat="(^smtp:.*\@(?'domain'.*))?.*$----${domain};"/>
											<Setting Key1="disabledGatewayProxy" Format="LowerCase" Substitution="DISABLEDSMTPDOMAIN" SubstitutionFormat="(^smtp:.*\@(?'domain'.*))?.*$----${domain};"/>
											<Setting Key1="gatewayProxy" Format="LowerCase" Substitution="ENABLEDSMTPDOMAIN" SubstitutionFormat="(^smtp:.*\@(?'domain'.*))?.*$----${domain};"/>
											<Setting Key1="gatewayProxy" Format="^((?i:smtp)\:.*\@(?'smtpaddress'.*))?.*$----${smtpaddress}">
												<Rule Name="fServerFQDNMatchesSMTPPolicy" Query="$.[lower-case(.)=lower-case($szComputerNameDnsFullyQualified)]" Error="Error" Text="The fully qualified domain name (FQDN) of the local computer matches the SMTP address of recipient policy '{3}'. Setup cannot continue." S3="%RECIPPOLNAME%" Task="PrecheckInstall,PrecheckUpgrade,PrecheckDR" GUID="e21fee98-5929-4ef4-9e64-17c92c25222f"/>
												<Rule Name="fSMTPAddressLiteral" Query="$.[matches(., '^\[\d+\.\d+\.\d+\.\d+\]$')]" Error="Error" Text="Recipient policy '{3}' uses an unsupported SMTP addressing format ({1}). The value must be changed before Setup can continue." P1="$.[matches(., '^\[\d+\.\d+\.\d+\.\d+\]$')]" S3="%RECIPPOLNAME%" Task="PrecheckInstall" Role="Global,Bridgehead" GUID="df0bb92d-92f3-42e7-bc62-a82e40358776"/>
											</Setting>
											<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Add" Key2="AuthSmtpDomains" Key3="%DISABLEDSMTPDOMAIN%" Key4=";" Task="PrecheckInstall" Role="Global" Display="Hide"/>
											<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Add" Key2="AuthSmtpDomains" Key3="%ENABLEDSMTPDOMAIN%" Key4=";" Task="PrecheckInstall" Role="Global" Display="Hide"/>
											<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Add" Key2="AllNonAuthSmtpDomains" Key3="%NONAUTHDOMAINS%" Key4=";" Task="PrecheckInstall" Role="Global" Display="Hide"/>
											<Object Type="Cache" Name="Non-Authoritative SMTP Domain Name Cache" Key1="Show" Key3="%NONAUTHDOMAINS%" Key4=";" Task="PrecheckInstall" Role="Global" Display="Hide">
												<Setting Key1="SmtpDomain" Substitution="SMTPDOMAIN"/>
												<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Delete" Key2="AuthSmtpDomains" Key3="%SMTPDOMAIN%" Task="PrecheckInstall" Role="Global" Display="Hide"/>
											</Object>
											<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Dump" Key2="AuthSmtpDomains" Task="PrecheckInstall" Role="Global" Display="Hide">
												<Setting Key1="SmtpDomain" Substitution="SMTPDOMAIN"/>
												<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Add" Key2="AllAuthSmtpDomains" Key3="%SMTPDOMAIN%" Task="PrecheckInstall" Role="Global" Display="Hide"/>
											</Object>
											<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Delete" Key2="AuthSmtpDomains" Task="PrecheckInstall" Role="Global" Display="Hide"/>
										</Object>
										<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Dump" Key2="AllNonAuthSmtpDomains" Task="PrecheckInstall" Role="Global" Display="Hide">
											<Setting Key1="SmtpDomain" Substitution="SMTPDOMAIN"/>
											<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Delete" Key2="AllAuthSmtpDomains" Key3="%SMTPDOMAIN%" Task="PrecheckInstall" Role="Global" Display="Hide">
												<Setting Key1="SmtpDomain">
													<Rule Name="fInconsistentlyConfiguredDomain" Query="true()" Error="Error" Sev="2" Text="The domain '{3}' is configured authoritative or non-authoritative inconsistently among multiple recipient policies." S3="%SMTPDOMAIN%" Task="PrecheckInstall" Role="Global" GUID="a3b3a99c-cf10-405f-b4d8-e2cdf674f049"/>
												</Setting>
											</Object>
										</Object>
										<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Delete" Key2="AllAuthSmtpDomains" Task="PrecheckInstall" Role="Global" Display="Hide"/>
										<Object Type="Cache" Name="SMTP Domain Name Cache" Key1="Delete" Key2="AllNonAuthSmtpDomains" Task="PrecheckInstall" Role="Global" Display="Hide"/>

										<!-- Enumerate offline address lists -->
										<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Offline Address Lists,cn=Address Lists Container,%DN%" Key3="objectClass=msExchOAB" Key4="OneLevel" Task="PrecheckInstall" Role="ClientAccess">
											<Setting Key1="cn" Substitution="OABNAME"/>
											<Setting Key1="offLineABServer">
												<Rule Name="fOffLineABServerDeleted" Query="contains($., 'DEL:')" Error="Error" Text="The nominated Exchange server for offline address book '{3}' has been deleted. Nominate a valid server and restart setup." S3="%OABNAME%" GUID="d2b0382e-6f51-46ca-bf12-2dafaa9af2c9"/>
											</Setting>
										</Object>

										<!-- Get a list of all Exchange servers and versions in the forest -->
										<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Administrative Groups,%DN%" Key3="objectClass=msExchExchangeServer" Key4="Subtree">
											<Setting Key1="cn">
												<Rule Name="szExchangeServers" Query="$."/>
											</Setting>
											<Setting Key1="serialNumber">
												<Rule Name="fExchange12" Query="contains ($., 'Version 8')"/>
												<Rule Name="fExchange200x" Query="contains ($., 'Version 6')"/>
												<Rule Name="fExchange2003" Query="contains ($., 'Version 6.5')"/>
												<Rule Name="fExchange2000" Query="contains ($., 'Version 6.0')"/>
											</Setting>
											<Setting Key1="versionNumber">
												<Rule Name="fExchange2003PreSP2" Query="$fExchange2003 and $. &lt;7638"/>
												<Rule Name="fExchange2000PreSP3" Query="$fExchange2000 and $. &lt;6249"/>
											</Setting>
										</Object>

										<!-- Determine which roles are already present in the topology -->
										<Object Type="Group" Name="Roles installed in the topology">
											<!-- First, we check to see if there are any Exchange Server 2007 machines -->
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(serialNumber=Version 8.*))" Key4="OneLevel">
												<Setting Key1="cn">
													<Rule Name="szE12ServerInTopology" Query="$."/>
												</Setting>
											</Object>
											<!-- Second, we check to see if there are any Exchange Server 2010 machines -->
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(serialNumber=Version 14.*))" Key4="OneLevel">
												<Setting Key1="cn">
													<Rule Name="szE14ServerInTopology" Query="$."/>
												</Setting>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=32))" Key4="OneLevel">
												<Setting Key1="cn">
													<Rule Name="szBridgeheadRoleInTopology" Query="$."/>
												</Setting>
												<Setting Key1="serialNumber">
													<Rule Name="fE12SP1orHigherHubAlreadyExists" Query="version-compare(replace($., '^Version (\d+\.\d+).*$', '$1'), '8.1') &gt;=0"/>
													<Rule Name="fE14orHigherHubAlreadyExists" Query="version-compare(replace($., '^Version (\d+\.\d+).*$', '$1'), '14.0') &gt;=0"/>
												</Setting>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=16))" Key4="OneLevel">
												<Setting Key1="cn">
													<Rule Name="szUnifiedMessagingRoleInTopology" Query="$."/>
												</Setting>
												<Setting Key1="serialNumber">
													<Rule Name="fE12SP1orHigherUMAlreadyExists" Query="version-compare(replace($., '^Version (\d+\.\d+).*$', '$1'), '8.1') &gt;=0"/>
												</Setting>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=4))" Key4="OneLevel">
												<Setting Key1="cn">
													<Rule Name="szClientAccessRoleInTopology" Query="$."/>
												</Setting>
												<Setting Key1="serialNumber">
													<Rule Name="fE12SP1orHigherCASAlreadyExists" Query="version-compare(replace($., '^Version (\d+\.\d+).*$', '$1'), '8.1') &gt;=0"/>
												</Setting>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=2))" Key4="OneLevel">
												<Setting Key1="cn">
													<Rule Name="szMailboxRoleInTopology" Query="$."/>
												</Setting>
												<Setting Key1="serialNumber">
													<Rule Name="fE12SP1orHigherMBXAlreadyExists" Query="version-compare(replace($., '^Version (\d+\.\d+).*$', '$1'), '8.1') &gt;=0"/>
												</Setting>
											</Object>
										</Object>

										<!-- Determine whether Bridgehead and ClientAccess roles exist in this AD Site already -->
										<Object Type="DsGet" Key1="SiteName" Key2="" Task="PrecheckInstall" Role="Mailbox">
											<Setting Key1="SiteName" Substitution="SITENAME"/>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchServerSite=cn=%SITENAME%,cn=Sites,%CONFIGDN%)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=32))" Key4="OneLevel">
												<Setting Key1="cn">
													<Rule Name="szBridgeheadRoleInCurrentADSite" Query="$."/>
												</Setting>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchServerSite=cn=%SITENAME%,cn=Sites,%CONFIGDN%)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=4))" Key4="OneLevel">
												<Setting Key1="cn">
													<Rule Name="szClientAccessRoleInCurrentADSite" Query="$."/>
												</Setting>
											</Object>
										</Object>

										<!-- E14:204577 Block installation/upgrade of DF12/DFF unless Mailbox servers in the current site are DF11.7 or above -->
										<Object Type="GetComputerNameEx" Name="Local computer" Role="ClientAccess,Bridgehead" Task="PrecheckInstall,PrecheckUpgrade">
											<Setting Key1="ComputerNameNetBIOS" Substitution="THISSERVER"/>
											<Object Type="DsGet" Key1="SiteName" Key2="">
												<Setting Key1="SiteName" Substitution="SITENAME"/>	
												<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchServerSite=cn=%SITENAME%,cn=Sites,%CONFIGDN%)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=2)(serialNumber=Version 14.0*)(!(cn=%THISSERVER%)))" Key4="OneLevel">
													<Setting Key1="cn" Substitution="SERVERNAME"/>
													<Setting Key1="serialNumber">
														<Rule Name="fBlockCASHubDF11" Query="version-compare(replace($., '^Version 14.0 \(Build (\d+\.\d+).*$', '$1'), '30621.7') &lt;0" Error="Error" Text="Mailbox server '{0}' must be upgraded to R4 DF11.7 or later before Setup can continue" S0="%SERVERNAME%"/>
													</Setting>
												</Object>
											</Object>
										</Object>

										<!-- Determine whether any roles in this AD Site are Exchange 2007 SP1 or ealier -->
										<Object Type="DsGet" Key1="SiteName" Key2="" Task="PrecheckInstall,PrecheckUpgrade,PrecheckDR">
											<Setting Key1="SiteName" Substitution="SITENAME"/>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchServerSite=cn=%SITENAME%,cn=Sites,%CONFIGDN%)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=32))" Key4="OneLevel">
												<Setting Key1="serialNumber">
													<Rule Name="fE12SP1orLowerHubAlreadyExists" Query="version-compare(replace($., '^Version (\d+\.\d+).*$', '$1'), '8.1') &lt;=0"/>
												</Setting>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchServerSite=cn=%SITENAME%,cn=Sites,%CONFIGDN%)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=4))" Key4="OneLevel">
												<Setting Key1="serialNumber">
													<Rule Name="fE12SP1orLowerCASAlreadyExists" Query="version-compare(replace($., '^Version (\d+\.\d+).*$', '$1'), '8.1') &lt;=0"/>
												</Setting>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchServerSite=cn=%SITENAME%,cn=Sites,%CONFIGDN%)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=2))" Key4="OneLevel">
												<Setting Key1="serialNumber">
													<Rule Name="fE12SP1orLowerMBXAlreadyExists" Query="version-compare(replace($., '^Version (\d+\.\d+).*$', '$1'), '8.1') &lt;=0"/>
												</Setting>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,cn=Exchange Administrative Group (FYDIBOHF23SPDLT),cn=Administrative Groups,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(msExchServerSite=cn=%SITENAME%,cn=Sites,%CONFIGDN%)(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=16))" Key4="OneLevel">
												<Setting Key1="serialNumber">
													<Rule Name="fE12SP1orLowerUMAlreadyExists" Query="version-compare(replace($., '^Version (\d+\.\d+).*$', '$1'), '8.1') &lt;=0"/>
												</Setting>
											</Object>
										</Object>

										<!-- Check to see if there are other E12 servers or E2K/E2K3 servers -->
										<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Administrative Groups,%DN%" Key3="(objectClass=msExchAdminGroup)" Key4="OneLevel">
											<Setting Key1="distinguishedName" Substitution="DN"/>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(|(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=2)(!(msExchCurrentServerRoles=*))))" Key4="OneLevel" Role="Mailbox">
												<Setting Key1="cn">
													<Rule Name="szOtherPotentialOABServers" Query="$."/>
												</Setting>
											</Object>
											<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Servers,%DN%" Key3="(&amp;(objectClass=msExchExchangeServer)(|(msExchCurrentServerRoles:1.2.840.113556.1.4.803:=32)(!(msExchCurrentServerRoles=*))))" Key4="OneLevel" Role="Bridgehead">
												<Setting Key1="cn">
													<Rule Name="szOtherPotentialExpansionServers" Query="$."/>
												</Setting>
											</Object>
										</Object>

									</Object>
								</Object>
						</Object>

						<!-- Perform checks on a domain specified with the PrepareDomain switch -->
						<Object Type="If" Key1="(('%PREPAREDOMAIN%'!='F63C3A12-7852-4654-B208-125C32EB409A') and ('%PREPAREDOMAIN%'!=''))" Role="Global">
							<Object Type="Group" Name="Prepare Domain">
								<Setting Key1="PrepareDomain Rules">
									<Rule Name="fPrepareDomainNotFound" Query="count($szPrepareDomain)=0" Error="Error" Text="Setup cannot find domain '{3}' in Active Directory. Preparation canceled." S3="%PREPAREDOMAIN%" AlwaysEvaluate="True" Role="Global"/>
									<Rule Name="fPrepareDomainNotAdmin" Query="count($szPrepareDomain) &gt;0 and not(($fPrepareDomainAdmin and $fHasExchangeServersUSGBasicAccess) or $fEnterpriseAdmin)" Error="Error" Text="You must be a member of the 'Domain Admins' group in domain '{3}' or 'Enterprise Admins' group to proceed." S3="%PREPAREDOMAIN%" Role="Global" GUID="b11d2392-58bc-4a44-bd5f-27ab95f4b38a" AlwaysEvaluate="True"/>
								</Setting>
								<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Partitions,%CONFIGDN%" Key3="(&amp;(systemFlags=3)(|(cn=%PREPAREDOMAIN%)(dnsRoot=%PREPAREDOMAIN%)))" Key4="OneLevel">
									<Setting Key1="nCName" Substitution="NCNAME">
										<Rule Name="szPrepareDomain" Query="$."/>
									</Setting>
									<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%NCNAME%">
										<Setting Key1="objectSid" Format="Sid" Substitution="SIDPREPAREDOMAIN"/>
										<Setting Key1="nTMixedDomain">
											<Rule Name="fPrepareDomainModeMixed" Query="$.=1" Error="Error" Text="Active Directory domain '{3}' is in mixed mode. To install Exchange Server 2010, this domain must be Windows 2003 native mode or above." S3="%NCNAME%" Role="Global" GUID="b88d3253-db66-4bc2-9423-65aff6b9f0a9"/>
										</Setting>
										<!-- Check to see if the logged-on user is a member of the Domain Admins group. -->
										<Object Type="CheckTokenMembership" Key1="%SIDPREPAREDOMAIN%-512" Name="PrepareDomainAdmins">
											<Rule Name="fPrepareDomainAdmin" Query="count(../Instance[@Name='PrepareDomainAdmins']) &gt;0"/>
										</Object>
									</Object>
								</Object>
							</Object>
						</Object>

						<!-- // Enumerate all domains in the forest. The 'systemFlags=3' condition filters out internal and DNS partitions -->
						<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Partitions,%CONFIGDN%" Key3="(systemFlags=3)" Key4="OneLevel">
							<Setting Key1="nCName" Substitution="NCNAME"/>

							<!-- // Enumerate domain information from the domainNC -->
							<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%NCNAME%">
								<Setting Key1="nTMixedDomain">
									<Rule Name="fDomainModeMixed" Query="('%PREPAREALLDOMAINS%'='true') and $.=1" Error="Error" Text="Active Directory domain '{3}' is in mixed mode. To install Exchange Server 2007, this domain must be Windows 2000 native mode or above." S3="%NCNAME%" Role="Global" GUID="b88d3253-db66-4bc2-9423-65aff6b9f0a9"/>
								</Setting>

								<!-- // Find out if this domain is domainprep'd -->
								<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Microsoft Exchange System Objects,%NCNAME%" Role="Global,Mailbox">
									<Setting Key1="cn">
										<Rule Name="fRUSMissing" Query="count($fExchange200x) &gt;0 and count($szRUSName)=0" Error="Warning" Text="Cannot find the Recipient Update Service responsible for domain '{3}'. New and existing users may not be properly Exchange-enabled." S3="%NCNAME%" AlwaysEvaluate="True" GUID="3bc93fba-92fb-4bf6-94c3-3fcf17171cb0"/>
										<Rule Name="fNoValidDCForPrepareLegPerms" Query="('%PREPARELEGACYEXCHANGEPERMISSIONS%'='2A7F95FC-66C6-445F-AAB9-19744C05E70E') and $fEESGroupExists and $fEDSGroupExists and count($szDomainValidDC)=0" Error="Error" Text="Cannot find at least one domain controller running Windows Server 2003 Service Pack 1 or later in domain '{3}'. This could be the result of moving domain controller objects in Active Directory. Check that at least one domain controller running Windows Server 2003 Service Pack 1 or later is located in the '{4}' organizational unit (OU) and rerun setup." S3="%NCNAME%" S4="Domain Controllers" Role="Global" GUID="abd5c9be-a6b4-42db-bcab-0ad16f702601" AlwaysEvaluate="True"/>
									</Setting>

									<!-- // Find out if there is at least one Windows 2003 SP1 or later domain controller in the domain. This is necessary for /PrepareLegacyExchangePermissions to function -->
									<!-- // NOTE: It is possible to move DCs out of the (non-localized) 'Domain Controllers' OU which means that our search won't pick them up -->
									<!-- // NOTE: However, a domain-wide search with this LDAP filter is almost sure to time-out -->
									<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="ou=Domain Controllers,%NCNAME%" Key3="(&amp;(objectClass=computer)(serverReferenceBL=*)(|(&amp;(operatingSystemVersion=5.2*)(operatingSystemServicePack=*))(operatingSystemVersion=6.*)))">
										<Setting Key1="cn">
											<Rule Name="szDomainValidDC" Query="$."/>
										</Setting>
										<Setting Key1="operatingSystemVersion"/>
										<Setting Key1="operatingSystemServicePack"/>
									</Object>

									<!-- // Verify that the EES/EDS groups exist. Initialize-ExchangeLegacyPermissions skips domains where these groups don't exist -->
									<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Exchange Enterprise Servers,cn=Users,%NCNAME%">
										<Setting Key1="objectGuid">
											<Rule Name="fEESGroupExists" Query="count($.) &gt;0"/>
										</Setting>
									</Object>
									<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Exchange Domain Servers,cn=Users,%NCNAME%">
										<Setting Key1="objectGuid">
											<Rule Name="fEDSGroupExists" Query="count($.) &gt;0"/>
										</Setting>
									</Object>

									<!-- // Find out if there is a RUS configured for this domain -->
									<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Microsoft Exchange,cn=Services,%CONFIGDN%" Key3="(&amp;(objectClass=msExchAddressListService)(msExchDomainLink=%NCNAME%))" Key4="Subtree">
										<Setting Key1="cn">
											<Rule Name="szRUSName" Query="$."/>
										</Setting>
									</Object>
								</Object>
							</Object>
						</Object>

						<!-- Get SID of root domain -->
						<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%ROOTDN%">
							<Setting Key1="objectSid" Format="Sid" Substitution="SIDROOTDOMAIN"/>

							<!-- Verify that the root domain is in native mode -->
							<Setting Key1="nTMixedDomain">
								<Rule Name="fRootDomainModeMixed" Query="$.=1" Error="Error" Text="Active Directory root domain '{3}' is in mixed mode. To install Exchange Server 2010, this domain must be Windows 2003 native mode or above." S3="%ROOTDN%" Role="Global" GUID="b88d3253-db66-4bc2-9423-65aff6b9f0a9"/>
							</Setting>

							<!-- Check to see if the logged-on user is a member of the Schema Admins group. -->
							<Object Type="CheckTokenMembership" Key1="%SIDROOTDOMAIN%-518" Name="SchemaAdmins">
								<Rule Name="fSchemaAdmin" Query="count(../Instance[@Name='SchemaAdmins']) &gt;0"/>
							</Object>

							<!-- Check to see if the logged-on user is a member of the Enterprise Admins group. -->
							<Object Type="CheckTokenMembership" Key1="%SIDROOTDOMAIN%-519" Name="EnterpriseAdmins">
								<Rule Name="fEnterpriseAdmin" Query="count(../Instance[@Name='EnterpriseAdmins']) &gt;0"/>
							</Object>
						</Object>

						<!-- Discover the distinguishedName of the Exchange Org Admins group. -->
						<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="cn=Microsoft Exchange,cn=Services,%CONFIGDN%">
							<Setting Key1="otherWellKnownObjects" Substitution="ORGDN" SubstitutionFormat="(^B:32:C262A929D691B74A9E068728F8F842EA:(?'dn'.*))?.*$----${dn}"/>
							<Object Type="Directory" Key1="LDAP://%GLOBALCATALOG%" Key2="%ORGDN%">
								<Setting Key1="sAMAccountName">
									<Rule Name="szExOrgAdminAccountName" Query="$."/>
								</Setting>
								<Setting Key1="objectSid" Format="Sid" Substitution="SIDEXORGADMINS"/>

								<!-- Check to see if the logged-on user is a member of the Exchange Org Admins group. -->
								<Object Type="CheckTokenMembership" Key1="%SIDEXORGADMINS%" Name="ExchangeOrgAdmins">
									<Rule Name="fExOrgAdmin" Query="count(../Instance[@Name='ExchangeOrgAdmins']) &gt;0"/>
								</Object>
							</Object>
						</Object>

					</Object>
				</Object>
			</Object>
		</Object>

	</Type>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>59wWim4F/iWztDjQctsPCO3PdiE=</DigestValue></Reference></SignedInfo><SignatureValue>
    luk+15FnvDhK8u4SHohX897B+It9aB4rjN4l6a0SqGbeP/s9qfIzwizg3igGka409Rrtr8Xr
    ceB1Y337edj4igUG2Q+KhNdgWMG58O4w/tU12tHtu2nDCQVHzlguVdl06xz/z7YtAYYLlAPQ
    V07zhY7iTapOGZvX9PIZxaMcKHY93mJoL0XTIz0exUet+QwGN0fMatyaUtSKMIap8Ak74GKm
    S+3drgeyw8V7Pbc7N51jDSMxdgdNQNX72nQFpHHon5vggrSSeKumZXNGTg0acaY+N3Cn+gei
    xR2SByUeYiUdghWkZfwSKVZUBi61A09dcjvzO00QDnHy3q/eeNSaAQ==
  </SignatureValue><KeyInfo>
      <KeyValue>
        <RSAKeyValue>
          <Modulus>
            vXK0ieccn4XHdLhgXAM2PZz9mXqaKUYisKeHU+3uRjrHWwULV6i3ygXM00x3R3CFs+XL32fn
            o/10J5Nnn9eKA0QwxvfJusk6HQhWRE8XCA35tBloqiQc+wVXhenFTgchN6frziwvtkLNIQWn
            1ubTKFfHG3rOKTYHzZ5VzLvxIuuoI6QNKcL70MNaPmM9xyxJC3t5hfCI73G9Q1rjo7MN81X7
            JeDiINPnml6UpTMtKH9XG1VqDDJE72Zsb/A4nO8CrZqh3ZgHEA48GGnieU5GFOC5jNB1bZys
            AJwtQvVRuFr0eEWD6S58K7tdzRlhKK2UQwrFakL/tTKupCki3hbo0w==
          </Modulus>
          <Exponent>AQAB</Exponent>
        </RSAKeyValue>
      </KeyValue>
      <X509Data>
        <X509Certificate>
          MIIEejCCA2KgAwIBAgIKYQYngQAAAAAACDANBgkqhkiG9w0BAQUFADB5MQswCQYDVQQGEwJV
          UzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWlj
          cm9zb2Z0IENvcnBvcmF0aW9uMSMwIQYDVQQDExpNaWNyb3NvZnQgQ29kZSBTaWduaW5nIFBD
          QTAeFw0wODEwMjIyMTI0NTVaFw0xMDAxMjIyMTM0NTVaMIGDMQswCQYDVQQGEwJVUzETMBEG
          A1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0
          IENvcnBvcmF0aW9uMQ0wCwYDVQQLEwRNT1BSMR4wHAYDVQQDExVNaWNyb3NvZnQgQ29ycG9y
          YXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9crSJ5xyfhcd0uGBcAzY9
          nP2ZepopRiKwp4dT7e5GOsdbBQtXqLfKBczTTHdHcIWz5cvfZ+ej/XQnk2ef14oDRDDG98m6
          yTodCFZETxcIDfm0GWiqJBz7BVeF6cVOByE3p+vOLC+2Qs0hBafW5tMoV8cbes4pNgfNnlXM
          u/Ei66gjpA0pwvvQw1o+Yz3HLEkLe3mF8Ijvcb1DWuOjsw3zVfsl4OIg0+eaXpSlMy0of1cb
          VWoMMkTvZmxv8Dic7wKtmqHdmAcQDjwYaeJ5TkYU4LmM0HVtnKwAnC1C9VG4WvR4RYPpLnwr
          u13NGWEorZRDCsVqQv+1Mq6kKSLeFujTAgMBAAGjgfgwgfUwEwYDVR0lBAwwCgYIKwYBBQUH
          AwMwHQYDVR0OBBYEFCPRcypMvfvlIfpxHpkV0Rf5xKaKMA4GA1UdDwEB/wQEAwIHgDAfBgNV
          HSMEGDAWgBTMHc52AHBbr/HaxE6aUUQuo0Rj8DBEBgNVHR8EPTA7MDmgN6A1hjNodHRwOi8v
          Y3JsLm1pY3Jvc29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9DU1BDQS5jcmwwSAYIKwYBBQUH
          AQEEPDA6MDgGCCsGAQUFBzAChixodHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRz
          L0NTUENBLmNydDANBgkqhkiG9w0BAQUFAAOCAQEAQynPY71s43Ntw5nXbQyIO8ZIc3olzizi
          N3udNJ+9I86+39hceRFrE1EgAWO5cvcI48Z9USoWKNTR55sqzxgN0hNxkSnsVr351sUNL69l
          LW1NRSlWcoRPP9JqHUFiqXlcjvDHd4rLAiguncecK+W5Kgnd7Jfi5XqNXhCIU6HdYE93mHFg
          qFs5kdOrEh8F6cNFqdPCUbmvuNz8BoQA9HSj2//MHaAjBQfkJzXCl5AZqoJgJ+j7hCse0QTL
          js+CDdeoTUNAddLe3XfvilxrD4dkj7S6t7qrZ1QhRapKaOdUXosUXGd47JBcAxCRCJ0kIJfo
          3wARcKn5snJwt67iwp8WAg==
        </X509Certificate>
      </X509Data>
      <X509Data>
        <X509Certificate>
          MIIEEjCCAvqgAwIBAgIPAMEAizw8iBHRPvZj7N9AMA0GCSqGSIb3DQEBBAUAMHAxKzApBgNV
          BAsTIkNvcHlyaWdodCAoYykgMTk5NyBNaWNyb3NvZnQgQ29ycC4xHjAcBgNVBAsTFU1pY3Jv
          c29mdCBDb3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFJvb3QgQXV0aG9yaXR5MB4X
          DTk3MDExMDA3MDAwMFoXDTIwMTIzMTA3MDAwMFowcDErMCkGA1UECxMiQ29weXJpZ2h0IChj
          KSAxOTk3IE1pY3Jvc29mdCBDb3JwLjEeMBwGA1UECxMVTWljcm9zb2Z0IENvcnBvcmF0aW9u
          MSEwHwYDVQQDExhNaWNyb3NvZnQgUm9vdCBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUA
          A4IBDwAwggEKAoIBAQCpAr3BcOY78k4bKJ+XeF4w6qKpjSVf+P6VTKO3/p2iID58UaKboo9g
          MmvRQmR57qx2yVTa8uuchhyPn4Rms8VremIj1h083g8BkuiWxL8tZpqaaCaZ0Dosvwy1WCbB
          RucKPjiWLKkoOajsSYNC44QPu5psVWGsgnyhYC13TOmZtGQ7mlAcMQgkFJ+p55ErGOY9mGMU
          YFgFZZ8dN1KH96fvlALGG9O/VUWziYC/OuxUlE6u/ad6bXROrxjMlgkoIQBXkGBpN7tLEgc8
          Vv9b+6RmCgim0oFWV++2O14WgXcE2va+roCV/rDNf9anGnJcPMq88AijIjCzBoXJsyB3E4Xf
          AgMBAAGjgagwgaUwgaIGA1UdAQSBmjCBl4AQW9Bw72lyniNRfhSyTY7/y6FyMHAxKzApBgNV
          BAsTIkNvcHlyaWdodCAoYykgMTk5NyBNaWNyb3NvZnQgQ29ycC4xHjAcBgNVBAsTFU1pY3Jv
          c29mdCBDb3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFJvb3QgQXV0aG9yaXR5gg8A
          wQCLPDyIEdE+9mPs30AwDQYJKoZIhvcNAQEEBQADggEBAJXoC8CN85cYNe24ASTYdxHzXGAy
          n54Lyz4FkYiPyTrmIfLwV5MstaBHyGLv/NfMOztaqTZUaf4kbT/JzKreBXzdMY09nxBwarv+
          Ek8YacD80EPjEVogT+pie6+qGcgrNyUtvmWhEoolD2Oj91Qc+SHJ1hXzUqxuQzIH/YIX+OVn
          bA1R9r3xUse958Qw/CAxCYgdlSkaTdUdAqXxgOADtFv0sd3IV+5lScdSVLa0AygS/5DW8AiP
          friXxas3LOR65Kh343agANBqP8HSNorgQRKoNWobats14dQcBOSoRQTIWjM4bk0cDWK3CqKM
          09VUP0bNHFWmcNsSOoeTdZ+n0qA=
        </X509Certificate>
      </X509Data>
      <X509Data>
        <X509Certificate>
          MIIEYDCCA0ygAwIBAgIKLqsR3FD/XJ3LwDAJBgUrDgMCHQUAMHAxKzApBgNVBAsTIkNvcHly
          aWdodCAoYykgMTk5NyBNaWNyb3NvZnQgQ29ycC4xHjAcBgNVBAsTFU1pY3Jvc29mdCBDb3Jw
          b3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFJvb3QgQXV0aG9yaXR5MB4XDTA3MDgyMjIy
          MzEwMloXDTEyMDgyNTA3MDAwMFoweTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0
          b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEj
          MCEGA1UEAxMaTWljcm9zb2Z0IENvZGUgU2lnbmluZyBQQ0EwggEiMA0GCSqGSIb3DQEBAQUA
          A4IBDwAwggEKAoIBAQC3eX3WXbNFOag0rDHa+SU1SXfA+x+ex0Vx79FG6NSMw2tMUmL0mQLD
          TdhJbC8kPmW/ziO3C0i3f3XdRb2qjw5QxSUr8qDnDSMf0UEk+mKZzxlFpZNKH5nNsy8iw0ot
          fG/ZFR47jDkQOd29KfRmOy0BMv/+J0imtWwBh5z7urJjf4L5XKCBhIWOsPK4lKPPOKZQhRcn
          h07dMPYAPfTG+T2BvobtbDmnLjT2tC6vCn1ikXhmnJhzDYav8sTzILlPEo1jyyzZMkUZ7rtK
          ljtQUxjOZlF5qq2HyFY+n4JQiG4FsTXBeyS9UmY9mU7MK34zboRHBtGe0EqGAm6GAKTAh99T
          AgMBAAGjgfowgfcwEwYDVR0lBAwwCgYIKwYBBQUHAwMwgaIGA1UdAQSBmjCBl4AQW9Bw72ly
          niNRfhSyTY7/y6FyMHAxKzApBgNVBAsTIkNvcHlyaWdodCAoYykgMTk5NyBNaWNyb3NvZnQg
          Q29ycC4xHjAcBgNVBAsTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9z
          b2Z0IFJvb3QgQXV0aG9yaXR5gg8AwQCLPDyIEdE+9mPs30AwDwYDVR0TAQH/BAUwAwEB/zAd
          BgNVHQ4EFgQUzB3OdgBwW6/x2sROmlFELqNEY/AwCwYDVR0PBAQDAgGGMAkGBSsOAwIdBQAD
          ggEBAHurrn5KJvLOvE50olgndCp1s4b9q0yUeABN6crrGNxpxQ6ifPMCQ8bKh8z4U8zCn71W
          b/BjRKlEAO6WyJrVHLgLnxkNlNfaHq0pfe/tpnOsj945jj2Yarw4bdKIryP93+nWaQmRiL3+
          4QC7NPP3fPkQEi4F6ymWk0JrKHG3OI/gBw3JXWjNvYBBa2aou7e7jjTK8gMQfHr10uBC33v+
          4eGs/vbf1Q2zcNaS40+2OKJ8LdQ92zQLYjcCn4FqI4n2XGOPsFq7OddgjFWEGjP1O5igggyi
          X4uzLLehpcur2iC2vzAZhSAUDSq8UvRB4F4w45IoaYfBcOLzp6vOgEJydg4=
        </X509Certificate>
      </X509Data>
    </KeyInfo><Object id="ts-countersig"><X509Data><X509Certificate>MIIEnTCCA4WgAwIBAgIKYUl87QAAAAAABTANBgkqhkiG9w0BAQUFADB5MQswCQYDVQQGEwJVUzET
MBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0
IENvcnBvcmF0aW9uMSMwIQYDVQQDExpNaWNyb3NvZnQgVGltZXN0YW1waW5nIFBDQTAeFw0wNjA5
MTYwMTU1MjJaFw0xMTA5MTYwMjA1MjJaMIGmMQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGlu
Z3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMScw
JQYDVQQLEx5uQ2lwaGVyIERTRSBFU046MTBEOC01ODQ3LUNCRjgxJzAlBgNVBAMTHk1pY3Jvc29m
dCBUaW1lc3RhbXBpbmcgU2VydmljZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOq6
BWPI2XmuhEQ+pbPE7UyeJN85dh4J1jJKWHjSK9mlB5Dv5z37vSZ8o/vlfX4yz9k9izk38vjYOzQW
1JKC+zTsaIVyGo/guEzguIXzMwoCwaJ2czVMXfG34Up9HbiUeNv/HoUVQkZxzn8nVxLRg087z/re
9ovtPwDj1d5h+ReNS6SBPPVpQOrhib8HT7p0e+kM5Ufqq2zx1WeBCPgWyn0Tu3PiCUz6YvvtoDma
Ov7rEchhHmJY2ApUg9U7S0viVb0vYBqOkgVD2l3rggojlwmgBTFli5NOHkEhopKQ/UVERW81sUU3
rWmpZfk0Q7EXwjs54RCM8hqH41RQHzudMa0CAwEAAaOB+DCB9TAdBgNVHQ4EFgQUfnLwLj9WKeAl
92i4AfxL4X7P4z4wHwYDVR0jBBgwFoAUb+hOP5e5NKtLho+8nOqsO0FDxtAwRAYDVR0fBD0wOzA5
oDegNYYzaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraS9jcmwvcHJvZHVjdHMvdHNwY2EuY3Js
MEgGCCsGAQUFBwEBBDwwOjA4BggrBgEFBQcwAoYsaHR0cDovL3d3dy5taWNyb3NvZnQuY29tL3Br
aS9jZXJ0cy90c3BjYS5jcnQwEwYDVR0lBAwwCgYIKwYBBQUHAwgwDgYDVR0PAQH/BAQDAgbAMA0G
CSqGSIb3DQEBBQUAA4IBAQBpeoIJDBbR3s9GiS6/0TR6gX8nKEEq89Mhkg6XrV9TXin57cFUSqh9
9xPQCxT5TfKGFQBu44MdKEWnLDky3W+aN1ruI1KPVAONP6ecZDj2NsgUQ7Y6PpjJDcNxgSjzZqcx
4lxdj/lSUuFc65OQnWkJTInR0XZMNA1q4XxEpytbg1R/RSQZJcSKRsUl4xmAaSkU9hfG8CIsgUZe
K/T5psZ3PiNv+aZkhY6iYg2pLR6o5ZA+f/+wjvyX7PH9BK/NSc5adKz68xMfGznOo7TWvPS07sit
8lYe+zzxyNYqRLy/nD99ZhjNsiBjCspAPWUyGXyyuD3BJkhOIhmZbowwwfGR</X509Certificate></X509Data><X509Data><X509Certificate>MIIEnTCCA4WgAwIBAgIQaguZT8AAJasR20UfWHpnojANBgkqhkiG9w0BAQUFADBwMSswKQYDVQQL
EyJDb3B5cmlnaHQgKGMpIDE5OTcgTWljcm9zb2Z0IENvcnAuMR4wHAYDVQQLExVNaWNyb3NvZnQg
Q29ycG9yYXRpb24xITAfBgNVBAMTGE1pY3Jvc29mdCBSb290IEF1dGhvcml0eTAeFw0wNjA5MTYw
MTA0NDdaFw0xOTA5MTUwNzAwMDBaMHkxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9u
MRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xIzAhBgNV
BAMTGk1pY3Jvc29mdCBUaW1lc3RhbXBpbmcgUENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEA3Ddu+6/IQkpxGMjOSD5TwPqrFLosMrsST1LIg+0+M9lJMZIotpFk4B9QhLrCS9F/Bfjv
db6Lx6jVrmlwZngnZui2t++Fuc3uqv0SpAtZIikvz0DZVgQbdrVtZG1KVNvd8d6/n4PHgN9/TAI3
lPXAnghWHmhHzdnAdlwvfbYlBLRWW2ocY/+AfDzu1QQlTTl3dAddwlzYhjcsdckO6h45CXx2/p1s
bnrg7D6Pl55xDl8qTxhiYDKe0oNOKyJcaEWL3i+EEFCy+bUajWzuJZsT+MsQ14UO9IJ2czbGlXqi
zGAG7AWwhjO3+JRbhEGEWIWUbrAfLEjMb5xD4GrofyaOawIDAQABo4IBKDCCASQwEwYDVR0lBAww
CgYIKwYBBQUHAwgwgaIGA1UdAQSBmjCBl4AQW9Bw72lyniNRfhSyTY7/y6FyMHAxKzApBgNVBAsT
IkNvcHlyaWdodCAoYykgMTk5NyBNaWNyb3NvZnQgQ29ycC4xHjAcBgNVBAsTFU1pY3Jvc29mdCBD
b3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFJvb3QgQXV0aG9yaXR5gg8AwQCLPDyIEdE+
9mPs30AwEAYJKwYBBAGCNxUBBAMCAQAwHQYDVR0OBBYEFG/oTj+XuTSrS4aPvJzqrDtBQ8bQMBkG
CSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMAsGA1UdDwQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MA0G
CSqGSIb3DQEBBQUAA4IBAQCUTRExwnxQuxGOoWEHAQ6McEWN73NUvT8JBS3/uFFThRztOZG3o1YL
3oy2OxvR+6ynybexUSEbbwhpfmsDoiJG7Wy0bXwiuEbThPOND74HijbB637pcF1Fn5LSzM7djsDh
vyrNfOzJrjLVh7nLY8Q20Rghv3beO5qzG3OeIYjYtLQSVIz0nMJlSpooJpxgig87xxNleEi7z62D
Ok+wYljeMOnpOR3jifLaOYH5EyGMZIBjBgSW8poCQy97Roi6/wLZZflK3toDdJOzBW4MzJ3cKGF8
SPEXnBEhOAIch6wGxZYyuOVAxlM9vamJ3uhmN430IpaczLB3VFE61nJEsiP2</X509Certificate></X509Data><CounterSignature xmlns="http://schemas.microsoft.com/xmldsig/timestamp/2003" ts-format="cms-timestamp-message">MIIGuAYJKoZIhvcNAQcCoIIGqTCCBqUCAQMxCTAHBgUrDgMCGjCCARMGCSqGSIb3DQEHAaCCAQQE
ggEAluk+15FnvDhK8u4SHohX897B+It9aB4rjN4l6a0SqGbeP/s9qfIzwizg3igGka409Rrtr8Xr
ceB1Y337edj4igUG2Q+KhNdgWMG58O4w/tU12tHtu2nDCQVHzlguVdl06xz/z7YtAYYLlAPQV07z
hY7iTapOGZvX9PIZxaMcKHY93mJoL0XTIz0exUet+QwGN0fMatyaUtSKMIap8Ak74GKmS+3drgey
w8V7Pbc7N51jDSMxdgdNQNX72nQFpHHon5vggrSSeKumZXNGTg0acaY+N3Cn+geixR2SByUeYiUd
ghWkZfwSKVZUBi61A09dcjvzO00QDnHy3q/eeNSaAaCCA2yhggNoMIICUAIBATCB1qGBrKSBqTCB
pjELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAc
BgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEnMCUGA1UECxMebkNpcGhlciBEU0UgRVNOOjEw
RDgtNTg0Ny1DQkY4MScwJQYDVQQDEx5NaWNyb3NvZnQgVGltZXN0YW1waW5nIFNlcnZpY2WiJQoB
ATAJBgUrDgMCGgUAAxUAotV9Y88zGxd74UcIj+q+xziL4B2ggcEwgb6kgbswgbgxCzAJBgNVBAYT
AlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
b3NvZnQgQ29ycG9yYXRpb24xDDAKBgNVBAsTA0FPQzEnMCUGA1UECxMebkNpcGhlciBOVFMgRVNO
OjIyQTEtMjA4RS04N0IwMSswKQYDVQQDEyJNaWNyb3NvZnQgVGltZSBTb3VyY2UgTWFzdGVyIENs
b2NrMA0GCSqGSIb3DQEBBQUAAgUAzmZaTDAiGA8yMDA5MDkyNDIwNTEyNFoYDzIwMDkwOTI1MjA1
MTI0WjB0MDoGCisGAQQBhFkKBAExLDAqMAoCBQDOZlpMAgEAMAcCAQACAhDOMAcCAQACAjCCMAoC
BQDOZ6vMAgEAMDYGCisGAQQBhFkKBAIxKDAmMAwGCisGAQQBhFkKAwGgCjAIAgEAAgMHoSChCjAI
AgEAAgMHoSAwDQYJKoZIhvcNAQEFBQADggEBAKRPPdqj6Ijbn0ecUGeey1x63TyMNdA3B0LHNcVb
yfwFtxsrA4KhzOOVxi7A5m4+neMTsVJc1QAx/oO7sg5XtgzqJ4K1aR5NzQevqezy7b14qHZTZvyS
C/ztAsOc346BK/qUm0xowwHBspJXwbRzTri6yz9SNIpNAmzyrS7o+VDVCxgd7SObBZtcf5kSm56b
DR17I0nTDfMzvzk27+gCGiVbvTwItXhQfuUjDi33S8pP2nPYwnL29lmf6eLCiAvX2s8YMfO61o8M
PJrgAglw7yuT6yYT3tkHRZpiz32bFWdZYFzCbgMsxY80lJQ1wfg51IZ7r9lp7jbs1ruUFn77RgEx
ggIMMIICCAIBATCBhzB5MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UE
BxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSMwIQYDVQQDExpNaWNy
b3NvZnQgVGltZXN0YW1waW5nIFBDQQIKYUl87QAAAAAABTAHBgUrDgMCGqBdMBgGCSqGSIb3DQEJ
AzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA5MDkyNTA1NTA1MlowIwYJKoZIhvcNAQkE
MRYEFNJukSR7K0T+a6lu7yYQTx/jJ9IbMA0GCSqGSIb3DQEBBQUABIIBAJjgk5cOML+3MiPfiLZd
K1whxhGlCFmgG5p27aLpHi1S+qzrO4aULNpOQ4CtvvKj7vATtHYQf3xw+WL5yoDn7sWnbN2+W5/6
HuAwWUO/ZukoS7KTLPAmpoMEy+b64zF0pdB/ZJMf2y6F9hGTVG2bTswsB6wu6VH5rdsPNrAfIlj4
3eFSs2B4hfdCjRFZepOEpOVd8ZwS0VqnwwHC2wGCeyQCnmeHveGwXfJjuXOsfpESCSjEXG+GdQ28
SXkxgK5Z/6zFoG0kTlOXJ983UGiJFpHlIwLXhP6HVevIZjfodrSsIJ7wteImUk4y6BoFH99/GwnR
vDM0MYdSmVgLB1mtE+M=</CounterSignature></Object></Signature></ObjectCollector>