<Wizard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<!-- ** Type file for the Microsoft Exchange Server Performance Analyzer tool (ExPTA) - Errors/Additions/Comments, please e-mail EXPTADIS@MICROSOFT.COM ** -->

	<!-- ********************************************************************* -->
	<!-- Copyright (C) 2004-2006 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="Text,Title">RestrictionType</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text,Title">Option</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text,Title">Setting</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text">String</_locTag>
		<_locTag _loc="locNone" _locAttrData="Text">IssueLink</_locTag>
		<_locTag _loc="locNone" _locAttrData="Title">Report</_locTag>
		<_locTag _loc="locNone" _locAttrData="Title">Action</_locTag>
	</_locDefinition>

	<Configuration ConfigVersion="1.3.3.0" ConfigName="E12Collection" LongNameStart="Microsoft Exchange Server" LongNameEnd="Performance Troubleshooting Analyzer" ShortName="Exchange Server Performance Troubleshooting Analyzer">

		<ObjectProcessor Name="Step" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.StepObjectProcessor"/>
		<ObjectProcessor Name="Panel" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.PanelObjectProcessor"/>
		<ObjectProcessor Name="Information" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.PanelObjectProcessor"/>
		<ObjectProcessor Name="Progress" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.ProgressPanelObjectProcessor"/>
		<ObjectProcessor Name="Action" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.GroupObjectProcessor"/>
		<ObjectProcessor Name="Control" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.ControlObjectProcessor"/>
		<ObjectProcessor Name="IfResults" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.IfResultsObjectProcessor"/>
		<ObjectProcessor Name="Credentials" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.CredentialsObjectProcessor"/>
		<ObjectProcessor Name="Variable" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.VariableInfoObjectProcessor"/>

		<ObjectProcessor Name="Group" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.GroupObjectProcessor"/>
		<ObjectProcessor Name="Cache" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.CacheObjectProcessor"/>
		<ObjectProcessor Name="If" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.IfObjectProcessor"/>
		<ObjectProcessor Name="Registry" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.RegistryObjectProcessor"/>
		<ObjectProcessor Name="File" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.FileObjectProcessor"/>
		<ObjectProcessor Name="Perfmon" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PerfmonObjectProcessor"/>
		<ObjectProcessor Name="Pdh" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor"/>
		<ObjectProcessor Name="PdhInfo" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhInfoObjectProcessor"/>
		<ObjectProcessor Name="PdhCollect" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhCollectObjectProcessor"/>
		<ObjectProcessor Name="Command" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.CommandLineObjectProcessor"/>
		<ObjectProcessor Name="Engine" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.EngineObjectProcessor"/>
		<ObjectProcessor Name="MonadCommand" Assembly="ExBPA.ExchangeCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.MonadCommandObjectProcessor"/>
		<ObjectProcessor Name="MonadData" Assembly="ExBPA.ExchangeCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.MonadDataObjectProcessor"/>

		<ExtFunction Name="longest-starts-with" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Function="LongestStartsWith" Returns="String" Parameters="String,Any"/>
		<ExtFunction Name="regSetValue" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="RegSetValue" Returns="Boolean" Parameters="String,String,String,String"/>
		<ExtFunction Name="setLabel" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="SetLabel" Returns="Boolean" Parameters="String"/>
		<ExtFunction Name="nodesort" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="NodeSort" Returns="NodeSet" Parameters="NodeSet,String[,String]"/>
		<ExtFunction Name="ifnumber" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="IfNumber" Returns="NodeSet" Parameters="Number,Any[,Any]"/>
		<ExtFunction Name="roundto" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Function="RoundTo" Returns="Number" Parameters="Number,Number"/>
		<ExtFormat Name="Average" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Convert="AverageFormat"/>
		<ExtFormat Name="Median" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Convert="MedianFormat"/>
		<ExtFormat Name="Max" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Convert="MaxFormat"/>
		<ExtFormat Name="Min" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Convert="MinFormat"/>
		<ExtFormat Name="Sigma" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Convert="SigmaFormat"/>
		<ExtFormat Name="NinetiethPercentile" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Convert="NinetiethPercentileFormat"/>

		<Template Name="fPerfCounterAverage" Query="ifnumber($.,roundto($.,2))" Title="Average '{1}' = {2}{3}" Text="The average value for '{1}' was {2}{3}." P2="roundto($.,2)" S3=""/>
		<Template Name="fPerfCounterError" Query="ifnumber($.,$. &gt; @S4)" Error="Error" Sev="2" ReportIssue="Issue" Title="Average '{1}' beyond error threshold" Text="The average '{1}' was {2}{3}, which is greater than the error threshold of {4}{3}." P2="roundto($.,2)"/>
		<Template Name="tProcessPercentCPU" Query="ifnumber($iProcessProcessorTime[../../../@Name = concat('Process(',$_/@S1,')')],$iProcessProcessorTime[../../../@Name = concat('Process(',$_/@S1,')')],0)" Title="Process '{1}' CPU usage" Text="The process '{1}' is consuming {2}% of the CPU." P2="$iProcessProcessorTime[../../../@Name = concat('Process(',$_/@S1,')')]"/>
		<Template Name="tProcessPercentCPUThreshold" Error="Error" Title="Process '{1}' CPU usage is beyond threshold" Text="The process '{1}' is consuming {2}% of the CPU, which is greater than the threshold of {3}%."/>
		<Template Name="tAvgValueCounter" Query="ifnumber($.,roundto($.,2))" Text="Average '{6}' = {1}." P1="roundto($.,2)" P6="concat(../../@Name,'\',../@Key2)"/>
		<Template Name="tMaxValueCounter" Query="ifnumber($.,roundto($.,2))" Text="Maximum '{6}' = {1}." P1="roundto($.,2)" P6="concat(../../@Name,'\',../@Key2)"/>
		<Template Name="tValueCounter" Query="ifnumber($.,roundto($.,2))" Text="'{6}' = {1}." P1="roundto($.,2)" P6="concat(../../@Name,'\',../@Key2)"/>
		<Template Name="tErrorIssueThreshold" Error="Error" Sev="1" ReportIssue="Issue" Title="'{6}' above error threshold" Text="'{6}' is {1}, which is higher than the error threshold of {2}." P6="concat(../../@Name,'\',../@Key2)"/>
		<Template Name="tWarnErrorThreshold" Error="Warning" Sev="1" ReportIssue="Issue" Title="'{6}' above warning threshold" Text="'{6}' should always be below {2}. The measured value is {1}." P6="concat(../../@Name,'\',../@Key2)"/>

		<CustomReports>
			<Report Title="Overview" ArrangeByText="" Query="/Wizard/Object[@Type='Step' and not(@StepStatus='Deactivated')]/*//Message[@ReportIssue='Summary']"/>
			<Report Title="Performance Issues" ArrangeByText="Area,Time Range" Query="/Wizard/Object[@Type='Step' and not(@StepStatus='Deactivated')]/*//Message[@ReportIssue='Issue']"/>
			<Report Title="Execution Issues" ArrangeByText="Area,Time Range" Query="/Wizard/Object[@Type='Step' and not(@StepStatus='Deactivated')]/*//Message[not(@ReportIssue) and not (@NextStep) and not(@Display='Hide') and not(@Error='None' or not(@Error))]"/>
			<Report Title="Recommendations" ArrangeByText="" Query="/Wizard/Object[@Type='Step' and not(@StepStatus='Deactivated')]/*//Message[@ReportIssue='Recommendation']"/>
			<Report Title="General Information" ArrangeByText="Area" Query="/Wizard/Object[@Type='Step' and not(@StepStatus='Deactivated')]/*//Message[not(@ReportIssue) and not (@NextStep) and not(@Display='Hide') and (@Error='None' or not(@Error))]"/>
		</CustomReports>

	</Configuration>

	<Type Name="ProcessPercentCPUThreshold">
		<Rule Name="fProcessorTime" Query="$iProcessProcessorTime[../../../@Name = concat('Process(',%pProcName%,')')]"/>
		<Rule Name="fProcessorThreshold" Query="%pThresholdCheck%"/>
		<Rule Name="fProcessAboveThreshold" Query="ifnumber($fProcessorTime,ifnumber($fProcessorThreshold,if($fProcessorThreshold &gt; 0,$fProcessorTime &gt; $fProcessorThreshold)))" Template="tProcessPercentCPUThreshold" S1="%pProcName%" P2="$fProcessorTime" P3="$fProcessorThreshold"/>
	</Type>
	<Type Name="ErrorIssueThreshold">
		<Rule Name="fValue" Query="%pPerfValue%"/>
		<Rule Name="fThreshold" Query="%pThresholdCheck%"/>
		<Rule Name="fValueAboveThreshold" Query="ifnumber($fValue,$fValue &gt; $fThreshold)" Template="tErrorIssueThreshold" P1="$fValue" P2="$fThreshold" GUID="%pGUID%"/>
	</Type>
	<!-- ****************************************************************************************************************** -->
	<Object Type="Step" Name="GenerateCounterList" Title="Create Performance Data Counter List" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%SERVERNAME%" Substitution="szSERVER" Display="Hide"/>
			<Setting Key1="%varLocalPDHDir%" Substitution="szLocalPerfLogsDirectory" Display="Hide"/>
			<Setting Key1="%varIsExchange12%" Substitution="varIsExchange12" Display="Hide"/>
			<Setting Key1="%varIsExchange12RTM%" Substitution="varIsExchange12RTM" Display="Hide"/>
			<Setting Key1="%varIsExchange12SP1orHigher%" Substitution="varIsExchange12SP1orHigher" Display="Hide"/>
			<Setting Key1="%varIsExchange2000%" Substitution="varIsExchange2000" Display="Hide"/>
			<Setting Key1="%varIsExchange2003%" Substitution="varIsExchange2003" Display="Hide"/>
			<Setting Key1="%varIsHubTransportServer%" Substitution="varIsHubTransportServer" Display="Hide"/>
			<Setting Key1="%varIsClientAccessServer%" Substitution="varIsClientAccessServer" Display="Hide"/>
			<Setting Key1="%varIsEdgeServer%" Substitution="varIsEdgeServer" Display="Hide"/>
			<Setting Key1="%varIsMailboxServer%" Substitution="varIsMailboxServer" Display="Hide"/>
			<Setting Key1="%varIsUnifiedMessagingServer%" Substitution="varIsUnifiedMessagingServer" Display="Hide"/>
			<Setting Key1="%MailboxCount%" Substitution="MailboxCount" Display="Hide"/>
			<Setting Key1="%varCollectPDHLocally%" Substitution="varCollectPDHLocally" Display="Hide"/>
			<Setting Key1="%SQUEAKYLOBSTER%" Substitution="SQUEAKYLOBSTER" Display="Hide"/>
			<Setting Key1="%varIsWinVer2008%" Substitution="varIsWinVer2008" Display="Hide"/>

			<Object Type="Progress" Title="Creating a list of performance data counters for the Exchange server" Text="Please wait while a list of performance data counters is created." HelpId="html\0f7e8793-4cb3-497a-ae58-0de66e4e06dc.htm">
				<!-- This step generates the master list of performance counters, based on the server role.
					Add new perf counters here.		-->

				<Object Type="Group" Name="Collect Scheduled Data" Timeout="%500" Display="Hide" SecurityContext="EXLOGON">
					<Rule NextStep="CollectPerfMonData" Name="fCollectLocally" Query="@S1='1'" Text=" - Collect performance data" S1="%varCollectPDHLocally%"/>
					<Rule NextStep="CollectScheduledPerfMonData" Name="fCollectRemotely" Query="not(@S1='1')" Text=" - Collect performance data remotely" S1="%varCollectPDHLocally%"/>

						<Object Type="Command" Key2="cmd" Key3="/C dir %szLocalPerfLogsDirectory%">
							<Object Type="Command" Key2="cmd" Key3="/C del &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;">

								<Setting Key1="Output" Key2="stdout" Display="Hide"/>

								<!-- COUNTERS FOR ALL SERVERS, ALL ROLES -->
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Processor(_Total)\% Processor Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\LogicalDisk(*)\Avg. Disk Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\LogicalDisk(*)\Avg. Disk sec/Read&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\LogicalDisk(*)\Avg. Disk sec/Write&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\LogicalDisk(*)\Disk Reads/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\LogicalDisk(*)\Disk Writes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Memory\Available MBytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Memory\Transition Faults/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Memory\Transition Pages Repurposed/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Memory\Cache Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Memory\Page Reads/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\LogicalDisk(*)\Disk Transfers/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Memory\Free System Page Table Entries&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Memory\Pages/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Memory\Pool Nonpaged Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Memory\Pool Paged Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Paging File(_Total)\% Usage&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Network Interface(*)\Output Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Network Interface(*)\Current Bandwidth&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Network Interface(*)\Packets Outbound Errors&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Network Interface(*)\Bytes Total/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Network Interface(*)\Bytes Sent/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Network Interface(*)\Bytes Received/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(*)\% Processor Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(*)\ID Process&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\System\Context Switches/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\System\Processor Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(*)\% Privileged Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(System)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(System)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(_Total)\Working Set&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

								
								<!-- COUNTERS FOR ALL SERVERS THAT ACTUALLY HAVE AT LEAST 1 MAILBOX ON THEM -->
								<Object Type="If" Name="ExchangeMailboxServerInfo" Key1="%MailboxCount% &gt; 0">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(_Total)\Active Client Logons&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Public(_Total)\Active Client Logons&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(_Total)\Client Logons&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Public(_Total)\Client Logons&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\RPC Num. of Slow Packets&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Active User Count&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\RPC Averaged Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\RPC Requests&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\RPC Operations/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\VM Largest Block Size&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\VM Total 16MB Free Blocks&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\VM Total Free Blocks&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\VM Total Large Free Block Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Virus Scan Files Scanned/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Virus Scan Files Quarantined/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Virus Scan Messages Processed/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<Object Type="If" Name="Advanced Jet Counters" Key1="'%SQUEAKYLOBSTER%'='1' and not('%varIsExchange12SP1orHigher%'='1')">
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\I/O Log Reads Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\I/O Log Writes Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									</Object>

									<Object Type="If" Name="Advanced Jet Counters E12SP1OrHigher" Key1="'%SQUEAKYLOBSTER%'='1' and '%varIsExchange12SP1orHigher%'='1'">
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(Information Store)\I/O Log Reads Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(Information Store)\I/O Log Writes Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									</Object>

									<!-- COUNTERS FOR E2007SP1 MAILBOX SERVERS THAT HAVE MAILBOXES -->
									<!-- Note that varIsMailboxServer is true for all E12 mailbox servers regardless of whether they actually contain mailboxes;
										However, varIsMailboxServer is only true for E2003 and E2000 servers that have at least 10 mailboxes. -->
									<Object Type="If" Name="Exchange2007SP1MBXWithMailboxesServerInfo" Key1="'%varIsMailboxServer%'='1' and '%varIsExchange12SP1orHigher%'='1'">
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(Information Store)\Log Record Stalls/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(Information Store)\Log Threads Waiting&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(Information Store)\I/O Database Reads Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(Information Store)\I/O Database Writes Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(Information Store)\Version buckets allocated&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(*)\Log Bytes Write/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									</Object>

									<!-- COUNTERS FOR PRE-E2007SP1 MAILBOX SERVERS THAT HAVE MAILBOXES -->
									<Object Type="If" Name="Exchange2007AndOlder" Key1="('%varIsMailboxServer%'='1' or %MailboxCount% &gt; 0) and ('%varIsExchange2000%'='1' or '%varIsExchange2003%'='1' or '%varIsExchange12RTM%'='1')">
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\Database Cache Size&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\Database Page Fault Stalls/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\Log Record Stalls/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\Version buckets allocated&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\Log Threads Waiting&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\I/O Database Reads Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\I/O Database Writes Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
										<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\Log Records/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									</Object>
								</Object>

								<!-- COUNTERS FOR E2000 and E2003 SERVERS -->
								<Object Type="If" Name="Exchange2000_2003ServerInfo" Key1="'%varIsExchange2000%'='1' or '%varIsExchange2003%'='1'">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(emsmta)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(inetinfo)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(lsass)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(mad)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(store)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(inetinfo)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(lsass)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(mad)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(store)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Epoxy(IMAP)\Client Out Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Epoxy(IMAP)\Store Out Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Epoxy(POP3)\Client Out Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Epoxy(POP3)\Store Out Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Public(_Total)\Replication Receive Queue Size&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\SMTP Server(_Total)\Cat: LDAP searches/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\SMTP Server(_Total)\Categorizer Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\SMTP Server(_Total)\Remote Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\SMTP Server(_Total)\Remote Retry Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\SMTP Server(_Total)\Local Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Virus Scan Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeDSAccess Domain Controllers(*)\LDAP Search Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeDSAccess Domain Controllers(*)\LDAP Read Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeDSAccess Domain Controllers(*)\LDAP Read calls/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeDSAccess Domain Controllers(*)\LDAP Search calls/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeDSAccess Caches(*)\Cache Hits/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeDSAccess Caches(*)\LDAP Searches/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>

								<!-- COUNTERS FOR E2003 SERVERS -->
								<Object Type="If" Name="Exchange2003ServerInfo" Key1="'%varIsExchange2003%'='1'">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Exchmem: Number of Additional Heaps&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Exchmem: Number of heaps with memory errors&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Exchmem: Number of memory errors&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Exchmem: Current Bytes Allocated&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>

								<!-- COUNTERS FOR ALL E2007 SERVER ROLES -->
								<Object Type="If" Name="Exchange2007AllRolesServerInfo" Key1="'%varIsExchange12%'='1'">

									<!-- Process info -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(inetinfo)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(inetinfo)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(lsass)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(lsass)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(Microsoft.Exchange.Monitoring)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(Microsoft.Exchange.Monitoring)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\.NET CLR Exceptions(*)\# of Exceps Thrown / sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\.NET CLR Memory(*)\% Time in GC&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeADTopologyService)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeADTopologyService)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- Address lookups -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ADAccess Domain Controllers(*)\LDAP Read Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ADAccess Domain Controllers(*)\LDAP Read calls/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ADAccess Domain Controllers(*)\LDAP Search calls/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ADAccess Domain Controllers(*)\LDAP Search Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ADAccess Domain Controllers(*)\LDAP Searches timed out per minute&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ADAccess Domain Controllers(*)\Long running LDAP operations/Min&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Interface(*)\ConnectionCache active connections&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Interface(*)\ROP Requests outstanding&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Interface(*)\RPC Requests outstanding&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Interface(*)\RPC Latency average (msec)&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Interface(*)\RPC Requests failed (%)&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Interface(*)\RPC Requests sent/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Interface(*)\RPC Slow requests (%)&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>

								<!-- COUNTERS FOR E2007 CLIENT ACCESS SERVERS -->
								<Object Type="If" Name="Exchange2007CAServerInfo" Key1="'%varIsClientAccessServer%'='1'">
									<!-- CAS _TOTALS -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET\Application Restarts&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET\Worker Process Restarts&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET v2.0.50727\Application Restarts&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET v2.0.50727\Applications Running&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET v2.0.50727\Request Execution Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET v2.0.50727\Request Wait Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET v2.0.50727\Requests Current&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET v2.0.50727\Requests Queued&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(*)\Request Execution Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(*)\Request Wait Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(*)\Requests Executing&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(*)\Requests In Application Queue&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET v2.0.50727\Worker Process Restarts&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Web Service(_Total)\Current Connections&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Web Service(_Total)\Get Requests/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Web Service(_Total)\ISAPI Extension Requests/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- Airsync: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ActiveSync\Requests Queued&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ActiveSync\Requests/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ActiveSync\Busy Threads&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ActiveSync\Ping Commands Pending&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ActiveSync\Ping Commands Dropped/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ActiveSync\Heartbeat Interval&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ActiveSync\Average Request Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									
									<!-- Availability service: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Availability Service\Public Folder Queries (sec)&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Availability Service\Availability Requests (sec)&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Availability Service\Average Number of Mailboxes Processed per Request&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Availability Service\Average Time to Process a Cross-Forest Free Busy Request&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Availability Service\Average Time to Process a Cross-Site Free Busy Request&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Availability Service\Average Time to Process a Free Busy Request&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Availability Service\Average Time to Process a Meeting Suggestions Request&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- OWA: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange OWA\Average Response Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange OWA\Current Unique Users&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange OWA\Requests/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- Web services: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeWS\Average Response Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeWS\Requests/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- Autodiscovery: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeAutodiscover\Requests/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- POP: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangePop3\RETR Rate&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangePop3\Connections Current&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangePop3\DELE Rate&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangePop3\UIDL Rate&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- IMAP: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeImap4\Current Connections&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>

								<!-- COUNTERS FOR E2007 UM SERVERS -->
								<Object Type="If" Name="Exchange2007UMServerInfo" Key1="'%varIsUnifiedMessagingServer%'='1'">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeUMAvailability\Unhandled Exceptions/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeUMGeneral\Total Calls per Second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeUMGeneral\User Response Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeUMGeneral\Current Calls&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>


								<!-- ADDITIONAL COUNTERS FOR E2007 UM SERVERS THAT ARE NOT CAS SERVERS -->
								<Object Type="If" Name="Exchange2007UMNotCASServerInfo" Key1="'%varIsUnifiedMessagingServer%'='1' and not('%varIsClientAccessServer%'='1')">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(*)\Request Execution Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(*)\Request Wait Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(*)\Requests Executing&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(*)\Requests In Application Queue&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>

								<!-- COUNTERS FOR E2007 EDGE OR HUBTRANSPORT SERVERS -->
								<Object Type="If" Name="Exchange2007GWServerInfo" Key1="('%varIsEdgeServer%'='1' or '%varIsHubTransportServer%'='1') and not('%varIsExchange2000%'='1' or '%varIsExchange2003%'='1')">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(EdgeTransport)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(EdgeTransport)\Thread Count&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(EdgeTransport)\Handle Count&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(EdgeTransport)\IO Write Bytes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(EdgeTransport)\IO Data Operations/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(EdgeTransport)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(EdgeTransport)\IO Read Bytes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(EdgeTransport)\IO Data Bytes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(EdgeTransport)\Working Set&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeTransport)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeTransport)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpReceive(_total)\Messages Received/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpReceive(_total)\Message Bytes Received/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpSend(_total)\Messages Sent/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Active Remote Delivery Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Retry Remote Delivery Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Active Mailbox Delivery Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Largest Delivery Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Items Queued for Delivery Per Second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Items Completed Delivery Per Second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Messages Queued for Delivery Per Second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Messages Completed Delivery Per Second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Unreachable Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Poison Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Submission Queue Length&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Topology(*)\Latest Exchange Topology Discovery Time in Seconds&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeEdgeSync Job\Edge objects added/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeEdgeSync Job\Edge objects updated/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeEdgeSync Topology\Jobs waiting total&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeEdgeSync Topology\SyncNow Edges not completed total&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Transport Rules\Messages Evaluated/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Transport Rules\Messages Processed/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Driver(*)\Inbound: LocalDeliveryCallsPerSecond&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Driver(*)\Inbound: MessageDeliveryAttemptsPerSecond&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Driver(*)\Inbound: Recipients Delivered Per Second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Sender Id Agent\Messages That Bypassed Validation/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Recipient Filter Agent\Recipients Rejected by Recipient Validation/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Extensibility Agents(*)\Average Agent Processing Time (sec)&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Secure Mail Transport(_total)\Domain Secure Messages Sent&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Content Filter Agent\Messages Scanned Per Second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Connection Filtering Agent\Connections on IP Block List Providers /sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Store Driver(_total)\Outbound: Submitted Mail Items Per Second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Dumpster\Dumpster Inserts/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Dumpster\Dumpster Item Count&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Dumpster\Dumpster Size&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Dumpster\Dumpster Deletes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Aggregate Delivery Queue Length (All Queues)&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Items Completed Delivery Total&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Queues(_total)\Messages Completed Delivery Total&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpReceive(_total)\Average bytes/message&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpReceive(_total)\Disconnections by Agents/second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpReceive(_total)\Messages Received Total&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpReceive(_total)\Tarpitting Delays Anonymous&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpSend(_total)\Average message bytes/message&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpSend(_total)\Average recipients/message&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport SmtpSend(_total)\Messages Sent Total&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Database(*)\Stream writes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Database(*)\Stream read/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Database(*)\MailItem begin commit/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeTransport Batch Point(*)\Transactions committed/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Journaling Agent\Journal Reports Created/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Journaling Agent\Journaling Processing Time per Message&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>

								<!-- COUNTERS FOR E2007 RTM EDGE OR HUBTRANSPORT SERVERS -->
								<Object Type="If" Name="Exchange2007RTMGWServerInfo" Key1="('%varIsEdgeServer%'='1' or '%varIsHubTransportServer%'='1') and '%varIsExchange12RTM%'='1'">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(EdgeTransport)\Database Cache Size (MB)&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>
								<!-- COUNTERS FOR E2007 SP1 EDGE OR HUBTRANSPORT SERVERS -->
								<Object Type="If" Name="Exchange2007SP1GWServerInfo" Key1="('%varIsEdgeServer%'='1' or '%varIsHubTransportServer%'='1') and '%varIsExchange12SP1orHigher%'='1'">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(EdgeTransport)\I/O Log Writes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(EdgeTransport)\I/O Log Reads/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(EdgeTransport)\Log Generation Checkpoint Depth&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(EdgeTransport)\Version buckets allocated&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(EdgeTransport)\I/O Database Reads/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(EdgeTransport)\I/O Database Writes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(EdgeTransport)\Log Record Stalls/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>							
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(EdgeTransport)\Database Cache Size (MB)&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>

								<!-- COUNTERS FOR E2007 MAILBOX SERVERS -->
								<Object Type="If" Name="Exchange2007MBXServerInfo" Key1="'%varIsMailboxServer%'='1' and '%varIsExchange12%'='1'">
									<!-- New MSExchangeIS Client counters: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Client(*)\RPC Operations/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Client(*)\RPC Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Client(*)\JET Log Records/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Client(*)\JET Pages Read/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- Processes -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(mad)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(mad)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(store)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(store)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeMailSubmission)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeMailSubmission)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeRepl)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeRepl)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeMailboxAssistants)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSExchangeMailboxAssistants)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(Microsoft.Exchange.Search.ExSearch)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(Microsoft.Exchange.Search.ExSearch)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSFTESQL)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSFTESQL)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSFTEFD)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(MSFTEFD)\Virtual Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Replication\CopyQueueLength&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ADAccess Caches(*)\LDAP Searches/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange ADAccess Caches(*)\Cache Hits/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Replication\ReplayQueueLength&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeMailSubmission(*)\Hub Servers In Retry&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(*)\Messages Sent/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(*)\Messages Delivered/Sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(_Total)\Local delivery rate&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(*)\Messages Queued for Submission&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(*)\Slow Findrow Rate&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(*)\Messages Submitted/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Public(_Total)\Messages Submitted/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Public(_Total)\Messages Sent/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Public(_Total)\Messages Delivered/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Public(_Total)\Messages Queued For Submission&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeMailSubmission(*)\Successful Submissions Per Second&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indexer\Number of Databases Being Indexed&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indexer\Number of Databases Being Crawled&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indexer\Number of Indexed Databases Being Kept Up-to-Date by Notifications&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- Throttling rate -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\Client: RPCs Failed: Server Too Busy / sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS\RPC Client Backoff/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- Other -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indices(_total)\Age of the Last Notification Processed&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indices(_total)\Average Latency of RPCs Used to Obtain Content&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indices(_total)\Number of Mailboxes Left to Crawl&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indices(_total)\Number of Outstanding Documents&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indices(_total)\Number of Recently Moved Mailboxes Being Crawled&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indices(_total)\Number of Retries&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indices(_total)\Number of Create Notifications/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Search Indices(_total)\Number of Update Notifications/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Assistants(*)\Events in queue&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Assistants(*)\Average Event Processing Time In seconds&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Assistants(*)\Average Event Queue Time in seconds&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Assistants(*)\Average Mailbox Processing Time In seconds&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Assistants(*)\Events Polled/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Assistants(*)\Number of events processed per second.&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Resource Booking\Average Resource Booking Processing Time&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Resource Booking\Requests Failed&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeAL(_Total)\LDAP Results/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeAL(_Total)\LDAP Search calls&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeAL(_Total)\LDAP Search calls/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

								</Object>

								<!-- COUNTERS FOR E2007 SP1 MAILBOX OR HUB -->
								<Object Type="If" Name="Exchange2007SP1MBXOrHubRoles" Key1="'%varIsExchange12SP1orHigher%'='1' and ('%varIsMailboxServer%'='1' or ('%varIsEdgeServer%'='1' or '%varIsHubTransportServer%'='1'))">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database ==^&gt; Instances(*)\Version buckets allocated&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database ==^&gt; Instances(*)\Log Generation Checkpoint Depth&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database ==^&gt; Instances(*)\Log Record Stalls/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database ==^&gt; Instances(*)\Log Threads Waiting&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database ==^&gt; Instances(*)\I/O Database Reads Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database ==^&gt; Instances(*)\I/O Database Writes Average Latency&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(*)\Database Cache Size&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchange Database(*)\Database Page Fault Stalls/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>

								<!-- COUNTERS FOR LONGHORN SERVERS -->
								<Object Type="If" Name="LonghornServers" Key1="'%varIsWinVer2008%'='1'">
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\RPC/HTTP Proxy\Current Number of Incoming RPC over HTTP Connections&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\RPC/HTTP Proxy\Current Number of Unique Users&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(*)\I/O Database Reads/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(*)\I/O Database Writes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(*)\I/O Log Writes/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(*)\I/O Log Reads/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(*)\Log Generation Checkpoint Depth&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(*)\Log Record Stalls/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(*)\Version buckets allocated&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
								</Object>
							</Object>
						</Object>
					</Object>
				</Object>
			</Object>
		</Object>

	<!-- ****************************************************************************************************************** -->
	<Object Type="Step" Name="CollectScheduledPerfMonData" Title="Starting Performance Data Collection" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%SERVERNAME%" Substitution="szSERVER" Display="Hide"/>
			<Setting Key1="%iTimeFormatDuration%" Substitution="iTimeFormatDuration" Display="Hide"/>
			<Setting Key1="%iSampleInterval%" Substitution="iSampleInterval" Display="Hide"/>
			<Setting Key1="%varLogManName%" Substitution="varLogManName" Display="Hide"/>
			<Setting Key1="%varLocalPDHDir%" Substitution="szLocalPerfLogsDirectory" Display="Hide"/>
			<Setting Key1="%varIsExchange12%" Substitution="varIsExchange12" Display="Hide"/>
			<Setting Key1="%varIsExchange2000%" Substitution="varIsExchange2000" Display="Hide"/>
			<Setting Key1="%varIsExchange2003%" Substitution="varIsExchange2003" Display="Hide"/>
			<Setting Key1="%varIsHubTransportServer%" Substitution="varIsHubTransportServer" Display="Hide"/>
			<Setting Key1="%varIsClientAccessServer%" Substitution="varIsClientAccessServer" Display="Hide"/>
			<Setting Key1="%varIsEdgeServer%" Substitution="varIsEdgeServer" Display="Hide"/>
			<Setting Key1="%varIsMailboxServer%" Substitution="varIsMailboxServer" Display="Hide"/>
			<Setting Key1="%varIsUnifiedMessagingServer%" Substitution="varIsUnifiedMessagingServer" Display="Hide"/>
			<Setting Key1="%MailboxCount%" Substitution="MailboxCount" Display="Hide"/>
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%varServerPdhFileName%" Substitution="varServerPdhFileName" Display="Hide"/>

			<Object Type="Progress" Title="Starting performance data collection from the Exchange server" Text="Please wait while performance data is collected from the Exchange server %szSERVER%. This will take a minute." HelpId="html\0f7e8793-4cb3-497a-ae58-0de66e4e06dc.htm">
				<!-- This step does the following:
				2. Deletes the counter file.
				3. Generates the counter file.
				4. Starts the collection.

				It still needs to clean up (delete old log names)
					-->
				<Rule NextStep="DisplayResultsStep" Name="fCollectScheduledPerfMonDataStep" Query="@S1=0" Priority="1" S1="%varContinueRun%"/>
				<Rule Name="szCollectScheduledPerfMonData" Query="'E12Collection_CollectScheduledPerfMonData'">
					<Variable Name="PreviousName" Scope="Children"/>
				</Rule>
				<!-- Overall success or failure? -->
				<Rule Name="szErrorStateText" Query="if($fCollectSuccess,'',string(@Title))" Title="One or more errors were found." AlwaysEvaluate="True">
					<Variable Name="ErrorStateText" Scope="Global"/>
				</Rule>
				<Rule Name="szConnectivityTestResult" Query="string(@Title)" Title="Data Collection Scheduling Results">
					<Variable Name="DISPLAYTITLE" Scope="Global"/>
				</Rule>

				<!-- Collect performance data to a BLG file -->
				<Object Type="Command" Key2="cmd" Key3="/C logman delete %varLogManName% -s %szSERVER%" SecurityContext="EXLOGON">
					<Setting Key1="Output" Key2="stdout" Format="(.*?)\r\n*----$1"/>
					<Setting Key1="ReturnValue"/>
					<Object Type="Command" Key2="cmd" Key3="/C logman create counter %varLogManName% -s %szSERVER% -rf %iTimeFormatDuration% -si %iSampleInterval% --v -o %varServerPdhFileName% -cf &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;">
						<Setting Key1="Output" Key2="stdout" Format="(.*?)\r\n*----$1 ">
							<Rule Name="fLogmanError2" Query="$fLogmanFailed2" Error="Error" Sev="1" Title="Failed to start performance counter log" Text="{0} {1} Failed to create log file {2} with counters from file {3}. " P0="$." P1="$szLogmanError3" P2="%varServerPdhFileName%" P3="%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt"/>
							<Rule Name="szLogmanOutput" Query="$." Error="None" Sev="1" Text="{0}" P0="$."/>
							<Rule Name="szFileName" Query="@S0" Error="None" Title="Performance log file" Text="Data will be logged to the file {0}." S0="%varServerPdhFileName%"/>
							<Rule Name="fSetFileName" Query="regSetValue('','SOFTWARE\\Microsoft\\ExchangeServer\\v14\\ExPTA',@S0,$szFileName)" S0="Collect%szSERVER%_FileName"/>
							<Rule Name="fSetCollectServerList" Query="regSetValue('','SOFTWARE\\Microsoft\\ExchangeServer\\v14\\ExPTA',@S0,@S1)" S0="Collect_ServerNames" S1="%szSERVER%"/>
						</Setting>
						<Setting Key1="ReturnValue">
							<Rule Name="fLogmanFailed2" Query="$. != 0"/>
						</Setting>
						<Setting Key1="Output" Key2="stderr" Format="(.*?)\r\n----$1 ">
							<Rule Name="szLogmanError3" Query="$."/>
						</Setting>
						<Object Type="Command" Key2="cmd" Key3="/C logman start %varLogManName% -s %szSERVER%">
							<Setting Key1="Output" Key2="stderr" Format="(.*?)\r\n----$1 "/>
						</Object>
						<Object Type="WMI" Key3="Win32_OperatingSystem">
							<Setting Key1="LocalDateTime" Substitution="fPrettyDateTime" SubstitutionFormat="(.*?)(\..*)----$1">
								<Rule Name="dCurrentDateTime2" Query="date-parse(substring($.,1,14), 'yyyyMMddHHmmss')" Error="None" Title="Data collection start time" Text="Data collection was started at {0}." P0="date-parse(substring($.,1,14), 'yyyyMMddHHmmss')">
									<Variable Name="varPerfmonStartTime" Scope="Global"/>
								</Rule>
								<Rule Name="dCompletedDateTime" Query="date-add(date-add($dCurrentDateTime2, @S1),get-timespan(5))" Error="None" Title="Data collection completion time" Text="Data collection will be complete at {0}." P0="date-add($dCurrentDateTime2,@S1)" S1="%iTimeFormatDuration%">
									<Variable Name="varPerfmonEndTime" Scope="Global"/>
								</Rule>
								<Rule Name="iPdhSecondsLeft" Query="get-seconds(date-difference($dCompletedDateTime,$dCurrentDateTime2))">
									<Variable Name="varPdhSecondsLeft" Scope="Children"/>
								</Rule>
							</Setting>
						</Object>
					</Object>
				</Object>
				<Rule Name="fCollectFailure" Query="$fLogmanError2" Error="Error" ReportIssue="Summary" Title="Failed to collect performance data" Text="Failed to start collection of performance data. {1}" P1="$szLogmanOutput"/>
				<Rule Name="fCollectSuccess" Query="not($fCollectFailure)" Error="None" ReportIssue="Summary" Title="Data collection started successfully" Text="Successfully started collection of performance data. Data will be logged to the file {0}. Data collection will be complete at {1}." P0="$szFileName" P1="$dCompletedDateTime"/>
				<Rule NextStep="GetPerfMonTime" Name="fWaitAndCopyData" Query="$fCollectSuccess"/>
			</Object>
		</Object>
	</Object>

	<!-- ****************************************************************************************************************** -->
	<Object Type="Step" Name="CheckPerfCounters" Title="Server Health" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%SERVERNAME%" Substitution="szSERVER" Display="Hide"/>
			<Setting Key1="%szPDHSERVERNAME%" Substitution="szPDHSERVERNAME" Display="Hide"/>
			<Setting Key1="%varPDHFileName%" Substitution="szPDHFILE" Display="Hide"/>
			<Setting Key1="%TimeSliceInfo[%szSELECTEDTIMEINDEX%][TimeSliceInfoList]%" Substitution="szSELECTEDLISTOFTIMESLICES" Display="Hide"/>
			<Setting Key1="%szSELECTEDLISTOFTIMERANGES%" Substitution="szSELECTEDLISTOFTIMERANGES" Display="Hide"/>
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%varIsExchange12%" Substitution="varIsExchange12" Display="Hide"/>
			<Setting Key1="%varIsExchange2000%" Substitution="varIsExchange2000" Display="Hide"/>
			<Setting Key1="%varIsExchange2003%" Substitution="varIsExchange2003" Display="Hide"/>
			<Setting Key1="%varIsHubTransportServer%" Substitution="varIsHubTransportServer" Display="Hide"/>
			<Setting Key1="%varIsClientAccessServer%" Substitution="varIsClientAccessServer" Display="Hide"/>
			<Setting Key1="%varIsEdgeServer%" Substitution="varIsEdgeServer" Display="Hide"/>
			<Setting Key1="%varIsMailboxServer%" Substitution="varIsMailboxServer" Display="Hide"/>
			<Setting Key1="%varIsUnifiedMessagingServer%" Substitution="varIsUnifiedMessagingServer" Display="Hide"/>
			<Setting Key1="%MailboxCount%" Substitution="MailboxCount" Display="Hide"/>
			<Setting Key1="%varNoPerfmonData%" Substitution="varNoPerfmonData" Display="Hide"/>

			<Object Type="Progress" Title="Reading the data from the performance log file" Text="Please wait while the tool reads performance data from the file %szPDHFILE%. This may take several minutes." HelpId="html\414e3916-420d-492b-b1a2-58dc41236c6a.htm">
				<Object Type="Group" Name="Server Health" Class="Area" GroupingClass="True" SecurityContext="EXLOGON">

					<!-- For now, keep the legacy steps. Eventually, this will migrate to the new structure -->
					<Object Type="If" Name="NewAnalysis" Key1="not('%varIsExchange12%'='1')">
						<Object Type="Group" Name="Exchange Analysis" Display="Hide">
							<Rule NextStep="RPCPerfCounters" Name="fCheckRPC" Query="'%varNoPerfmonData%'!='1' and (%MailboxCount% &gt;0)" Priority="2" Text="- Check the RPC performance counters on the Exchange server to determine if users are experiencing high latencies." Display="Hide"/>
							<Rule NextStep="MainPerfCounters" Name="fCheckMemoryandCPU" Query="'%varNoPerfmonData%'!='1'" Priority="3" Text="- Measure and analyze the process and memory performance counters to determine if the server is currently exhibiting poor performance. In the next step, the tool will look for memory and processor bottlenecks." Display="Hide"/>
							<Rule NextStep="BasicDiskData" Name="fGetExchangeObj" Priority="5" Text="- Investigate the configuration of the server." Display="Hide" AlwaysEvaluate="True"/>
							<Rule NextStep="CheckTiQueues" Name="fCheckTiQueues" Query="'%varNoPerfmonData%'!='1'" Priority="6" Text="- Check the health of queues on the server." Display="Hide" AlwaysEvaluate="True"/>
							<Rule NextStep="CheckLDAP" Name="fCheckLDAP" Query="'%varNoPerfmonData%'!='1'" Priority="7" Text="- Check the latency of the Lightweight Directory Access Protocol (LDAP) queries on the server." Display="Hide" AlwaysEvaluate="True"/>
							<Rule NextStep="CheckNetworkUsage" Name="fCheckNetworkUsage" Query="'%varNoPerfmonData%'!='1'" Priority="8" Text="- Check the network interface performance counters on the server." Display="Hide" AlwaysEvaluate="True"/>
							<Rule NextStep="MiscBasicChecks" Name="fMiscBasicChecks" Priority="9" Text="- Check to see if tracing is enabled." Display="Hide" AlwaysEvaluate="True"/>
						</Object>
					</Object>

					<!-- The new structure -->
					<Object Type="If" Name="NewAnalysis" Key1="'%varIsExchange12%'='1'">
						<Object Type="Group" Name="E12 Analysis" Display="Hide">

							<!-- CHECKS FOR ALL SERVERS, ALL ROLES, ALL VERSIONS -->
							<Rule NextStep="CheckCPUPerfCounters" Name="fCheckCPU" Query="'%varNoPerfmonData%'!='1'" Priority="3"/>
							<Rule NextStep="CheckMemoryPerfCounters" Name="fCheckMemoryCPU" Query="'%varNoPerfmonData%'!='1'" Priority="3"/>
							<Rule NextStep="BasicDiskData" Name="fE12GetBasicDiskData" Priority="5" Text="- Investigate the configuration of the server." Display="Hide" AlwaysEvaluate="True"/>
							<Rule NextStep="CheckTracing" Name="fCheckTracing" Priority="10"/>
							<Rule NextStep="CheckNetworkUsage" Name="fE12CheckNetworkUsage" Query="'%varNoPerfmonData%'!='1'" Priority="8" Text="- Check the network interface performance counters on the server." Display="Hide" AlwaysEvaluate="True"/>
							<Rule NextStep="MiscBasicChecks" Name="fE12MiscBasicChecks" Priority="9" Text="- Check to see if tracing is turned on." Display="Hide" AlwaysEvaluate="True"/>

							<!-- CHECKS FOR ALL MAILBOX SERVERS (E2K, E2K3, E2007) -->
							<Rule NextStep="CheckDatabasePerfCounters" Query="%MailboxCount% &gt; 0"/>


							<!-- CHECKS FOR E2007 MAILBOX SERVERS (this includes mapi.net client) -->
							<Rule NextStep="CheckE12RPCPerfCounters" Name="fCheckE12RPCPerfCounters" Query="'%varIsMailboxServer%'='1' and %MailboxCount% &gt; 0 and '%varNoPerfmonData%'!='1'" Priority="2"/>

							<!-- CHECKS FOR ALL E2007 SERVER ROLES -->
							<Rule NextStep="CheckE12DirectoryPerfCounters" Name="fCheckE12DirectoryPerfCounters" Query="'%varIsExchange12%'='1' and '%varNoPerfmonData%'!='1'"/>

							<!-- CHECKS FOR E2007 CLIENT ACCESS SERVERS -->
							<Rule NextStep="CheckCASClientPerfCounters" Name="fCheckCASClientPerfCounters" Query="'%varIsClientAccessServer%'='1' and '%varNoPerfmonData%'!='1'"/>

							<!-- CHECKS FOR E2007 UM SERVERS -->
							<Rule NextStep="CheckUMPerfCounters" Name="fCheckUMPerfCounters" Query="'%varIsUnifiedMessagingServer%'='1' and '%varNoPerfmonData%'!='1'"/>

							<!-- CHECKS FOR E2007 EDGE OR HUBTRANSPORT SERVERS -->
							<Rule NextStep="CheckE12QueuesPerfCounters" Name="fCheckE12QueuesPerfCounters" Query="('%varIsEdgeServer%'='1' or '%varIsHubTransportServer%'='1') and '%varNoPerfmonData%'!='1'"/>
						</Object>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>
	<!-- ****************************************************************************************************************** -->
	<Object Type="Step" Name="CheckCPUPerfCounters" Title="Processor Health" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%SERVERNAME%" Substitution="SERVER" Display="Hide"/>
			<Setting Key1="%szPDHSERVERNAME%" Substitution="szPDHSERVERNAME" Display="Hide"/>
			<Setting Key1="%varPDHFileName%" Substitution="szPDHFILE" Display="Hide"/>
			<Setting Key1="%TimeSliceInfo[%szSELECTEDTIMEINDEX%][TimeSliceInfoList]%" Substitution="szSELECTEDLISTOFTIMESLICES" Display="Hide"/>
			<Setting Key1="%szSELECTEDLISTOFTIMERANGES%" Substitution="szSELECTEDLISTOFTIMERANGES" Display="Hide"/>
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%varIsHubTransportServer%" Substitution="varIsHubTransportServer" Display="Hide"/>
			<Setting Key1="%varIsClientAccessServer%" Substitution="varIsClientAccessServer" Display="Hide"/>
			<Setting Key1="%varIsEdgeServer%" Substitution="varIsEdgeServer" Display="Hide"/>
			<Setting Key1="%varIsMailboxServer%" Substitution="varIsMailboxServer" Display="Hide"/>
			<Setting Key1="%varIsUnifiedMessagingServer%" Substitution="varIsUnifiedMessagingServer" Display="Hide"/>
			<Setting Key1="%MailboxCount%" Substitution="MailboxCount" Display="Hide"/>
			<Setting Key1="%RPCOpRate%" Substitution="RPCOpRate" Display="Hide"/>
			<Setting Key1="%varNumProcs%" Substitution="varNumProcs" Display="Hide"/>
			<Setting Key1="%varClockSpeed%" Substitution="varClockSpeed" Display="Hide"/>
			<Object Type="Progress" Title="Analyzing Processor Performance Data" Text="Please wait while the tool analyzes processor performance data on '{0}'. This will take several minutes." S0="%SERVER%" HelpId="html\414e3916-420d-492b-b1a2-58dc41236c6a.htm">

				<Object Type="Group" Name="Processor Health" Class="Area" GroupingClass="True" SecurityContext="EXLOGON">
					<Rule NextStep="DisplayResultsStep" Name="fDisplayCPUPerfCountersStep" Query="@S1=0" Priority="1" S1="%varContinueRun%" AlwaysEvaluate="True"/>
					<Rule Name="szCorePerfCounts" Query="string(@Title)" Title="Processor Counter Results">
						<Variable Name="DISPLAYTITLE" Scope="Global"/>
					</Rule>
					<Rule Name="szCPUPerfCounters" Query="'E12Collection_CheckCPUPerfCounters'">
						<Variable Name="PreviousName" Scope="Children"/>
					</Rule>
					<Rule Name="fIssueFound" Query="$fProcessorProblemFound" Error="Error" ReportIssue="Summary" Title="Processor bottleneck found" Text="The server is exhibiting a processor bottleneck." AlwaysEvaluate="True"/>
					<Rule Name="fWarningFound" Query="($fProcessorWarningFound) and not($fIssueFound)" Error="Warning" ReportIssue="Summary" Title="Processor issue found" Text="The server may be exhibiting a processor bottleneck; a potential issue with processor usage was found." AlwaysEvaluate="True"/>
					<Rule Name="fErrorFound" Query="$fPerfCounterErrorFound" AlwaysEvaluate="True"/>
					<Rule Name="fNoIssueFound" Query="not($fIssueFound) and not($fWarningFound) and not($fErrorFound)" Error="None" ReportIssue="Summary" Title="No processor bottleneck found" Text="No processor bottleneck was found on the server {0}." S0="%SERVER%" AlwaysEvaluate="True"/>
					<!-- MESSAGE TEXT RULES -->
					<Rule Name="szProcIssueText" Query="string(@Title)" Title="The server is exhibiting a processor bottleneck."/>
					<Rule Name="szCPUIssueFoundText" Query="string(@Title)" Title="A process other than store.exe was identified as causing more than 10% CPU load."/>
					<Rule Name="szNoCPUIssueFoundText" Query="string(@Title)" Title="No problem with processes was found."/>
					<Rule Name="szProblemCountersText" Query="string(@Title)" Title="There was a problem gathering the performance counters."/>
					<Rule Query="if($fErrorFound,$szProblemCountersText,if($fIssueFound,$szCPUIssueFoundText,$szNoCPUIssueFoundText))">
						<Variable Name="ErrorStateText" Scope="Global"/>
					</Rule>

					<!-- First measure main system performance counters -->
					<Object Type="Cache" Name="Processor Counter Health" Key1="Add" Key2="TimeSlices" Key3="%szSELECTEDLISTOFTIMERANGES%" Key4="," Class="Time Range" GroupingClass="True">
						<Setting Substitution="szTIMERANGE"/>
						<Object Type="Cache" Name="CurrentTimeSlice" Key1="Add" Key2="Timeslice%szTIMERANGE%" Key3="%szSELECTEDLISTOFTIMESLICES%" Display="Hide">
							<Setting Substitution="iSAMPLECOUNT" Format=".*?%szTIMERANGE%;([^,]*).*----$1"/>
							<Object Type="Group" Name="Processor health during the time range: %szTIMERANGE%">
								<!--- Measure PROCESSOR health -->
								<Rule Name="iMCCPUPerRPCOP" Query="if(@S1 &gt; 0,ifnumber(@S1,$iProcessorPercentProcessorTimeTotalAvg * @S7 * @S4 div (100* @S1)))" Text="The average number of megacycles of processor required per RPC operation on this server is {3} MC/RPC Operation." S1="%RPCOpRate%" P3="roundto($iProcessorPercentProcessorTimeTotalAvg * @S7 * @S4 div (@S1*100),2)" S4="%varNumProcs%" S7="%varClockSpeed%"/>
								<Object Type="Pdh" Name="Performance Data" Key1="%szPDHSERVERNAME%" Key2="%iSAMPLECOUNT%" Key3="%szPDHFILE%" Key4="%szTIMERANGE%" Key5="Processor" Timeout="%1000">
									<Rule Name="fFailedToReadProcessorData" Query="not($iProcessorPercentProcessorTimeTotalAvg) and not($fProcessorDataNotInFile)" Error="Error" Title="Failed to retrieve performance counter data from the file" Text="Failed to retrieve processor performance counter data from the file {0}. An unspecified error occurred while reading the file." S0="%szPDHFILE%" AlwaysEvaluate="True"/>
									<Rule Name="fProcessorDataNotInFile" Query="contains(../Exception/@Message,'0xc0000bcd') or contains(../Exception/@Message,'0xc0000bc4')" Error="Warning" Sev="1" Title="Error accessing processor performance data" Text="One or more performance counters are not present in the file {1}. The following counters are missing: {2}" S1="%szPDHFILE%" P2="join(',',../Exception/@Path)"/>
									<Rule Name="fPerfCounterErrorFound" Query="../Exception or $fFailedToReadProcessorData" AlwaysEvaluate="True"/>

									<Rule Name="fProcessorProblemFound" Query="$rProcessorContextSwitchespersec20000_fValueAboveThreshold or $rProcessorProcessorTimeTotal90always_fValueAboveThreshold or $fSystemProcessorQueueLength2 or $rStore_fProcessAboveThreshold or $rInetinfo_fProcessAboveThreshold or $rLsass_fProcessAboveThreshold or $iW3wpProcessAboveThreshold" AlwaysEvaluate="True"/>
									<Rule Name="fProcessorWarningFound" Query="$fProcessorProcessorTimeTotal70always" AlwaysEvaluate="True"/>

									<!-- SORT BY HIGHEST CPU. -->
									<Rule Name="nsRelevantProcesses" Query="$iProcessProcessorTime[not(contains(../../../@Name,'_Total')) and not(contains(../../../@Name,'Idle')) and not(contains(../../../@Name,'store')) and not(contains(../../../@Name,'Microsoft.Exchange.Search.ExSearch')) and not(contains(../../../@Name,w3wp)) and not(contains(../../../@Name,'EdgeTransport')) and not(contains(../../../@Name,'msftefd')) and not(contains(../../../@Name,'MSExchangeMailboxAssistants')) and not(contains(../../../@Name,'msftesql')) and number(text()) &gt; 1]/../../.."/>
									<Rule Name="nsAllProcesses" Query="$iProcessProcessorTime[not(contains(../../../@Name,'_Total') ) and not(contains(../../../@Name,'Idle')) and number(text()) &gt; 1]/../../.."/>
									<Rule Name="szSortedProcesses" Query="nodesort($nsAllProcesses, 'number(Instance/Setting/Rule/Result)','-1')"/>
									<Rule Name="iProcValue" Query="$szSortedProcesses/Result/Instance/Setting/Rule/Result"/>
									<Rule Name="szProcName" Query="$szSortedProcesses/Result/Instance/@Name"/>
									<Rule Name="iProcID" Query="$szSortedProcesses/Result/Instance/Setting/Rule[contains(@Name,'iProcessPID')]/../Value"/>
									<Rule Name="szInstanceName1" Query="substring-before(substring-after($szProcName[1],'('),')')"/>
									<Rule Name="szInstanceName2" Query="substring-before(substring-after($szProcName[2],'('),')')"/>
									<Rule Name="szInstanceName3" Query="substring-before(substring-after($szProcName[3],'('),')')"/>
									<Rule Name="fMostProc" Query="$iProcValue[1]" Error="None" ReportIssue="Issue" Title="Process '{1}' is consuming the most processor time" Text="The process using the most processor time is '{1}', which is consuming {2}% of the CPU time. The ID of this process is {3}." P1="$szInstanceName1" P2="$iProcValue[1]" P3="$iProcID[1]"/>
									<Rule Name="fSecondMostProc" Query="$iProcValue[2]" Error="None" ReportIssue="Issue" Title="Process '{1}' is consuming the second-most processor time" Text="The process using the second-most processor time is '{1}', which is consuming {2}% of the CPU time. The ID of this process is {3}." P1="$szInstanceName2" P2="$iProcValue[2]" P3="$iProcID[2]"/>
									<Rule Name="fThirdMostProc" Query="$iProcValue[3]" Error="None" ReportIssue="Issue" Title="Process '{1}' is consuming the third-most processor time" Text="The process using the third-most processor time is '{1}', which is consuming {2}% of the CPU time. The ID of this process is {3}." P1="$szInstanceName3" P2="$iProcValue[3]" P3="$iProcID[3]"/>

									<Rule Name="szHighCPUUserList" Query="$szSortedProcesses/Result/Instance/Setting/Rule/Result[text() &gt; 10]/../../../@Name"/>
									<Rule Name="szListCPUUsers" Query="$szHighCPUUserList" Error="None" ReportIssue="Issue" Title="List of processes using more than 10% CPU" Text="The following processes are using more than 10% CPU: {1}" P1="join(', ', $szHighCPUUserList)"/>
									<!-- SORT W3WP BY CPU -->
									<Rule Name="nsProcessW3wpAll" Query="$iProcessProcessorTime[contains(../../../@Name, 'w3wp')]/../../.."/>
									<Rule Name="nsSortedW3wp" Query="nodesort($nsProcessW3wpAll, 'number(Instance/Setting/Rule/Result)','-1')"/>
									<Rule Name="iW3wpProcName" Query="$nsSortedW3wp/Result/Instance/@Name"/>
									<Rule Name="iW3wpProcValue" Query="$nsSortedW3wp/Result/Instance/Setting/Rule[contains(@Name,'iProcessProcessorTime')]/Result"/>
									<Rule Name="iW3wpProcID" Query="$nsSortedW3wp/Result/Instance/Setting/Rule[contains(@Name,'iProcessPID')]/../Value"/>
									<Rule Name="szInstanceNameW3WP1" Query="substring-before(substring-after($iW3wpProcName[1],'('),')')"/>
									<Rule Name="szInstanceNameW3WP2" Query="substring-before(substring-after($iW3wpProcName[2],'('),')')"/>
									<Rule Name="fMostW3wpProc" Query="$iW3wpProcName[1]" Error="None" Title="W3wp process consuming the most CPU is '{1}'" Text="The w3wp process '{1}' is consuming {2}% of the CPU. This process has process ID {3}." P1="$szInstanceNameW3WP1" P2="$iW3wpProcValue[1]" P3="$iW3wpProcID[1]"/>

									<Rule Name="fSecondMostW3wpProc" Query="$iW3wpProcName[2]" Error="None" Title="W3wp process consuming the second-most CPU is '{1}'" Text="The w3wp process '{1}' is consuming {2}% of the CPU. This process has process ID {3}." P1="$szInstanceNameW3WP2" P2="$iW3wpProcValue[2]" P3="$iW3wpProcID[2]"/>
									<Rule Name="nsProcessW3wpSumProcessorTime" Query="roundto(sum($iProcessProcessorTime[contains(../../../@Name, 'w3wp')]),2)" Error="None" Title="W3wp processes combined processor usage" Text="The total processor usage of the W3wp processes is {1}%." P1="$nsProcessW3wpSumProcessorTime"/>
									<!-- MAIN PROCESSES -->
									<Rule Name="iProcessIdleProcessorTime" Template="tProcessPercentCPU" S1="Idle"/>
									<Rule Name="iProcessTotalProcessorTime" Template="tProcessPercentCPU" S1="_Total"/>
									<Rule Name="iProcessStoreProcessorTime" Template="tProcessPercentCPU" S1="STORE"/>
									<Rule Name="iProcessInetinfoProcessorTime" Template="tProcessPercentCPU" S1="inetinfo"/>
									<Rule Name="iProcessLsassProcessorTime" Template="tProcessPercentCPU" S1="lsass"/>
									<Rule Name="iProcessExSearchProcessorTime" Template="tProcessPercentCPU" S1="Microsoft.Exchange.Search.ExSearch"/>
									<Rule Name="iProcessEdgeTransportProcessorTime" Template="tProcessPercentCPU" S1="EdgeTransport"/>
									<Rule Name="iProcessMsftefdProcessorTime" Template="tProcessPercentCPU" S1="msftefd"/>
									<Rule Name="iProcessAssistantsProcessorTime" Template="tProcessPercentCPU" S1="MSExchangeMailboxAssistants"/>
									<Rule Name="iProcessMsftesqlProcessorTime" Template="tProcessPercentCPU" S1="msftesql"/>
									<Rule Name="iProcessSearchSumProcessorTime" Query="roundto($iProcessExSearchProcessorTime + $iProcessMsftefdProcessorTime + $iProcessMsftesqlProcessorTime,2)"/>
									<!-- Each role gets a relative weighting based on the expected cost.
										All roles get a weighting of one, except mailbox, which is (estimated to be) 4 times more expensive -->

									<!--		Table of CPU thresholds, based on role:

										Roles:	MBX	HUB	CAS	UM	MBX+HUB		etc for other combinations
								Processes
									Inetinfo	5	5	20	20	5
									Store		90	40	0	0	62 (=(4*90 + 40)/5)
									Lsass		30	30	30	30	30
									EdgeTransport	0	40	0	0	8 (=(0+40)/5)
									Infoworker	40	0	0	0	32 (=(4*40+0)/5)
									W3wp		20	0	60	50

									Relative Weight	4	1	1	0.5

									Note that if no roles are set, the Total Role Weight defaults to 1, though no threshold rules will trigger.
										-->
									<Rule Name="iTotalRoleWeight" Query="if(@S1 + @S2 + @S3 + @S4 &gt; 0,@S1 + @S2 + 0.5*@S3 + 4*@S4,1)" S1="%varIsHubTransportServer%" S2="%varIsClientAccessServer%" S3="%varIsUnifiedMessagingServer%" S4="%varIsMailboxServer%"/>
									<Rule Name="iHubPercentage" Query="@S1 div $iTotalRoleWeight" S1="%varIsHubTransportServer%"/>
									<Rule Name="iCASPercentage" Query="@S2 div $iTotalRoleWeight" S2="%varIsClientAccessServer%"/>
									<Rule Name="iUMPercentage" Query="0.5*@S3 div $iTotalRoleWeight" S3="%varIsUnifiedMessagingServer%"/>
									<Rule Name="iMbxPercentage" Query="4*@S4 div $iTotalRoleWeight" S4="%varIsMailboxServer%"/>
									<!-- PROCESS RULES WITH ROLE-BASED THRESHOLDS -->
									<Reference Type="ProcessPercentCPUThreshold" Name="rStore">
										<Substitution Name="pProcName">'store'</Substitution>
										<Substitution Name="pThresholdCheck">round(90*$iMbxPercentage + 40*$iHubPercentage)</Substitution>
									</Reference>
									<Reference Type="ProcessPercentCPUThreshold" Name="rInetinfo">
										<Substitution Name="pProcName">'inetinfo'</Substitution>
										<Substitution Name="pThresholdCheck">round(20*($iCASPercentage +$iUMPercentage) + 5*($iMbxPercentage))</Substitution>
									</Reference>
									<Reference Type="ProcessPercentCPUThreshold" Name="rLsass">
										<Substitution Name="pProcName">'lsass'</Substitution>
										<Substitution Name="pThresholdCheck">round(30*$iCASPercentage + 30*$iMbxPercentage + 30*$iHubPercentage + 30*$iUMPercentage)</Substitution>
									</Reference>
									<Reference Type="ProcessPercentCPUThreshold" Name="rEdgeTransport">
										<Substitution Name="pProcName">'EdgeTransport'</Substitution>
										<Substitution Name="pThresholdCheck">round(40*$iHubPercentage)</Substitution>
									</Reference>
									<Reference Type="ProcessPercentCPUThreshold" Name="rMicrosoftExchangeInfoworkerAssistants">
										<Substitution Name="pProcName">'MSExchangeMailboxAssistants'</Substitution>
										<Substitution Name="pThresholdCheck">round(40*$iMbxPercentage)</Substitution>
									</Reference>


									<Rule Name="iW3wpThreshold" Query="round(60*$iCASPercentage + 50*$iUMPercentage + 20*($iMbxPercentage))"/>

									<Rule Name="iW3wpProcessAboveThreshold" Query="ifnumber($iW3wpProcValue[1], $iW3wpProcValue[1] &gt; $iW3wpThreshold)" Error="Error" Title="Process '{1}' CPU usage is beyond threshold" Text="The process '{1}' is consuming {2}% of the CPU, which is greater than the threshold of {3}%." P1="szInstanceNameW3WP1" P2="$iW3wpProcValue[1]" P3="$iW3wpThreshold"/>

									<Setting Key1="System" Key2="Context Switches/sec" Key3="" Format="Average">
										<Rule Name="iProcessorContextSwitchespersec" Template="tAvgValueCounter"/>
										<Reference Type="ErrorIssueThreshold" Name="rProcessorContextSwitchespersec20000">
											<Substitution Name="pPerfValue">$iProcessorContextSwitchespersec</Substitution>
											<Substitution Name="pThresholdCheck">20000</Substitution>
											<Substitution Name="pGUID">27cf9861-3bb1-42db-9dbc-ba07748c1af7</Substitution>
										</Reference>
									</Setting>
									<Setting Key1="Processor" Key2="% Processor Time" Key3="_Total" Format="Average">
										<Rule Name="iProcessorPercentProcessorTimeTotalAvg" Template="tAvgValueCounter"/>
										<Rule Name="iProcessorPercentProcessorTimeTotalAvgMinusSearch" Query="$iProcessorPercentProcessorTimeTotalAvg - $iProcessSearchSumProcessorTime"/>
										<Reference Type="ErrorIssueThreshold" Name="rProcessorProcessorTimeTotal90always">
											<Substitution Name="pPerfValue">$iProcessorPercentProcessorTimeTotalAvgMinusSearch</Substitution>
											<Substitution Name="pThresholdCheck">90</Substitution>
											<Substitution Name="pGUID">27cf9861-3bb1-42db-9dbc-ba07748c1af7</Substitution>
										</Reference>
										<Rule Name="fProcessorProcessorTimeTotal70always" Query="ifnumber($iProcessorPercentProcessorTimeTotalAvgMinusSearch,not($iProcessorPercentProcessorTimeTotalAvgMinusSearch &lt; 70) and not($rProcessorProcessorTimeTotal90always_fValueAboveThreshold))" Template="tWarnErrorThreshold" Text="'{6}' should always be below 90%, and ideally should average below {2}%. The measured value is {1}%." P1="round($iProcessorPercentProcessorTimeTotalAvg)" P2="70" GUID="27cf9861-3bb1-42db-9dbc-ba07748c1af7"/>
										<Rule Name="fProcessorProcessorTimeTotal90alwaysWithSearch" Query="ifnumber($iProcessorPercentProcessorTimeTotalAvg,not($iProcessorPercentProcessorTimeTotalAvg &lt; 90))" Template="tErrorIssueThreshold" Error="None" Title="Processor performance issue" Text="'{6}' should always be below 90%, except when Content indexing is running. The measured value is {1}%, and content indexing processes account for {3}% of the total CPU usage. This does not indicate a problem." P1="$iProcessorPercentProcessorTimeTotalAvg" P3="$iProcessSearchSumProcessorTime" GUID="27cf9861-3bb1-42db-9dbc-ba07748c1af7"/>
									</Setting>
									<Setting Key1="Processor" Key2="% Processor Time" Key3="_Total" Format="Max">
										<Rule Name="iProcessorProcessorTimeTotalMax" Template="tMaxValueCounter"/>
									</Setting>
									<Setting Key1="System" Key2="Processor Queue Length" Key3="" Format="Average">
										<Rule Name="iSystemProcessorQueueLength" Query="ifnumber($.,roundto($. div @S3,2))" Template="tAvgValueCounter" P1="ifnumber($.,roundto($. div @S3,2))" S3="%varNumProcs%"/>
										<Rule Name="fSystemProcessorQueueLength2" Query="ifnumber($iSystemProcessorQueueLength,ifnumber($iProcessorPercentProcessorTimeTotalAvg,not($iSystemProcessorQueueLength &lt; 2) and $iProcessorPercentProcessorTimeTotalAvgMinusSearch &gt; 50))" Template="tErrorIssueThreshold" P1="$iSystemProcessorQueueLength" P2="2" GUID="27cf9861-3bb1-42db-9dbc-ba07748c1af7"/>
									</Setting>
									<Setting Key1="Process" Key2="% Processor Time" Key3="*" Format="Average">
										<Rule Name="iProcessProcessorTime" Query="roundto($. div @S3,2)" Text="Average '{6}' = {1}. (Process ID='{2}')" P1="roundto($. div @S3,2)" P2="$iProcessPID" S3="%varNumProcs%" P6="concat(../../@Name,'\',../@Key2)"/>
									</Setting>
									<Setting Key1="Process" Key2="ID Process" Key3="*" Format="Max">
										<Rule Name="iProcessPID" Query="$."/>
									</Setting>
								</Object>
							</Object>
						</Object>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>
	<!-- ****************************************************************************************************************** -->
	<Object Type="Step" Name="CheckE12RPCPerfCounters" Title="RPC Performance Counter Data" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%SERVERNAME%" Substitution="SERVER" Display="Hide"/>
			<Setting Key1="%szPDHSERVERNAME%" Substitution="szPDHSERVERNAME" Display="Hide"/>
			<Setting Key1="%MailboxCount%" Substitution="MAILBOXCOUNT" Display="Hide"/>
			<Setting Key1="%varPDHFileName%" Substitution="szPDHFILE" Display="Hide"/>
			<Setting Key1="%TimeSliceInfo[%szSELECTEDTIMEINDEX%][TimeSliceInfoList]%" Substitution="szSELECTEDLISTOFTIMESLICES" Display="Hide"/>
			<Setting Key1="%szSELECTEDLISTOFTIMERANGES%" Substitution="szSELECTEDLISTOFTIMERANGES" Display="Hide"/>
			<Setting Key1="%fIsLargeServer%" Substitution="fIsLargeServer" Display="Hide"/>
			<Setting Key1="%fIsSmallServer%" Substitution="fIsSmallServer" Display="Hide"/>
			<Setting Key1="%fIsMediumServer%" Substitution="fIsMediumServer" Display="Hide"/>
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%ANALYZEALLBADRPCS%" Substitution="ANALYZEALLBADRPCS" Display="Hide"/>

			<Object Type="Progress" Title="Analyzing RPC Performance Counter Data" Text="Please wait while the tool analyzes RPC performance counter data for the server {0}." S0="%SERVER%" HelpId="html\414e3916-420d-492b-b1a2-58dc41236c6a.htm">

				<Object Type="Group" Name="RPC Performance Counters" Class="Area" GroupingClass="True">
					<Rule NextStep="DisplayResultsStep" Name="fDisplayRPCPerfCountsStep" Query="@S1=0" Priority="1" S1="%varContinueRun%" AlwaysEvaluate="True"/>
					<Rule Name="szRPCPerfCounters" Query="'E12Collection_CheckE12RPCPerfCounters'">
						<Variable Name="PreviousName" Scope="Children"/>
					</Rule>
					<Rule Name="szDisplayRPCPerfData" Query="string(@Title)" Title="RPC Performance Data Results">
						<Variable Name="DISPLAYTITLE" Scope="Global"/>
					</Rule>
					<Rule Query="''" AlwaysEvaluate="True">
						<Variable Name="ErrorStateText" Scope="Global"/>
					</Rule>
					<Rule Name="fExtremelyActiveUsersSummary" Query="$fExtremelyActiveUsers" Error="Error" Sev="1" ReportIssue="Summary" Priority="2" Title="Unusually high user activity detected" Text="RPC Operations per second rates indicate a user or users on this server are unusually active." GUID="24bf01bd-6580-450c-9d3e-478b3c0cdc16"/>
					<Rule Name="fActiveUsersSummary" Query="$fActiveUsers and not($fExtremelyActiveUsers)" Error="Warning" ReportIssue="Summary" Title="Moderate user RPC activity" Text="Since the RPC operations per second per user is greater than 0.20, the users are considered as 'moderately active'."/>
					<Rule Name="fNormalActiveUsersSummary" Query="not($fExtremelyActiveUsers) and not($fActiveUsersSummary)" Error="None" ReportIssue="Summary" Title="Normal user RPC activity" Text="Since the RPC operations per second per user is less than or equal to 0.20, the per-user RPC rate is considered normal."/>

					<!-- First measure RPC performance counters -->
					<Object Type="Cache" Name="RPC Performance Counter Health" Key1="Add" Key2="TimeSlices" Key3="%szSELECTEDLISTOFTIMERANGES%" Key4="," Class="Time Range" GroupingClass="True">
						<Setting Substitution="szTIMERANGE"/>
						<Object Type="Cache" Name="CurrentTimeSlice" Key1="Add" Key2="Timeslice%szTIMERANGE%" Key3="%szSELECTEDLISTOFTIMESLICES%" Display="Hide">
							<Setting Substitution="iSAMPLECOUNT" Format=".*?%szTIMERANGE%;([^,]*).*----$1"/>
							<Object Type="Group" Name="RPC health during the time range: %szTIMERANGE%">
								<Object Type="Pdh" Name="Performance Data" Key1="%szPDHSERVERNAME%" Key2="%iSAMPLECOUNT%" Key3="%szPDHFILE%" Key4="%szTIMERANGE%" Key5="RPC" Timeout="%1000">
									<!-- Look for errors in gathering the RPC counters -->
									<Rule Name="fFailedToReadData" Query="not($iAvgRPCOps) and not($fRPCEntryNotInLogFile)" Error="Error" Title="Failed to retrieve performance counter data from the file" Text="Failed to retrieve RPC performance counter data from the file {0}. An unspecified error occurred while reading the file." S0="%szPDHFILE%" AlwaysEvaluate="True"/>
									<Rule Name="fErrorAccessingPerformanceCounters" Query="../Exception and not($fBB8ErrorAccessingRPCPerformanceCounters or $fRPCEntryNotInLogFile)" Error="Error" Sev="1" Title="Error accessing RPC performance counter data" Text="Error accessing the RPC performance counters. {1}." P1="../Exception/@Message"/>
									<Rule Name="fBB8ErrorAccessingRPCPerformanceCounters" Query="contains(../Exception/@Message,'0xc0000bb8')" Error="Error" Sev="2" Title="Error accessing RPC performance counter data" Text="Unable to access 'MSExchangeIS' RPC performance counters. Server {0} is probably not an Exchange server, or there is a problem with one or more RPC performance counters." S0="%SERVER%"/>
									<Rule Name="fRPCEntryNotInLogFile" Query="contains(../Exception/@Message,'0xc0000bcd') or contains(../Exception/@Message,'0xc0000bc4')" Error="Warning" Sev="1" Title="Error accessing RPC performance data" Text="Error accessing RPC performance data. The RPC performance counters are not present in the file {1}. The following counters are missing: {2}" S1="%szPDHFILE%" P2="join(',',../Exception/@Path)"/>


									<!-- Guess the activity level of user -->
									<Rule Name="iUserActivityLevel" Query="roundto($iAllClientsRPCRate div $iActiveUserCount,3)" Error="None" ReportIssue="Issue" Title="User activity level" Text="The user activity level is {1} operations per sec per user." P1="roundto($iAllClientsRPCRate div $iActiveUserCount,2)">
										<Variable Name="PERUSERRATE" Scope="Children"/>
									</Rule>
									<Rule Name="fActiveUsers" Query="$iUserActivityLevel &gt; 0.20 and $iUserActivityLevel &lt;= 0.35 and not($fExtremelyActiveUsers)" Error="Warning" Sev="2" ReportIssue="Issue" Title="Active RPC user activity" Text="Since the RPC operations per second per active user is greater than 0.20, the users are considered as 'moderately active'. The measured RPC operations per second per user rate is {1}." P1="roundto($iUserActivityLevel,2)" GUID="24bf01bd-6580-450c-9d3e-478b3c0cdc16"/>
									<Rule Name="fExtremelyActiveUsers" Query="$iUserActivityLevel &gt; 0.35" Error="Error" Sev="1" ReportIssue="Issue" Priority="2" Title="High user RPC activity" Text="Since the RPC operations per second per user is greater than 0.35, the RPC operations per second rates indicate a user or users on this server are unusually active. The measured RPC operations per second per user rate is {1}. " P1="$iUserActivityLevel" GUID="24bf01bd-6580-450c-9d3e-478b3c0cdc16"/>
									<Rule Name="fProblemFoundInThisTimeRange" Query="$fHighAvgRPCRequestsLarge or $fHighAvgRPCRequestsMedium or $fHighAvgRPCRequestsSmall or $rHighRPCLatency_fValueAboveThreshold or $fActiveUsers or $fExtremelyActiveUsers"/>
									<Rule Name="szTimeRangeOfProblem" Query="if($fProblemFoundInThisTimeRange,@S1)" S1="%szTIMERANGE%"/>
									<Rule Name="fHighRPCRate" Query="$iUserActivityLevel &gt; 0.20"/>

									<!-- CLIENT RPCS - RATE -->
									<Rule Name="nsAllClientRPCs" Query="$iClientRPCRateActiveSync/../../.. | $iClientRPCRateAdministrator/../../.. | $iClientRPCRateContentIndexing/../../.. | $iClientRPCRateMailboxAssistants/../../.. | $iClientRPCRateOutlookWebAccess/../../.. | $iClientRPCRatePOPIMAP/../../.. | $iClientRPCRateRPCoverHTTP/../../.. | $iClientRPCRateTransport/../../.. | $iClientRPCRateOtherClients/../../.." AlwaysEvaluate="True"/>
									<Rule Name="szSortedRPCs" Query="nodesort($nsAllClientRPCs, 'number(Instance/Setting/Rule[contains(@Name,&quot;iClientRPCRate&quot;)]/Result)','-1')"/>
									<Rule Name="iRPCsValue" Query="$szSortedRPCs/Result/Instance/Setting/Rule[contains(@Name,&quot;iClientRPCRate&quot;)]/Result"/>
									<Rule Name="iRPCsName" Query="$szSortedRPCs/Result/Instance/@Name"/>
									<Rule Name="szInstanceNameRPC1" Query="substring-before(substring-after($iRPCsName[1],'('),')')"/>
									<Rule Name="szInstanceNameRPC2" Query="substring-before(substring-after($iRPCsName[2],'('),')')"/>
									<Rule Name="szInstanceNameRPC3" Query="substring-before(substring-after($iRPCsName[3],'('),')')"/>
									<Rule Name="iMostRPCsName" Query="$iRPCsValue[1]" Error="None" Sev="4" ReportIssue="Issue" Title="Highest RPC rate in category '{1}'" Text="Most of the RPC load is in the category '{1}'. This category accounts for {2} RPC operations/second, out of the total rate of {3} RPC operations/second." P1="$szInstanceNameRPC1" P2="$iRPCsValue[1]" P3="$iClientRPCRateTotal"/>
									<Rule Name="iSecondMostRPCsName" Query="$iRPCsValue[2]" Error="None" Sev="4" ReportIssue="Issue" Title="Second-highest RPC rate in category '{1}'" Text="The second highest source of RPC load is in the category '{1}'. This category accounts for {2} RPC operations/second, out of the total rate of {3} RPC operations/second." P1="$szInstanceNameRPC2" P2="$iRPCsValue[2]" P3="$iClientRPCRateTotal"/>
									<Rule Name="iThirdMostRPCsName" Query="$iRPCsValue[3]" Error="None" Sev="4" ReportIssue="Issue" Title="Third-highest RPC rate in category '{1}'" Text="The third highest source of RPC load is in the category '{1}'. This category accounts for {2} RPC operations/second, out of the total rate of {3} RPC operations/second." P1="$szInstanceNameRPC3" P2="$iRPCsValue[3]" P3="$iClientRPCRateTotal"/>
									<Rule Name="iClientRPCRateAllExchange" Query="$iClientRPCRateTransport + $iClientRPCRateMailboxAssistants + $iClientRPCRateAdministrator + $iClientRPCRateContentIndexing"/>
									<!-- Rate can be negative if the rates are very small (rounding errors) -->
									<Rule Name="iAllClientsRPCRate" Query="if(($iClientRPCRateTotal - $iClientRPCRateAllExchange) &gt; 0, $iClientRPCRateTotal - $iClientRPCRateAllExchange, 0)"/>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="Exchange ActiveSync" Format="Average">
										<Rule Name="iClientRPCRateActiveSync" Template="tAvgValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="Exchange Administrator" Format="Average">
										<Rule Name="iClientRPCRateAdministrator" Template="tAvgValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="Exchange Content Indexing" Format="Average">
										<Rule Name="iClientRPCRateContentIndexing" Template="tAvgValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="Exchange Mailbox Assistants" Format="Average">
										<Rule Name="iClientRPCRateMailboxAssistants" Template="tAvgValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="Exchange Outlook Web Access" Format="Average">
										<Rule Name="iClientRPCRateOutlookWebAccess" Template="tAvgValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="Exchange POP-IMAP" Format="Average">
										<Rule Name="iClientRPCRatePOPIMAP" Template="tAvgValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="Outlook Anywhere" Format="Average">
										<Rule Name="iClientRPCRateRPCoverHTTP" Template="tAvgValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="Exchange Transport" Format="Average">
										<Rule Name="iClientRPCRateTransport" Template="tAvgValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="Other Clients" Format="Average">
										<Rule Name="iClientRPCRateOtherClients" Template="tAvgValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Operations/sec" Key3="_Total" Format="Average">
										<Rule Name="iClientRPCRateTotal" Template="tAvgValueCounter"/>
									</Setting>

									<!-- CLIENT RPCS - LATENCY -->
									<Rule Name="iClientLatencyThreshold" Query="50"/>
									<Rule Name="nsRelevantClients" Query="$iClientLatency[text() != '0' and not(contains(../../../@Name,&quot;_Total&quot;))]/../../.."/>
									<Rule Name="nsSortedClients" Query="nodesort($nsRelevantClients, 'number(Instance/Setting/Rule[contains(@Name,&quot;iClientLatency&quot;)]/Result)','-1')"/>
									<Rule Name="iHighestLatencyValue" Query="$nsSortedClients[1]/Result/Instance/Setting/Rule[contains(@Name,&quot;iClientLatency&quot;)]/Result"/>
									<Rule Name="szHighestLatencyName" Query="substring-before(substring-after($nsSortedClients[1]/Result/Instance/@Name,'MSExchangeIS Client('),')')"/>
									<Rule Name="iNextHighestLatencyValue" Query="$nsSortedClients[2]/Result/Instance/Setting/Rule[contains(@Name,&quot;iClientLatency&quot;)]/Result"/>
									<Rule Name="iNextHighestLatencyName" Query="substring-before(substring-after($nsSortedClients[2]/Result/Instance/@Name,'MSExchangeIS Client('),')')"/>
									<Rule Name="fHighestLatency" Query="$iHighestLatencyValue and not($fHighestLatencyWarn)" Error="None" Sev="4" ReportIssue="Issue" Title="Highest latencies reported in client category '{1}'" Text="The category of client experiencing the most latency is '{1}'. The value of the counter '{0}' is {2} ms." P0="localize-path(concat('MSExchangeIS Client(',concat($szHighestLatencyName,')\RPC Average Latency')))" P1="$szHighestLatencyName" P2="$iHighestLatencyValue"/>
									<Rule Name="fHighestLatencyWarn" Query="$iHighestLatencyValue &gt; $iClientLatencyThreshold and ($fHighBackoffRate or $fHighServerBusyRate)" Error="Warning" Sev="3" ReportIssue="Issue" Title="Highest latencies reported in client category '{1}'" Text="The category of client experiencing the most latency is '{1}'. The value of the counter '{0}' is {2} ms. This category of client is experiencing high latency and may be contributing to a resource bottleneck." P0="localize-path(concat('MSExchangeIS Client(',concat($szHighestLatencyName,')\RPC Average Latency')))" P1="$szHighestLatencyName" P2="$iHighestLatencyValue"/>
									<Rule Name="fNextHighestLatency" Query="$iNextHighestLatencyValue and not($fNextHighestLatencyWarn)" Error="None" Sev="5" ReportIssue="Issue" Title="Second-highest latencies reported in client category '{1}'" Text="The category of client experiencing the second-most latency is '{1}'. The value of the counter '{0}' is {2} ms." P0="localize-path(concat('MSExchangeIS Client(',concat($szHighestLatencyName,')\RPC Average Latency')))" P1="$iNextHighestLatencyName" P2="$iNextHighestLatencyValue"/>
									<Rule Name="fNextHighestLatencyWarn" Query="$iNextHighestLatencyValue &gt; $iClientLatencyThreshold and ($fHighBackoffRate or $fHighServerBusyRate)" Error="Warning" Sev="4" ReportIssue="Issue" Title="Second-highest latencies reported in client category '{1}'" Text="The category of client experiencing the second-most latency is '{1}'. The value of the counter '{0}' is {2} ms." P0="localize-path(concat('MSExchangeIS Client(',concat($szHighestLatencyName,')\RPC Average Latency')))" P1="$iNextHighestLatencyName" P2="$iNextHighestLatencyValue"/>
									<Rule Name="szListLatencyClients" Query="$szHighLatencyClientName" Error="None" Sev="3" ReportIssue="Issue" Title="Clients reporting high latencies" Text="The following categories of clients have latencies greater than the threshold value of {2} ms: {1}, as reported by the performance counter '{0}'." P0="localize-path('MSExchangeIS Client(*)\RPC Average Latency')" P1="join(', ',$szHighLatencyClientName)" P2="$iClientLatencyThreshold" AlwaysEvaluate="True"/>
									<Setting Key1="MSExchangeIS Client" Key2="RPC Average Latency" Key3="*" Format="Average">
										<Rule Name="iClientLatency" Template="tAvgValueCounter"/>
										<Rule Name="szHighLatencyClientName" Query="if($iClientLatency[not(contains(../../../@Name,&quot;_Total&quot;))] &gt; $iClientLatencyThreshold, substring-before(substring-after(../../@Name,'MSExchangeIS Client('),')'))"/>
									</Setting>

									<Setting Key1="MSExchangeIS" Key2="RPC Operations/sec" Key3="" Format="Average">
										<Rule Name="iAvgRPCOps" Template="tAvgValueCounter">
											<Variable Name="RPCOpRate" Scope="Global"/>
										</Rule>
									</Setting>
									<Setting Key1="MSExchangeIS" Key2="RPC Averaged Latency" Key3="" Format="Average">
										<Rule Name="iAvgRPCLat" Template="tAvgValueCounter"/>
										<!-- Look for high RPC latencies or outstanding requests -->
										<Reference Type="ErrorIssueThreshold" Name="rHighRPCLatency">
											<Substitution Name="pPerfValue">$iAvgRPCLat</Substitution>
											<Substitution Name="pThresholdCheck">50</Substitution>
											<Substitution Name="pGUID">d97e8f41-97b8-4858-b51c-bcaf48f48607</Substitution>
										</Reference>
									</Setting>
									<Setting Key1="MSExchangeIS" Key2="Active User Count" Key3="" Format="Average">
										<!-- We should have at least one active user.... force this to avoid NaN elsewhere -->
										<Rule Name="iActiveUserCount" Query="ifnumber($.,if($. &lt; 1, 1, round($.)),1)" Error="None" ReportIssue="Issue" Title="{1} active users" Text="The number of active users (measured from the performance counter '{6}'), is {1}." P1="ifnumber($.,if($. &lt; 1, 1, round($.)),1)" P6="concat(../../@Name,'\',../@Key2)"/>
										<Rule Name="fActiveUserCountZero" Query="$. = 0" Error="None" Title="No active users" Text="'{6}' shows 0 active users." P6="concat(../../@Name,'\',../@Key2)"/>
									</Setting>
									<Setting Key1="MSExchangeIS" Key2="RPC Requests" Key3="" Format="Average">
										<Rule Name="iAvgRPCRequests" Template="tAvgValueCounter"/>
										<Rule Name="fHighAvgRPCRequestsLarge" Query="ifnumber($iAvgRPCRequests,@S3='1' and $iAvgRPCRequests &gt; @S2)" Template="tErrorIssueThreshold" P1="$iAvgRPCRequests" S2="50" S3="%fIsLargeServer%" GUID="d97e8f41-97b8-4858-b51c-bcaf48f48607"/>
										<Rule Name="fHighAvgRPCRequestsMedium" Query="ifnumber($iAvgRPCRequests,@S3='1' and $iAvgRPCRequests &gt; @S2)" Template="tErrorIssueThreshold" P1="$iAvgRPCRequests" S2="30" S3="%fIsMediumServer%" GUID="d97e8f41-97b8-4858-b51c-bcaf48f48607"/>
										<Rule Name="fHighAvgRPCRequestsSmall" Query="ifnumber($iAvgRPCRequests,@S3='1' and $iAvgRPCRequests &gt; @S2)" Template="tErrorIssueThreshold" P1="$iAvgRPCRequests" S2="15" S3="%fIsSmallServer%" GUID="d97e8f41-97b8-4858-b51c-bcaf48f48607"/>
									</Setting>
									<Setting Key1="MSExchangeIS" Key2="RPC Requests" Key3="" Format="Max">
										<Rule Name="iMaxRPCRequests" Template="tMaxValueCounter"/>
									</Setting>
									<Setting Key1="MSExchangeIS Mailbox" Key2="Client Logons" Key3="_Total" Format="Average">
										<Rule Name="iMbxClientLogons" Template="tAvgValueCounter"/>
										<Rule Name="iRatioMailboxCountAndActiveLogon" Query="if(@S2 &gt; 0, ifnumber($iMbxClientLogons, roundto($iMbxClientLogons div @S2,2)))" Text="The ratio of '{6}' per mailbox on the server is {1}." P1="roundto( $iMbxClientLogons div @S2,2)" S2="%MAILBOXCOUNT%" P6="concat(../../@Name,'\',../@Key2)"/>
										<Rule Name="fHighRatioMailboxCountAndActiveLogon" Query="ifnumber($iMbxClientLogons, $iRatioMailboxCountAndActiveLogon &gt; 5 and not($fIsDedicatedPublicFolderServer) and not($fFatalError))" Title="High number of logons per mailbox" Text="The ratio of '{6}' per mailbox on the server is {1}, which may be higher than expected. This indicates high user activity." P1="roundto($iActiveUserCount div @S2,2)" S2="%MAILBOXCOUNT%" P6="concat(../../@Name,'\',../@Key2)"/>
									</Setting>
									<Setting Key1="MSExchangeIS Public" Key2="Client Logons" Key3="_Total" Format="Average">
										<Rule Name="iPublicClientLogons" Template="tAvgValueCounter"/>
									</Setting>

									<!-- RPC Backoff -->
									<Setting Key1="MSExchangeIS" Key2="RPC Client Backoff/sec" Format="Average">
										<Rule Name="iMbxBackoffRate" Template="tAvgValueCounter"/>
										<Rule Name="fHighBackoffRate" Query="if(@S2 &gt; 0, ifnumber($iMbxBackoffRate, $iMbxBackoffRate &gt;5))" Error="Warning" ReportIssue="Issue" Title="RPC Backoffs are occurring" Text="RPC Backoffs are occurring. Mail clients may experience slow-downs or the appearance of the Outlook cancellable RPC dialog box. The current '{6}' rate is {1} RPCs/sec." P1="roundto( $iMbxBackoffRate,2)" S2="%MAILBOXCOUNT%" P6="concat(../../@Name,'\',../@Key2)" GUID="1336a45d-dd40-4143-9714-02f1a8f51cb4"/>
									</Setting>
									<Setting Key1="MSExchangeIS" Key2="Client: RPCs Failed: Server Too Busy / sec" Format="Average">
										<Rule Name="iMbxServerBusyRate" Template="tAvgValueCounter"/>
										<Rule Name="fHighServerBusyRate" Query="if(@S2 &gt; 0, ifnumber($iMbxServerBusyRate, $iMbxServerBusyRate &gt;5))" Error="Warning" ReportIssue="Issue" Title="RPC Server Too Busy errors are occurring" Text="RPC Server Too Busy errors are occurring. Mail clients may experience slow-downs or the appearance of the Outlook cancellable RPC dialog box. The current '{6}' rate is {1} RPCs/sec." P1="roundto( $iMbxServerBusyRate,2)" S2="%MAILBOXCOUNT%" P6="concat(../../@Name,'\',../@Key2)" GUID="1336a45d-dd40-4143-9714-02f1a8f51cb4"/>
									</Setting>
								</Object>
							</Object>
						</Object>
					</Object>
					<Object Type="Group" Name="Summary of RPC results">
						<Setting>
							<Rule Name="fIsDedicatedPublicFolderServer" Query="($iPublicClientLogons * .10 &gt; $iMbxClientLogons ) and not($fFatalError)" Error="None" Priority="1" Title="Public folder server" Text="This server is probably a dedicated public folder server." AlwaysEvaluate="True"/>
							<Rule Name="fFatalError" Query="$fFailedToReadData or $fErrorAccessingPerformanceCounters or $fBB8ErrorAccessingRPCPerformanceCounters or $fRPCEntryNotInLogFile" AlwaysEvaluate="True"/>
							<Rule Name="fRPCProblemFound" Query="$fHighBackoffRate or $fHighServerBusyRate or $fHighestLatencyWarn or $fHighAvgRPCRequestsLarge or $fHighAvgRPCRequestsMedium or $fHighAvgRPCRequestsSmall or $rHighRPCLatency_fValueAboveThreshold or $fActiveUsers or $fExtremelyActiveUsers"/>
							<Rule Name="fRPCSymptomsFound" Query="$fHighAvgRPCRequestsLarge or $fHighAvgRPCRequestsMedium or $fHighAvgRPCRequestsSmall or $rHighRPCLatency_fValueAboveThreshold" Error="Error" Sev="1" ReportIssue="Summary" Title="Server exhibited high RPC latencies or high RPC rates" Text="The server {0} exhibited a problem with RPC latencies or high RPC requests. High RPC latencies or RPC requests are an indicator that users on this server will experience delays when accessing mail." S0="%SERVER%" GUID="d97e8f41-97b8-4858-b51c-bcaf48f48607" AlwaysEvaluate="True">
								<Variable Name="varRPCSymptomFound" Scope="Global"/>
							</Rule>
							<Rule Name="fRPCSymptomsFoundWarn" Query="$fHighBackoffRate or $fHighServerBusyRate or $fHighestLatencyWarn" Error="Warning" Sev="1" ReportIssue="Summary" Title="Server exhibited high RPC latencies or high RPC rates" Text="The server {0} exhibited a problem with RPC latencies or high RPC requests. High RPC latencies or RPC requests are an indicator that users on this server will experience delays when accessing mail." S0="%SERVER%" GUID="d97e8f41-97b8-4858-b51c-bcaf48f48607" AlwaysEvaluate="True">
								<Variable Name="varRPCSymptomFound" Scope="Global"/>
							</Rule>
						</Setting>

						<!-- Inform the user that no issue was found. -->
						<Rule Name="fNofRPCProblemFound" Query="not($fRPCProblemFound) and not($fFatalError)" Error="None" ReportIssue="Summary" Priority="1" Title="No issues with user activity were found" Text="No problem with RPC latencies, outstanding requests, or user activity on the server {0} was found." S0="%SERVER%" AlwaysEvaluate="True"/>

						<!-- ISSUE WAS FOUND... Now check to see if it was caused by disk or any other system resource... -->
						<Rule Name="fRPCProblemFoundContinue" Query="$fRPCProblemFound and not($fFatalError)"/>
						<Rule Name="szTimeRangesWithRPCProblem" Query="join(',',$szTimeRangeOfProblem)">
							<Variable Name="RPCPROBLEMTIMERANGES" Scope="Global"/>
						</Rule>
						<Rule Name="szPrettyTimeRangesWithRPCProblem" Query="join(', ',$szTimeRangeOfProblem)">
							<Variable Name="PRETTYRPCPROBLEMTIMERANGES" Scope="Global"/>
						</Rule>
						<Rule Name="szResetTimeRanges" Query="if(@S1=1,$szTimeRangesWithRPCProblem,@S2)" S1="%ANALYZEALLBADRPCS%" S2="%szSELECTEDLISTOFTIMERANGES%">
							<Variable Name="szSELECTEDLISTOFTIMERANGES" Scope="Children"/>
						</Rule>

						<Rule NextStep="GetExmonFile" Name="fRPCProblemFoundCheckExmonActivity" Query="($fHighRPCRate or $fRPCProblemFound) and not($fFatalError) and not($fExtremelyActiveUsers) and not($fActiveUsers)" Priority="3" Text="- Investigate the RPC activity on this server." Display="Hide" AlwaysEvaluate="True"/>
						<Rule NextStep="BusyUsersInformation" Name="fBusyUserInfoNS" Query="$fBusyUsersInformation" Priority="2" Text="- Investigate user activity to identify if the high usage is due to a single user, or is distributed across many users." Display="Hide"/>
						<Rule Name="fBusyUsersInformation" Query="$fActiveUsers or $fExtremelyActiveUsers and not($fFatalError)" Error="BestPractice" ReportIssue="Recommendation" Title="Recommendation for active users on a loaded server: move users to another server" Text="If the users accessing the Exchange server are highly active, and you are unable to reduce the load on your server, and your server is exhibiting bottlenecks, you should consider moving some users to another server." AlwaysEvaluate="True"/>
						<Rule Name="szActiveUserText" Query="string(@Title)" Title="Moderately high RPC activity was found on the server."/>
						<Rule Name="szExtremelyActiveUserText" Query="string(@Title)" Title="Extremely high RPC activity was found on the server."/>
						<Rule Name="szNormalUserActivityText" Query="string(@Title)" Title="Although the Exchange performance troubleshooter did not find high RPC operations per second at this time, high RPC operations per second rates can be the cause of performance problems."/>
						<Rule Query="if($fActiveUsers, $szActiveUserText, if($fExtremelyActiveUsers, $szExtremelyActiveUserText, $szNormalUserActivityText))">
							<Variable Name="BUSYUSERTEXT" Scope="Children"/>
						</Rule>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>

	<!-- ****************************************************************************************************************** -->
	<Object Type="Step" Name="PerfmonDiskHealthE12" Title="Disk Drive Health" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%SERVERNAME%" Substitution="SERVER" Display="Hide"/>
			<Setting Key1="%szPDHSERVERNAME%" Substitution="szPDHSERVERNAME" Display="Hide"/>
			<Setting Key1="%ListofDatabaseDrives%" Substitution="ListofDatabaseDrives" Display="Hide"/>
			<Setting Key1="%T2DList[PAGE]%" Substitution="T2DListPage" Display="Hide"/>
			<Setting Key1="%T2DList[SG]%" Substitution="T2DListSG" Display="Hide"/>
			<Setting Key1="%WinDirDrive%" Substitution="WinDirDrive" Display="Hide"/>
			<Setting Key1="%ROLE%" Substitution="ROLE" Display="Hide"/>
			<Setting Key1="%TEMPDIR%" Substitution="TEMPDIR" Display="Hide"/>
			<Setting Key1="%TMPDIR%" Substitution="TMPDIR" Display="Hide"/>
			<Setting Key1="%TEMPDrive%" Substitution="TEMPDRIVE" Display="Hide"/>
			<Setting Key1="%TMPDrive%" Substitution="TMPDRIVE" Display="Hide"/>
			<Setting Key1="%varPDHFileName%" Substitution="szPDHFILE" Display="Hide"/>
			<Setting Key1="%TimeSliceInfo[%szSELECTEDTIMEINDEX%][TimeSliceInfoList]%" Substitution="szSELECTEDLISTOFTIMESLICES" Display="Hide"/>
			<Setting Key1="%szSELECTEDLISTOFTIMERANGES%" Substitution="szSELECTEDLISTOFTIMERANGES" Display="Hide"/>
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%varIsHubTransportServer%" Substitution="varIsHubTransportServer" Display="Hide"/>
			<Setting Key1="%varIsClientAccessServer%" Substitution="varIsClientAccessServer" Display="Hide"/>
			<Setting Key1="%varIsMailboxServer%" Substitution="varIsMailboxServer" Display="Hide"/>
			<Setting Key1="%varRPCSymptomFound%" Substitution="varRPCSymptomFound" Display="Hide"/>
			<Setting Key1="%varIsExchange12RTM%" Substitution="varIsExchange12RTM" Display="Hide"/>
			<Setting Key1="%MailboxCount%" Substitution="varMailboxCount" Display="Hide"/>
			<Object Type="Progress" Title="Measuring Disk Health" Text="Please wait while the tool gathers information about the physical disks on the server {0}." S0="%SERVER%" HelpId="html\414e3916-420d-492b-b1a2-58dc41236c6a.htm">
				<Object Type="Group" Name="Disk Drive Health" Class="Area" GroupingClass="True" SecurityContext="EXLOGON">
					<Rule NextStep="DisplayResultsStep" Name="fDisplayDiskHealthStep" Query="@S1=0" Priority="1" S1="%varContinueRun%" AlwaysEvaluate="True"/>
					<Rule Name="szDrivePerfCount" Query="string(@Title)" Title="Disk Drive Performance Counter Information">
						<Variable Name="DISPLAYTITLE" Scope="Global"/>
					</Rule>
					<Rule Name="szPerfDiskHealth" Query="'E12Collection_PerfmonDiskHealthE12'">
						<Variable Name="PreviousName" Scope="Children"/>
					</Rule>
					<Rule Name="szPerfmonErrorState" Query="concat($szPerfDiskIssueFound, $szPerfDiskErrorFound)" AlwaysEvaluate="True">
						<Variable Name="ErrorStateText" Scope="Global"/>
					</Rule>
					<Rule Name="szNoIssue8" Query="string(@Title)" Title="No performance issue was observed from the disk performance counters."/>
					<Rule Name="szPerfDiskIssueFound" Query="if($fPerfIssueFound,string(@Title),$szNoIssue8)" Title="A potential performance issue was observed from the disk performance counters. One or more disks is exhibiting a performance bottleneck." AlwaysEvaluate="True"/>
					<Rule Name="szPerfDiskErrorFound" Query="if($fPerfDiskErrorFound,string(@Title), '')" Title="There was an error reading performance counter information." AlwaysEvaluate="True"/>
					<Rule Name="fPerfDiskErrorFound" Query="$fDBErrorAccessingLogicalDiskCounters or $fSGErrorAccessingSGLogicalDiskCounters or $fSGErrorAccessingPerformanceCounters or $fTMPErrorAccessingLogicalDiskCounters or $fTMPErrorAccessingPerformanceCounters or $fTMPErrorAccessingLogicalDiskCounters or $fTMPErrorAccessingPerformanceCounters or $fTEMPErrorAccessingLogicalDiskCounters or $fTEMPErrorAccessingPerformanceCounters or $fPageErrorAccessingLogicalDiskCounters or $fPageErrorAccessingPerformanceCounters" AlwaysEvaluate="True"/>
					<Rule Name="szPerfDiskIssueAndErrorFound" Query="if($fPerfIssueFound,string(@Title),$szNoIssue8)" Title="A potential performance issue was observed from the disk performance counters. One or more disks is exhibiting a performance bottleneck. Additionally, there was an error reading performance counter information." AlwaysEvaluate="True"/>
					<Rule Name="fPerfIssueFound" Query="$fDBDiskBad or $fSGDiskBad or $fTMPDiskBad or $fTEMPDiskBad or $fPageDiskBad or $fLogStallsBad or $fLogStallsBadE12Sp1" Error="Error" ReportIssue="Summary" Title="Disk bottleneck found" Text="A potential performance issue was observed from the disk performance counters. One or more disks is exhibiting a performance bottleneck." AlwaysEvaluate="True"/>
					<Rule Name="fNoPerfDiskIssueFound" Query="not($fPerfIssueFound)" Error="None" ReportIssue="Summary" Title="No disk bottleneck detected" Text="The tool did not detect a disk bottleneck when the analysis was performed." AlwaysEvaluate="True"/>
					<Rule Name="szDiskHealthErrorState" Query="$szPerfDiskIssueAndErrorFound" AlwaysEvaluate="True">
						<Variable Name="ErrorStateText" Scope="Global"/>
					</Rule>

					<Object Type="Cache" Name="Disk Performance Counter Health" Key1="Add" Key2="TimeSlices" Key3="%szSELECTEDLISTOFTIMERANGES%" Key4="," Class="Time Range" GroupingClass="True">
						<Setting Substitution="szTIMERANGE" Display="Hide"/>
						<Object Type="Cache" Name="CurrentTimeSlice" Key1="Add" Key2="Timeslice%szTIMERANGE%" Key3="%szSELECTEDLISTOFTIMESLICES%" Display="Hide">
							<Setting Substitution="iSAMPLECOUNT" Format=".*?%szTIMERANGE%;([^,]*).*----$1" Display="Hide"/>
							<Object Type="Group" Name="Disk health during the time range: %szTIMERANGE%">
								<!-- DATABASE CHECKS -->
								<Object Type="If" Key1="'%varIsHubTransportServer%'='1' or '%varIsMailboxServer%'='1'">
									<Object Type="Cache" Name="Database health: %szTIMERANGE%" Key1="Add" Key2="DBDrive" Key3="%ListofDatabaseDrives%" Key4="," Display="Hide">
										<Setting Substitution="DBDISK" Display="Hide"/>
										<Object Type="Group" Name="%DBDISK%">
											<Object Type="Pdh" Name="Performance Data" Key1="%szPDHSERVERNAME%" Key2="%iSAMPLECOUNT%" Key3="%szPDHFILE%" Key4="%szTIMERANGE%" Key5="DB%DBDISK%" Timeout="%1000">
												<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Read" Key3="%DBDISK%" Format="Average">
													<Rule Name="iDBLogicalDiskAverageDiskSecondsPerRead" Query="ifnumber($.,roundto($.,3))" Text="Database disk: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Read')" P9="roundto($.,3)"/>
													<Rule Name="fDBBadInstance" Query="$. = 'NaN'" Error="Warning" Title="Error gathering performance counter data" Text="Missing performance data for '{0}'." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Read')"/>
												</Setting>
												<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Write" Key3="%DBDISK%" Format="Average">
													<Rule Name="iDBLogicalDiskAverageDiskSecondsPerWrite" Query="ifnumber($.,roundto($.,3))" Text="Database disk: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Write')" P9="roundto($.,3)"/>
												</Setting>
												<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Write" Key3="%DBDISK%" Format="Max">
													<Rule Name="iDBLogicalDiskAverageDiskSecondsPerWritespikes" Query="ifnumber($.,roundto($.,3))" Text="Database disk: Maximum '{0}' = {9}." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Write')" P9="roundto($.,3)"/>
												</Setting>
												<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Read" Key3="%DBDISK%" Format="Max">
													<Rule Name="iDBLogicalDiskAverageDiskSecondsPerReadspikes" Query="ifnumber($.,roundto($.,3))" Text="Database disk: Maximum '{0}' = {9}." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Read')" P9="roundto($.,3)"/>
												</Setting>

												<Setting Key1="LogicalDisk" Key2="Avg. Disk Queue Length" Key3="%DBDISK%" Format="Average">
													<Rule Name="iDBLogicalDiskAverageDiskQueueLength" Query="ifnumber($.,roundto($.,3))" Text="Database disk: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk Queue Length')" P9="roundto($.,3)"/>
												</Setting>
												<Setting Key1="LogicalDisk" Key2="Disk Reads/sec" Key3="%DBDISK%" Format="Average">
													<Rule Name="iDBNumberOfDiskReadsPerSec" Query="ifnumber($.,round($.))" Text="Database disk: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk Reads/Sec')" P9="round($.)"/>
												</Setting>

												<Setting Key1="LogicalDisk" Key2="Disk Writes/sec" Key3="%DBDISK%" Format="Average">
													<Rule Name="iDBNumberOfDiskWritesPerSec" Query="ifnumber($.,round($.))" Text="Database disk: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%DBDISK%)\Disk Writes/Sec')" P9="round($.)"/>
												</Setting>
												<Rule Name="iDBRATIOofReadsToWrites" Query="if($iDBNumberOfDiskWritesPerSec &gt; 0, roundto($iDBNumberOfDiskReadsPerSec div $iDBNumberOfDiskWritesPerSec,2))" Text="Database drive '{2}': Ratio of Reads/Writes = {1}." P1="roundto($iDBNumberOfDiskReadsPerSec div $iDBNumberOfDiskWritesPerSec,1)" S2="%DBDISK%"/>
												<!-- Error Rules -->
												<Object Type="If" Key1="'%varRPCSymptomFound%'='1'">
													<Object Type="Group" Name="Database Disk Errors" LogText="Processing Error rules for Database disks">
														<Rule Name="fDBLogicalDiskAverageDiskSecondsPerRead20" Query="not($iDBLogicalDiskAverageDiskSecondsPerRead &lt; 0.020)" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing database files" Text="Database disk: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Read')" S6="20" P7="roundto(@S6 div 1000,3)" P8="$iDBLogicalDiskAverageDiskSecondsPerRead*1000" P9="$iDBLogicalDiskAverageDiskSecondsPerRead" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fDBLogicalDiskAverageDiskSecondsPerReadspikes50" Query="not($iDBLogicalDiskAverageDiskSecondsPerReadspikes &lt; 0.050)" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing database files" Text="Database disk: The maximum value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Read')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iDBLogicalDiskAverageDiskSecondsPerReadspikes*1000" P9="$iDBLogicalDiskAverageDiskSecondsPerReadspikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fDBLogicalDiskAverageDiskSecondsPerWrite20" Query="$fDBDatabasePageFaultStallssec1" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing database files" Text="Database disk: The average value for '{0}' should be less than {7}. The measured value is {9}." P0="localize-path('Database(Information Store)\Page Fault Stalls/sec')" S7="1" P9="$iDBDatabasePageFaultStallssec" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
													</Object>
												</Object>
												<!-- Warning Rules -->
												<Object Type="If" Key1="'%varRPCSymptomFound%'!='1'">
													<Object Type="Group" Name="Database Disk Warnings" LogText="Processing Warning rules for Database disks">
														<Rule Name="fDBLogicalDiskAverageDiskSecondsPerRead20Warning" Query="not($iDBLogicalDiskAverageDiskSecondsPerRead &lt; 0.020)" Error="Warning" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing database files" Text="Database disk: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Read')" S6="20" P7="roundto(@S6 div 1000,3)" P8="$iDBLogicalDiskAverageDiskSecondsPerRead*1000" P9="$iDBLogicalDiskAverageDiskSecondsPerRead" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fDBLogicalDiskAverageDiskSecondsPerReadspikes50Warning" Query="not($iDBLogicalDiskAverageDiskSecondsPerReadspikes &lt; 0.050)" Error="Warning" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing database files" Text="Database disk: The maximum value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Read')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iDBLogicalDiskAverageDiskSecondsPerReadspikes*1000" P9="$iDBLogicalDiskAverageDiskSecondsPerReadspikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fDBLogicalDiskAverageDiskSecondsPerWrite20Warning" Query="$fDBDatabasePageFaultStallssec1" Error="Warning" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing database files" Text="Database disk: The average value for '{0}' should be less than {7}. The measured value is {9}." P0="localize-path('Database(Information Store)\Page Fault Stalls/sec')" S7="1" P9="$iDBDatabasePageFaultStallssec" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
													</Object>
												</Object>
												<!-- Next Step rules... -->
												<Rule Name="fDBDiskBad" Query="$fDBLogicalDiskAverageDiskSecondsPerRead20 or $fDBLogicalDiskAverageDiskSecondsPerReadspikes50 or $fDBLogicalDiskAverageDiskSecondsPerWrite20" AlwaysEvaluate="True"/>
												<Rule Name="fDBLogicalDiskAverageDiskQueueLengthNumOfSpindles" Query="not(if($fIsASan and $fIsNotReplicated, $iDBLogicalDiskAverageDiskQueueLength &lt; @S3,0))" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing database files" Text="Database disk: The average '{0}' = {9}. The number of spindles is {3}." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk Queue Length')" S3="%NUMBEROFSPINDLES%" P9="$iDBLogicalDiskAverageDiskQueueLength" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>

												<Rule Name="fIsASan" Query="false()"/>
												<Rule Name="fIsNotASan" Query="true()"/>
												<Rule Name="fIsNotReplicated" Query="false()"/>

												<Rule Name="fDBErrorAccessingLogicalDiskCounters" Query="contains(../Exception/@Message,'0xc0000bb8')" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the database drive" Text="The 'LogicalDisk' counters on drive {2} may not be enabled. Use Diskperf -y to enable counters. {1}." P1="../Exception/@Message" S2="%DBDISK%"/>
												<Rule Name="fDBDiskEntryNotInLogFile" Query="contains(../Exception/@Message,'0xc0000bcd') or contains(../Exception/@Message,'0xc0000bc4')" Error="Warning" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the database drive" Text="One or more performance counters are not present in the file {1}. The following counters are missing: {2}" S1="%szPDHFILE%" P2="join(',',../Exception/@Path)"/>
												<Rule Name="fDBErrorAccessingPerformanceCounters" Query="../Exception and not($fDBErrorAccessingLogicalDiskCounters or $fDBDiskEntryNotInLogFile)" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the database drive" Text="Database drive '{2}': Error accessing 'LogicalDisk' counters. {1}." P1="../Exception/@Message" S2="%DBDISK%"/>
											</Object>
										</Object>
									</Object>

									<!-- STORAGE GROUP (TRANSACTION LOG) CHECKS -->
									<Object Type="Cache" Name="Storage group health: %szTIMERANGE%" Key1="Add" Key2="SGDrive" Key3="%T2DListSG%" Key4="," Display="Hide">
										<Setting Substitution="SGDISK" Display="Hide"/>
										<Object Type="Group" Name="%SGDISK%">
											<Object Type="Pdh" Name="Performance Data" Key1="%szPDHSERVERNAME%" Key2="%iSAMPLECOUNT%" Key3="%szPDHFILE%" Key4="%szTIMERANGE%" Key5="SG%SGDISK%" Timeout="%1000">
												<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Read" Key3="%SGDISK%" Format="Average">
													<Rule Name="iSGLogicalDiskAverageDiskSecondsPerRead" Query="ifnumber($.,roundto($.,3))" Text="Transaction log disk: Average '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Read')" P8="round($.*1000)" P9="roundto($.,3)"/>
													<Rule Name="fSGBadInstance" Query="$. = 'NaN'" Error="Warning" Sev="3" Title="Error gathering performance counter data" Text="Missing performance data for '{0}'." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Read')"/>
												</Setting>
												<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Read" Key3="%SGDISK%" Format="Max">
													<Rule Name="iSGLogicalDiskAverageDiskSecondsPerReadspikes" Query="ifnumber($.,roundto($.,3))" Text="Transaction log disk: Maximum '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Read')" P8="round($.*1000)" P9="roundto($.,3)"/>
												</Setting>
												<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Write" Key3="%SGDISK%" Format="Average">
													<Rule Name="iSGLogicalDiskAverageDiskSecondsPerWrite" Query="ifnumber($.,roundto($.,3))" Text="Transaction log disk: Average '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Write')" P8="round($.*1000)" P9="roundto($.,3)"/>
												</Setting>
												<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Write" Key3="%SGDISK%" Format="Max">
													<Rule Name="iSGLogicalDiskAverageDiskSecondsPerWritespikes" Query="ifnumber($.,roundto($.,3))" Text="Transaction log disk: Maximum '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Write')" P8="round($.*1000)" P9="roundto($.,3)"/>
												</Setting>
												<Setting Key1="LogicalDisk" Key2="Avg. Disk Queue Length" Key3="%SGDISK%" Format="Average">
													<Rule Name="iSGLogicalDiskAverageDiskQueueLength" Query="ifnumber($.,round($.))" Text="Transaction log disk: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk Queue Length')" P9="roundto($.,3)"/>
												</Setting>
												<Setting Key1="LogicalDisk" Key2="Disk Reads/sec" Key3="%SGDISK%" Format="Average">
													<Rule Name="iSGNumberOfDiskReadsPerSec" Query="ifnumber($.,round($.))" Text="Transaction log disk: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%SGDISK%)\Disk Reads/Sec')" P9="round($.)"/>
												</Setting>

												<Setting Key1="LogicalDisk" Key2="Disk Writes/sec" Key3="%SGDISK%" Format="Average">
													<Rule Name="iSGNumberOfDiskWritesPerSec" Query="ifnumber($.,round($.))" Text="Transaction log disk: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%SGDISK%)\Disk Writes/Sec')" P9="round($.)"/>
												</Setting>
												<Rule Name="iSGRatioofReadsToWrites" Query="if($iSGNumberOfDiskWritesPerSec &gt; 0, roundto($iSGNumberOfDiskReadsPerSec div $iSGNumberOfDiskWritesPerSec,2))" Text="Transaction log drive {2}: Ratio of Reads/Writes = {1}." P1="roundto($iSGNumberOfDiskReadsPerSec div $iSGNumberOfDiskWritesPerSec,2)" S2="%SGDISK%"/>
												<!-- Error rules -->
												<Object Type="If" Key1="'%varRPCSymptomFound%'='1'">
													<Object Type="Group" Name="Storage Group Disk Errors" LogText="Processing Error rules for Storage Group disks">
														<Rule Name="fSGLogicalDiskAverageDiskSecondsPerRead20" Query="not($iSGLogicalDiskAverageDiskSecondsPerRead &lt; 0.020)" Error="Error" Sev="1" ReportIssue="Issue" Title="Transaction log read latencies are high" Text="Transaction log disk: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Read')" S6="20" P7="roundto(@S6 div 1000,3)" P8="$iSGLogicalDiskAverageDiskSecondsPerRead*1000" P9="$iSGLogicalDiskAverageDiskSecondsPerRead" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fSGLogicalDiskAverageDiskSecondsPerReadspikes50" Query="not($iSGLogicalDiskAverageDiskSecondsPerReadspikes &lt; 0.050)" Error="Error" Sev="1" ReportIssue="Issue" Title="Transaction log read latencies are high" Text="Transaction log disk: The maximum value '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Read')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iSGLogicalDiskAverageDiskSecondsPerReadspikes*1000" P9="$iSGLogicalDiskAverageDiskSecondsPerReadspikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fSGLogicalDiskAverageDiskSecondsPerWrite10" Query="not($fIsNotASan and $iSGLogicalDiskAverageDiskSecondsPerWrite &lt; 0.010)" Error="Error" Sev="1" ReportIssue="Issue" Title="Transaction log write latencies are high" Text="Transaction log disk: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Write')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iSGLogicalDiskAverageDiskSecondsPerWrite*1000" P9="$iSGLogicalDiskAverageDiskSecondsPerWrite" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fSGLogicalDiskAverageDiskSecondsPerWritespikes50" Query="not($iSGLogicalDiskAverageDiskSecondsPerWritespikes &lt; 0.050)" Error="Error" Sev="1" ReportIssue="Issue" Title="Transaction log write latencies are high" Text="Transaction log disk: The maximum value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Write')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iSGLogicalDiskAverageDiskSecondsPerWritespikes*1000" P9="$iSGLogicalDiskAverageDiskSecondsPerWritespikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
													</Object>
												</Object>
												<!-- Warning rules -->
												<Object Type="If" Key1="'%varRPCSymptomFound%'!='1'">
													<Object Type="Group" Name="Storage Group Disk Warnings" LogText="Processing Warning rules for Storage Group disks">
														<Rule Name="fSGLogicalDiskAverageDiskSecondsPerRead20Warning" Query="not($iSGLogicalDiskAverageDiskSecondsPerRead &lt; 0.020)" Error="Warning" Sev="1" ReportIssue="Issue" Title="Transaction log read latencies are high" Text="Transaction log disk: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Read')" S6="20" P7="roundto(@S6 div 1000,3)" P8="$iSGLogicalDiskAverageDiskSecondsPerRead*1000" P9="$iSGLogicalDiskAverageDiskSecondsPerRead" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fSGLogicalDiskAverageDiskSecondsPerReadspikes50Warning" Query="not($iSGLogicalDiskAverageDiskSecondsPerReadspikes &lt; 0.050)" Error="Warning" Sev="1" ReportIssue="Issue" Title="Transaction log read latencies are high" Text="Transaction log disk: The maximum value '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Read')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iSGLogicalDiskAverageDiskSecondsPerReadspikes*1000" P9="$iSGLogicalDiskAverageDiskSecondsPerReadspikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fSGLogicalDiskAverageDiskSecondsPerWrite10Warning" Query="not($fIsNotASan and $iSGLogicalDiskAverageDiskSecondsPerWrite &lt; 0.010)" Error="Warning" Sev="1" ReportIssue="Issue" Title="Transaction log write latencies are high" Text="Transaction log disk: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Write')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iSGLogicalDiskAverageDiskSecondsPerWrite*1000" P9="$iSGLogicalDiskAverageDiskSecondsPerWrite" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
														<Rule Name="fSGLogicalDiskAverageDiskSecondsPerWritespikes50Warning" Query="not($iSGLogicalDiskAverageDiskSecondsPerWritespikes &lt; 0.050)" Error="Warning" Sev="1" ReportIssue="Issue" Title="Transaction log write latencies are high" Text="Transaction log disk: The maximum value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Write')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iSGLogicalDiskAverageDiskSecondsPerWritespikes*1000" P9="$iSGLogicalDiskAverageDiskSecondsPerWritespikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
													</Object>
												</Object>
												<!-- NextStep Rules -->
												<Rule Name="fSGDiskBad" Query="$fSGLogicalDiskAverageDiskSecondsPerRead20 or $fSGLogicalDiskAverageDiskSecondsPerReadspikes50 or $fSGLogicalDiskAverageDiskSecondsPerWrite10 or $fSGLogicalDiskAverageDiskSecondsPerWritespikes50 or $fSGRatioofReadsToWritesLessThan10" AlwaysEvaluate="True"/>
												<Rule Name="fSGLogicalDiskAverageDiskQueueLengthNumOfSpindles" Query="not(if($fIsASan and $fIsNotReplicated, $iSGLogicalDiskAverageDiskQueueLength &lt; @S3,0))" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on disk containing transaction log files" Text="Transaction log disk: The average '{0}' = {9}. The number of spindles is {3}." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk Queue Length')" S3="%NUMBEROFSPINDLES%" P9="round($iSGLogicalDiskAverageDiskQueueLength*1000)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="fSGLogicalDiskAverageDiskSecondsPerWrite5" Query="not(if($fIsASan and $fIsNotReplicated, $iSGLogicalDiskAverageDiskSecondsPerWrite &lt; 0.005,0))" Error="Error" Sev="1" ReportIssue="Issue" Title="Transaction log drive write latencies are high" Text="Transaction log disk: The average value of '{0}' = {9} ({8} ms), which is greater than the threshold of {7} seconds ({6} ms)." P0="localize-path('LogicalDisk(%SGDISK%)\Avg. Disk sec/Write')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iSGLogicalDiskAverageDiskSecondsPerWrite*1000" P9="round($iSGLogicalDiskAverageDiskSecondsPerWrite)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="fSGRatioofReadsToWritesLessThan10" Query="false and not($iSGRatioofReadsToWrites &lt; 0.10) and not($iSGNumberOfDiskReadsPerSec = 0)" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on disk containing transaction log files." Text="The ratio of disk reads to writes on drive {2} was {1}. Generally, this ratio should be less than 0.10; a higher ratio indicates that this disk is used for something other than writing to the transaction log files. For best performance, the log drive should be dedicated for transaction log files." P1="$iSGRatioofReadsToWrites" S2="%SGDISK%" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>

												<Rule Name="fSGErrorAccessingSGLogicalDiskCounters" Query="contains(../Exception/@Message,'0xc0000bb8') and not($fDBErrorAccessingLogicalDiskCounters)" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the transaction log drive" Text="Transaction log drive {2}: 'LogicalDisk' counters may not be enabled. Use Diskperf -y to enable counters. {1}." P1="../Exception/@Message" S2="%SGDISK%"/>
												<Rule Name="fSGErrorAccessingPerformanceCounters" Query="../Exception and not($fSGErrorAccessingSGLogicalDiskCounters or $fDBErrorAccessingLogicalDiskCounters or $fSGEntryNotInLogFile)" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance counters for the transaction log drive" Text="Transaction log drive {2}: Error accessing 'LogicalDisk' counters. {1}." P1="../Exception/@Message" S2="%SGDISK%"/>
												<Rule Name="fSGEntryNotInLogFile" Query="contains(../Exception/@Message,'0xc0000bcd') or contains(../Exception/@Message,'0xc0000bc4')" Error="Warning" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the transaction log drive" Text="One or more performance counters are not present in the file {1}. The following counters are missing: {2}" S1="%szPDHFILE%" P2="join(',',../Exception/@Path)"/>
											</Object>
										</Object>
									</Object>
									<!-- Get the Log health: Log Record Stalls and Threads Waiting -->
									<Object Type="If" Name="Log analysis Exchange 2007 RTM" Key1="'%varIsExchange12RTM%'='1' and ('%varIsMailboxServer%'='1' and %varMailboxCount% &gt; 0)">
										<Object Type="Pdh" Name="Performance Data" Key1="%szPDHSERVERNAME%" Key2="%iSAMPLECOUNT%" Key3="%szPDHFILE%" Key4="%szTIMERANGE%" Key5="LOGSTALLDUP" Timeout="%1000">
											<Setting Key1="Database" Key2="Log Record Stalls/sec" Key3="Information Store" Format="Average">
												<Rule Name="fAvgLogRecordStallsPerSec10" Query="$. &gt; 10 and not($fSGBadInstanceLogRecord)" Error="Error" ReportIssue="Issue" Title="Average '{0}' beyond error threshold" Text="The average value of '{0}' is {9}, which is greater than the threshold value of {8}. The transaction log drive may be a bottleneck." P0="localize-path('Database(Information Store)\Log Record Stalls/sec')" S8="10" P9="roundto($.,2)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="iAvgLogRecordStallsPerSec" Query="ifnumber($.,roundto($.,2))" Error="None" Text="Average '{0}' = {9}." P0="localize-path('Database(Information Store)\Log Record Stalls/sec')" P9="roundto($.,2)"/>
												<Rule Name="fSGBadInstanceLogRecord" Query="$. = 'NaN'" Error="Warning" Title="Error gathering performance counter data" Text="Missing performance data for '{0}'." P0="localize-path('Database(Information Store)\Log Record Stalls/sec')"/>
											</Setting>
											<Setting Key1="Database" Key2="Log Record Stalls/sec" Key3="Information Store" Format="Max">
												<Rule Name="fMaxLogRecordStallsPerSec10" Query="$. &gt; 100 and not($fSGBadInstanceLogRecord)" Error="Error" ReportIssue="Issue" Title="Maximum '{0}' beyond error threshold" Text="The maximum value of '{0}' is {9}, which is greater than the threshold of {8}. The transaction log drive may be a bottleneck." P0="localize-path('Database(Information Store)\Log Record Stalls/sec')" S8="100" P9="roundto($.,2)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="iMaxLogRecordStallsPerSec" Query="ifnumber($.,roundto($.,2))" Error="None" Text="Maximum '{0}' = {9}." P0="localize-path('Database(Information Store)\Log Record Stalls/sec')" P9="roundto($.,2)"/>
											</Setting>
											<Setting Key1="Database" Key2="Log Threads Waiting" Key3="Information Store" Format="Average">
												<Rule Name="fAvgLogThreadsWaiting10" Query="$. &gt; 10" Error="Error" ReportIssue="Issue" Title="Average '{0}' beyond error threshold" Text="The average value of '{0}' is {9}, which is greater than the threshold of {8}. The transaction log drive may be a bottleneck." P0="localize-path('Database(Information Store)\Log Threads Waiting')" S8="10" P9="roundto($.,2)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="iAvgLogThreadsWaiting" Query="ifnumber($.,$.)" Text="Average '{0}' = {9}." P0="localize-path('Database(Information Store)\Log Threads Waiting')" P9="roundto($.,2)"/>
												<Rule Name="fSGBadInstanceLogThreadsWaiting" Query="$. = 'NaN'" Error="Warning" Title="Error gathering performance counter data" Text="Missing performance data for '{0}'." P0="localize-path('Database(Information Store)\Log Threads Waiting')"/>
											</Setting>
											<Setting Key1="Database" Key2="Log Threads Waiting" Key3="Information Store" Format="Max">
												<Rule Name="fMaxLogThreadsWaiting20" Query="$. &gt; 20 and not($fSGBadInstanceLogThreadsWaiting)" Error="Error" ReportIssue="Issue" Title="Maximum '{0}' beyond error threshold" Text="The maximum value of '{0}' is {9}, which is greater than the threshold of {8}. The transaction log drive may be a bottleneck." P0="localize-path('Database(Information Store)\Log Threads Waiting')" S8="20" P9="$." GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="iMaxLogThreadsWaiting" Query="ifnumber($.,roundto($.,2))" Error="None" Text="Maximum '{0}' = {9}." P0="localize-path('Database(Information Store)\Log Threads Waiting')" P9="roundto($.,2)"/>
											</Setting>
											<Setting Key1="Database" Key2="Database Page Fault Stalls/sec" Key3="Information Store" Format="Average">
												<Rule Name="iDBDatabasePageFaultStallssec" Query="ifnumber($.,roundto($.,2))" Text="Average '{0}' = {9}." P0="localize-path('Database(Information Store)\Page Fault Stalls/sec')" P9="roundto($.,3)"/>
												<Rule Name="fDBBadInstancePageFaultStallsSec" Query="$. = 'NaN'" Error="Warning" Sev="3" Title="Error gathering Database performance counter data" Text="Missing performance data for '{0}'." P0="localize-path('Database(Information Store)\Database Page Fault Stalls/sec')"/>
												<Rule Name="fDBDatabasePageFaultStallssec0" Query="ifnumber($.,not($iDBDatabasePageFaultStallssec &lt; 0.05))" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing database files" Text="The average value of '{0}' should be zero. The measured value is {9}." P0="localize-path('Database(Information Store)\Database Page Fault Stalls/sec')" P9="$iDBDatabasePageFaultStallssec" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="fDBDatabasePageFaultStallssec1" Query="ifnumber($.,not($iDBDatabasePageFaultStallssec &lt; 1))"/>
											</Setting>
											<Rule Name="fLogStallsBad" Query="$fAvgLogRecordStallsPerSec10 or $fMaxLogRecordStallsPerSec10 or $fAvgLogThreadsWaiting10 or $fMaxLogThreadsWaiting20" AlwaysEvaluate="True"/>
										</Object>
									</Object>

									<Object Type="If" Name="Log analysis Exchange 2007 SP1 Builds and Higher" Key1="not('%varIsExchange12RTM%'='1') and ('%varIsMailboxServer%'='1' and %varMailboxCount% &gt; 0)">
										<Object Type="Pdh" Name="Performance Data" Key1="%szPDHSERVERNAME%" Key2="%iSAMPLECOUNT%" Key3="%szPDHFILE%" Key4="%szTIMERANGE%" Key5="LOGSTALLDUP" Timeout="%1000">
											<Setting Key1="MSExchange Database" Key2="Log Record Stalls/sec" Key3="Information Store" Format="Average">
												<Rule Name="fAvgLogRecordStallsPerSec10E12Sp1" Query="$. &gt; 10 and not($fSGBadInstanceLogRecord)" Error="Error" ReportIssue="Issue" Title="Average '{0}' beyond error threshold" Text="The average value of '{0}' is {9}, which is greater than the threshold value of {8}. The transaction log drive may be a bottleneck." P0="localize-path('MSExchange Database(Information Store)\Log Record Stalls/sec')" S8="10" P9="roundto($.,2)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="iAvgLogRecordStallsPerSecE12Sp1" Query="ifnumber($.,roundto($.,2))" Error="None" Text="Average '{0}' = {9}." P0="localize-path('MSExchange Database(Information Store)\Log Record Stalls/sec')" P9="roundto($.,2)"/>
												<Rule Name="fSGBadInstanceLogRecordE12Sp1" Query="$. = 'NaN'" Error="Warning" Title="Error gathering performance counter data" Text="Missing performance data for '{0}'." P0="localize-path('MSExchange Database(Information Store)\Log Record Stalls/sec')"/>
											</Setting>
											<Setting Key1="MSExchange Database" Key2="Log Record Stalls/sec" Key3="Information Store" Format="Max">
												<Rule Name="fMaxLogRecordStallsPerSec10E12Sp1" Query="$. &gt; 100 and not($fSGBadInstanceLogRecord)" Error="Error" ReportIssue="Issue" Title="Maximum '{0}' beyond error threshold" Text="The maximum value of '{0}' is {9}, which is greater than the threshold of {8}. The transaction log drive may be a bottleneck." P0="localize-path('MSExchange Database(Information Store)\Log Record Stalls/sec')" S8="100" P9="roundto($.,2)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="iMaxLogRecordStallsPerSecE12Sp1" Query="ifnumber($.,roundto($.,2))" Error="None" Text="Maximum '{0}' = {9}." P0="localize-path('MSExchange Database(Information Store)\Log Record Stalls/sec')" P9="roundto($.,2)"/>
											</Setting>
											<Setting Key1="MSExchange Database" Key2="Log Threads Waiting" Key3="Information Store" Format="Average">
												<Rule Name="fAvgLogThreadsWaiting10E12Sp1" Query="$. &gt; 10" Error="Error" ReportIssue="Issue" Title="Average '{0}' beyond error threshold" Text="The average value of '{0}' is {9}, which is greater than the threshold of {8}. The transaction log drive may be a bottleneck." P0="localize-path('MSExchange Database(Information Store)\Log Threads Waiting')" S8="10" P9="roundto($.,2)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="iAvgLogThreadsWaitingE12Sp1" Query="ifnumber($.,$.)" Text="Average '{0}' = {9}." P0="localize-path('MSExchange Database(Information Store)\Log Threads Waiting')" P9="roundto($.,2)"/>
												<Rule Name="fSGBadInstanceLogThreadsWaitingE12Sp1" Query="$. = 'NaN'" Error="Warning" Title="Error gathering performance counter data" Text="Missing performance data for '{0}'." P0="localize-path('MSExchange Database(Information Store)\Log Threads Waiting')"/>
											</Setting>
											<Setting Key1="MSExchange Database" Key2="Log Threads Waiting" Key3="Information Store" Format="Max">
												<Rule Name="fMaxLogThreadsWaiting20E12Sp1" Query="$. &gt; 20 and not($fSGBadInstanceLogThreadsWaiting)" Error="Error" ReportIssue="Issue" Title="Maximum '{0}' beyond error threshold" Text="The maximum value of '{0}' is {9}, which is greater than the threshold of {8}. The transaction log drive may be a bottleneck." P0="localize-path('MSExchange Database(Information Store)\Log Threads Waiting')" S8="20" P9="$." GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="iMaxLogThreadsWaitingE12Sp1" Query="ifnumber($.,roundto($.,2))" Error="None" Text="Maximum '{0}' = {9}." P0="localize-path('MSExchange Database(Information Store)\Log Threads Waiting')" P9="roundto($.,2)"/>
											</Setting>
											<Setting Key1="MSExchange Database" Key2="Database Page Fault Stalls/sec" Key3="Information Store" Format="Average">
												<Rule Name="iDBDatabasePageFaultStallssecE12Sp1" Query="ifnumber($.,roundto($.,2))" Text="Average '{0}' = {9}." P0="localize-path('MSExchange Database(Information Store)\Page Fault Stalls/sec')" P9="roundto($.,3)"/>
												<Rule Name="fDBBadInstancePageFaultStallsSecE12Sp1" Query="$. = 'NaN'" Error="Warning" Sev="3" Title="Error gathering Database performance counter data" Text="Missing performance data for '{0}'." P0="localize-path('MSExchange Database(Information Store)\Database Page Fault Stalls/sec')"/>
												<Rule Name="fDBDatabasePageFaultStallssec0E12Sp1" Query="ifnumber($.,not($iDBDatabasePageFaultStallssec &lt; 0.05))" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing database files" Text="The average value of '{0}' should be zero. The measured value is {9}." P0="localize-path('MSExchange Database(Information Store)\Database Page Fault Stalls/sec')" P9="$iDBDatabasePageFaultStallssec" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="fDBDatabasePageFaultStallssec1E12Sp1" Query="ifnumber($.,not($iDBDatabasePageFaultStallssec &lt; 1))"/>
											</Setting>
											<Rule Name="fLogStallsBadE12Sp1" Query="$fAvgLogRecordStallsPerSec10E12Sp1 or $fMaxLogRecordStallsPerSec10E12Sp1 or $fAvgLogThreadsWaiting10E12Sp1 or $fMaxLogThreadsWaiting20E12Sp1" AlwaysEvaluate="True"/>
										</Object>
									</Object>
								</Object>

								<!-- TMP DRIVE CHECKS -->
								<Object Type="Pdh" Name="Performance Data" Key1="%szPDHSERVERNAME%" Key2="%iSAMPLECOUNT%" Key3="%szPDHFILE%" Key4="%szTIMERANGE%" Key5="TMP" Timeout="%1000">
									<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Read" Key3="%TMPDRIVE%" Format="Average">
										<Rule Name="iTMPLogicalDiskAverageDiskSecondsPerRead" Query="ifnumber($.,roundto($.,3))" Error="None" Sev="1" Text="TMP drive: Average '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Read')" P8="round($.*1000)" P9="roundto($.,3)"/>
										<Rule Name="fTMPBadInstance" Query="$. = 'NaN'" Error="Warning" Title="Error gathering performance counter data" Text="Missing performance data for '{0}'." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Read')"/>
									</Setting>
									<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Read" Key3="%TMPDRIVE%" Format="Max">
										<Rule Name="iTMPLogicalDiskAverageDiskSecondsPerReadspikes" Query="ifnumber($.,roundto($.,3))" Error="None" Sev="1" Text="TMP drive: Maximum '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Read')" P8="roundto($.,3)*1000" P9="roundto($.,3)"/>
									</Setting>
									<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Write" Key3="%TMPDRIVE%" Format="Average">
										<Rule Name="iTMPLogicalDiskAverageDiskSecondsPerWrite" Query="ifnumber($.,roundto($.,3))" Error="None" Sev="1" Text="TMP drive: Average '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Write')" P8="round($.*1000)" P9="roundto($.,3)"/>
									</Setting>
									<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Write" Key3="%TMPDRIVE%" Format="Max">
										<Rule Name="iTMPLogicalDiskAverageDiskSecondsPerWritespikes" Query="ifnumber($.,roundto($.,3))" Error="None" Sev="1" Text="TMP drive: Maximum '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Write')" P8="round($.*1000)" P9="round($.)"/>
									</Setting>

									<Setting Key1="LogicalDisk" Key2="Avg. Disk Queue Length" Key3="%TMPDRIVE%" Format="Average">
										<Rule Name="iTMPLogicalDiskAverageDiskQueueLength" Query="ifnumber($.,round($.))" Error="None" Sev="1" Text="TMP drive: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk Queue Length')" P9="round($.)"/>
									</Setting>
									<!-- TMP Drive Error Rules -->
									<Object Type="If" Key1="'%varRPCSymptomFound%'='1'">
										<Object Type="Group" Name="Tmp Drive Disk Errors" LogText="Processing Error rules for Tmp Drive">
											<Rule Name="fTMPLogicalDiskAverageDiskSecondsPerRead10" Query="not($iTMPLogicalDiskAverageDiskSecondsPerRead &lt; 0.010)" Error="Error" Sev="1" ReportIssue="Issue" Title="TMP drive read latencies are high" Text="TMP drive: The average value of '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Read')" S6="10" P7="roundto(@S6 div 1000, 3)" P8="round($iTMPLogicalDiskAverageDiskSecondsPerRead*1000)" P9="roundto($iTMPLogicalDiskAverageDiskSecondsPerRead,3)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTMPLogicalDiskAverageDiskSecondsPerReadSpikes50" Query="not($iTMPLogicalDiskAverageDiskSecondsPerReadspikes &lt; 0.050)" Error="Error" Sev="1" ReportIssue="Issue" Title="TMP drive read latencies are high" Text="TMP drive: The maximum value of '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Read')" S6="50" P7="roundto(@S6 div 1000, 3)" P8="round($iTMPLogicalDiskAverageDiskSecondsPerReadspikes*1000)" P9="roundto($iTMPLogicalDiskAverageDiskSecondsPerReadspikes,3)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTMPLogicalDiskAverageDiskSecondsPerWrite10" Query="not($iTMPLogicalDiskAverageDiskSecondsPerWrite &lt; 0.010)" Error="Error" Sev="1" ReportIssue="Issue" Title="TMP drive write latencies are high" Text="TMP drive: The average value of '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Write')" S6="10" P7="roundto(@S6 div 1000, 3)" P8="round($iTMPLogicalDiskAverageDiskSecondsPerWrite*1000)" P9="roundto($iTMPLogicalDiskAverageDiskSecondsPerWrite,3)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTMPLogicalDiskAverageDiskSecondsPerWriteSpikes50" Query="not($iTMPLogicalDiskAverageDiskSecondsPerWritespikes &lt; 0.050)" Error="Error" Sev="1" ReportIssue="Issue" Title="TMP drive write latencies are high" Text="TMP drive: The maximum '{0}' should be less than {7} ({6} ms) for the TMP drive. The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Write')" S6="50" P7="roundto(@S6 div 1000, 3)" P8="round($iTMPLogicalDiskAverageDiskSecondsPerWritespikes*1000)" P9="roundto($iTMPLogicalDiskAverageDiskSecondsPerWritespikes,3)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
										</Object>
									</Object>
									<!--TMP Drive Warning Rules-->
									<Object Type="If" Key1="'%varRPCSymptomFound%'!='1'">
										<Object Type="Group" Name="Tmp Drive Disk Warnings" LogText="Processing Warning rules for Tmp Drive">
											<Rule Name="fTMPLogicalDiskAverageDiskSecondsPerRead10Warning" Query="not($iTMPLogicalDiskAverageDiskSecondsPerRead &lt; 0.010)" Error="Warning" Sev="2" ReportIssue="Issue" Title="TMP drive read latencies are high" Text="TMP drive: The average value of '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Read')" S6="10" P7="roundto(@S6 div 1000, 3)" P8="round($iTMPLogicalDiskAverageDiskSecondsPerRead*1000)" P9="roundto($iTMPLogicalDiskAverageDiskSecondsPerRead,3)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTMPLogicalDiskAverageDiskSecondsPerReadSpikes50Warning" Query="not($iTMPLogicalDiskAverageDiskSecondsPerReadspikes &lt; 0.050)" Error="Warning" Sev="2" ReportIssue="Issue" Title="TMP drive read latencies are high" Text="TMP drive: The maximum value of '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Read')" S6="50" P7="roundto(@S6 div 1000, 3)" P8="round($iTMPLogicalDiskAverageDiskSecondsPerReadspikes*1000)" P9="roundto($iTMPLogicalDiskAverageDiskSecondsPerReadspikes,3)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTMPLogicalDiskAverageDiskSecondsPerWrite10Warning" Query="not($iTMPLogicalDiskAverageDiskSecondsPerWrite &lt; 0.010)" Error="Warning" Sev="2" ReportIssue="Issue" Title="TMP drive write latencies are high" Text="TMP drive: The average value of '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Write')" S6="10" P7="roundto(@S6 div 1000, 3)" P8="round($iTMPLogicalDiskAverageDiskSecondsPerWrite*1000)" P9="roundto($iTMPLogicalDiskAverageDiskSecondsPerWrite,3)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTMPLogicalDiskAverageDiskSecondsPerWriteSpikes50Warning" Query="not($iTMPLogicalDiskAverageDiskSecondsPerWritespikes &lt; 0.050)" Error="Warning" Sev="2" ReportIssue="Issue" Title="TMP drive write latencies are high" Text="TMP drive: The maximum '{0}' should be less than {7} ({6} ms) for the TMP drive. The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TMPDRIVE%)\Avg. Disk sec/Write')" S6="50" P7="roundto(@S6 div 1000, 3)" P8="round($iTMPLogicalDiskAverageDiskSecondsPerWritespikes*1000)" P9="roundto($iTMPLogicalDiskAverageDiskSecondsPerWritespikes,3)" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
										</Object>
									</Object>

									<Rule Name="fTMPDiskBad" Query="$fTMPLogicalDiskAverageDiskSecondsPerRead10 or $fTMPLogicalDiskAverageDiskSecondsPerReadSpikes50 or $fTMPLogicalDiskAverageDiskSecondsPerWrite10 or $fTMPLogicalDiskAverageDiskSecondsPerWriteSpikes50"/>
									<Rule Name="fTMPErrorAccessingLogicalDiskCounters" Query="contains(../Exception/@Message,'0xc0000bb8') and not($fDBErrorAccessingLogicalDiskCounters)" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the TMP drive" Text="TMP drive {4}'s 'LogicalDisk' counters may not be enabled. Use Diskperf -y to enable counters. {1}." P1="../Exception/@Message" S4="%TMPDRIVE%"/>
									<Rule Name="fTMPErrorAccessingPerformanceCounters" Query="../Exception and not($fTMPErrorAccessingLogicalDiskCounters or $fDBErrorAccessingLogicalDiskCounters or $fTMPEntryNotInLogFile)" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the TMP drive" Text="Error accessing 'LogicalDisk' counters. {1}." P1="../Exception/@Message"/>
									<Rule Name="fTMPEntryNotInLogFile" Query="contains(../Exception/@Message,'0xc0000bcd') or contains(../Exception/@Message,'0xc0000bc4')" Error="Warning" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the TMP drive" Text="One or more performance counters are not present in the file {1}. The following counters are missing: {2}" S1="%szPDHFILE%" P2="join(',',../Exception/@Path)"/>
								</Object>

								<!-- TEMP DRIVE CHECKS -->
								<Object Type="Pdh" Name="Performance Data" Key1="%szPDHSERVERNAME%" Key2="%iSAMPLECOUNT%" Key3="%szPDHFILE%" Key4="%szTIMERANGE%" Key5="TEMP" Timeout="%1000">
									<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Read" Key3="%TEMPDRIVE%" Format="Average">
										<Rule Name="iTEMPLogicalDiskAverageDiskSecondsPerRead" Query="ifnumber($.,roundto($.,3))" Error="None" Sev="1" Text="TEMP drive: Average '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Read')" P8="round($.*1000)" P9="roundto($.,3)"/>

										<Rule Name="fTEMPBadInstance" Query="$. = 'NaN'" Error="Warning" Title="Error gathering performance counter data" Text="Missing performance data for {0}." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Read')"/>
									</Setting>
									<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Read" Key3="%TEMPDRIVE%" Format="Max">
										<Rule Name="iTEMPLogicalDiskAverageDiskSecondsPerReadspikes" Query="ifnumber($.,roundto($.,3))" Error="None" Sev="1" Text="TEMP drive: Maximum '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Read')" P8="round($.*1000)" P9="roundto($.,3)"/>
									</Setting>

									<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Write" Key3="%TEMPDRIVE%" Format="Average">
										<Rule Name="iTEMPLogicalDiskAverageDiskSecondsPerWrite" Query="ifnumber($.,roundto($.,3))" Error="None" Sev="1" Text="TEMP drive: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Write')" P9="round($.)"/>
									</Setting>
									<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Write" Key3="%TEMPDRIVE%" Format="Max">
										<Rule Name="iTEMPLogicalDiskAverageDiskSecondsPerWritespikes" Query="ifnumber($.,roundto($.,3))" Error="None" Sev="1" Text="TEMP drive: Maximum '{0}' = {9}." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Write')" P9="round($.)"/>
									</Setting>
									<Setting Key1="LogicalDisk" Key2="Avg. Disk Queue Length" Key3="%TEMPDRIVE%" Format="Average">
										<Rule Name="iTEMPLogicalDiskAverageDiskQueueLength" Query="ifnumber($.,round($.))" Error="None" Sev="1" Text="TEMP drive: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk Queue Length')" P9="round($.)"/>
									</Setting>
									<!--Temp Drive Errors-->
									<Object Type="If" Key1="'%varRPCSymptomFound%'='1'">
										<Object Type="Group" Name="Temp Drive Disk Errors" LogText="Processing Error rules for Temp Drive">
											<Rule Name="fTEMPLogicalDiskAverageDiskSecondsPerRead10" Query="ifnumber($iTEMPLogicalDiskAverageDiskSecondsPerRead,not($iTEMPLogicalDiskAverageDiskSecondsPerRead &lt; 0.010))" Error="Error" Sev="1" ReportIssue="Issue" Title="TEMP drive read latencies are high" Text="TEMP drive: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Read')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iTEMPLogicalDiskAverageDiskSecondsPerRead*1000" P9="$iTEMPLogicalDiskAverageDiskSecondsPerRead" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTEMPLogicalDiskAverageDiskSecondsPerReadSpikes50" Query="ifnumber($iTEMPLogicalDiskAverageDiskSecondsPerReadspikes,not($iTEMPLogicalDiskAverageDiskSecondsPerReadspikes &lt; 0.050))" Error="Error" Sev="1" ReportIssue="Issue" Title="TEMP drive read latencies are high" Text="TEMP drive: The maximum value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Read')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iTEMPLogicalDiskAverageDiskSecondsPerReadspikes*1000" P9="$iTEMPLogicalDiskAverageDiskSecondsPerReadspikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTEMPLogicalDiskAverageDiskSecondsPerWrite10" Query="ifnumber($iTEMPLogicalDiskAverageDiskSecondsPerWrite,not($iTEMPLogicalDiskAverageDiskSecondsPerWrite &lt; 0.010))" Error="Error" Sev="1" ReportIssue="Issue" Title="TEMP drive write latencies are high" Text="TEMP drive: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Write')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iTEMPLogicalDiskAverageDiskSecondsPerWrite*1000" P9="$iTEMPLogicalDiskAverageDiskSecondsPerWrite" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTEMPLogicalDiskAverageDiskSecondsPerWriteSpikes50" Query="ifnumber($iTEMPLogicalDiskAverageDiskSecondsPerWritespikes,not($iTEMPLogicalDiskAverageDiskSecondsPerWritespikes &lt; 0.050))" Error="Error" Sev="1" ReportIssue="Issue" Title="TEMP drive write latencies are high" Text="TEMP drive: The maximum value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Write')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iTEMPLogicalDiskAverageDiskSecondsPerWritespikes*1000" P9="$iTEMPLogicalDiskAverageDiskSecondsPerWritespikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
										</Object>
									</Object>
									<!--Temp Drive Warnings-->
									<Object Type="If" Key1="'%varRPCSymptomFound%'!='1'">
										<Object Type="Group" Name="Temp Drive Disk Warnings" LogText="Processing Warning rules for Temp Drive">
											<Rule Name="fTEMPLogicalDiskAverageDiskSecondsPerRead10Warning" Query="ifnumber($iTEMPLogicalDiskAverageDiskSecondsPerRead,not($iTEMPLogicalDiskAverageDiskSecondsPerRead &lt; 0.010))" Error="Warning" Sev="2" ReportIssue="Issue" Title="TEMP drive read latencies are high" Text="TEMP drive: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Read')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iTEMPLogicalDiskAverageDiskSecondsPerRead*1000" P9="$iTEMPLogicalDiskAverageDiskSecondsPerRead" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTEMPLogicalDiskAverageDiskSecondsPerReadSpikes50Warning" Query="ifnumber($iTEMPLogicalDiskAverageDiskSecondsPerReadspikes,not($iTEMPLogicalDiskAverageDiskSecondsPerReadspikes &lt; 0.050))" Error="Warning" Sev="2" ReportIssue="Issue" Title="TEMP drive read latencies are high" Text="TEMP drive: The maximum value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Read')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iTEMPLogicalDiskAverageDiskSecondsPerReadspikes*1000" P9="$iTEMPLogicalDiskAverageDiskSecondsPerReadspikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTEMPLogicalDiskAverageDiskSecondsPerWrite10Warning" Query="ifnumber($iTEMPLogicalDiskAverageDiskSecondsPerWrite,not($iTEMPLogicalDiskAverageDiskSecondsPerWrite &lt; 0.010))" Error="Warning" Sev="2" ReportIssue="Issue" Title="TEMP drive write latencies are high" Text="TEMP drive: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Write')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iTEMPLogicalDiskAverageDiskSecondsPerWrite*1000" P9="$iTEMPLogicalDiskAverageDiskSecondsPerWrite" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
											<Rule Name="fTEMPLogicalDiskAverageDiskSecondsPerWriteSpikes50Warning" Query="ifnumber($iTEMPLogicalDiskAverageDiskSecondsPerWritespikes,not($iTEMPLogicalDiskAverageDiskSecondsPerWritespikes &lt; 0.050))" Error="Warning" Sev="2" ReportIssue="Issue" Title="TEMP drive write latencies are high" Text="TEMP drive: The maximum value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%TEMPDRIVE%)\Avg. Disk sec/Write')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iTEMPLogicalDiskAverageDiskSecondsPerWritespikes*1000" P9="$iTEMPLogicalDiskAverageDiskSecondsPerWritespikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
										</Object>
									</Object>
									<Rule Name="fTEMPDiskBad" Query="$fTEMPLogicalDiskAverageDiskSecondsPerRead10 or $fTEMPLogicalDiskAverageDiskSecondsPerReadSpikes50 or $fTEMPLogicalDiskAverageDiskSecondsPerWrite10 or $fTEMPLogicalDiskAverageDiskSecondsPerWriteSpikes50"/>

									<Rule Name="fTEMPErrorAccessingLogicalDiskCounters" Query="contains(../Exception/@Message,'0xc0000bb8') and not($fDBErrorAccessingLogicalDiskCounters)" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the TEMP drive" Text="TEMP drive {4}'s 'LogicalDisk' counters may not be enabled. Use Diskperf -y to enable counters. {1}." P1="../Exception/@Message" S4="%TEMPDRIVE%"/>
									<Rule Name="fTEMPErrorAccessingPerformanceCounters" Query="../Exception and not($fTEMPErrorAccessingLogicalDiskCounters or $fDBErrorAccessingLogicalDiskCounters or $fTEMPEntryNotInLogFile)" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the TEMP drive" Text="Error accessing 'LogicalDisk' counters. {1}." P1="../Exception/@Message"/>
									<Rule Name="fTEMPEntryNotInLogFile" Query="contains(../Exception/@Message,'0xc0000bcd') or contains(../Exception/@Message,'0xc0000bc4')" Error="Warning" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the TEMP drive" Text="One or more performance counters are not present in the file {1}. The following counters are missing: {2}" S1="%szPDHFILE%" P2="join(',',../Exception/@Path)"/>
								</Object>

								<!-- PAGE DISK CHECKS -->
								<Object Type="Cache" Name="Storage group health: %szTIMERANGE%" Key1="Add" Key2="PageDrive" Key3="%T2DListPage%" Key4="," Display="Hide">
									<Setting Substitution="PAGEDISK" Display="Hide"/>
									<Object Type="Group" Name="%PAGEDISK%">
										<Object Type="Pdh" Name="Performance Data" Key1="%szPDHSERVERNAME%" Key2="%iSAMPLECOUNT%" Key3="%szPDHFILE%" Key4="%szTIMERANGE%" Key5="PAGE%PAGEDISK%" Timeout="%1000">
											<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Read" Key3="%PAGEDISK%" Format="Average">
												<Rule Name="iPageLogicalDiskAverageDiskSecondsPerRead" Query="ifnumber($.,roundto($.,3))" Text="Page file drive: Average '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%PAGEDISK%)\Avg. Disk sec/Read')" P8="roundto($.*1000,1)" P9="roundto($.,3)"/>
												<Rule Name="fPageBadInstance" Query="$. = 'NaN'" Error="Warning" Title="Error gathering performance counter data for the page file drive" Text="Missing performance data for '{0}'." P0="localize-path('LogicalDisk(%PAGEDISK%)\Avg. Disk sec/Read')"/>
											</Setting>
											<Setting Key1="LogicalDisk" Key2="Avg. Disk sec/Write" Key3="%PAGEDISK%" Format="Average">
												<Rule Name="iPageLogicalDiskAverageDiskSecondsPerWrite" Query="ifnumber($.,roundto($.,3))" Text="Page file drive: Average '{0}' = {9} ({8} ms)." P0="localize-path('LogicalDisk(%PAGEDISK%)\Avg. Disk sec/Write')" P8="round($.*1000)" P9="roundto($.,3)"/>
											</Setting>
											<Setting Key1="LogicalDisk" Key2="Avg. Disk Queue Length" Key3="%PAGEDISK%" Format="Average">
												<Rule Name="iPageLogicalDiskAverageDiskQueueLength" Query="ifnumber($.,roundto($.,2))" Text="Page file drive: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%PAGEDISK%)\Avg. Disk Queue Length')" P9="roundto($.,2)"/>
											</Setting>
											<Setting Key1="Paging File" Key2="% Usage" Key3="_Total" Format="Average">
												<Rule Name="iPagingFilePercentUsage" Query="ifnumber($.,round($.))" Text="Average '{0}' = {9}." P0="localize-path('Paging File(_Total)\% Usage')" P9="round($.)"/>
											</Setting>
											<!-- Error Rules -->
											<Object Type="If" Key1="'%varRPCSymptomFound%'='1'">
												<Object Type="Group" Name="Paging Drive Disk Errors" LogText="Processing Error rules for Paging Drive">
													<Rule Name="fPageLogicalDiskAverageDiskSecondsPerRead10" Query="not($iPageLogicalDiskAverageDiskSecondsPerRead &lt; 0.010)" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing system page file" Text="Page file drive: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%PAGEDISK%)\Avg. Disk sec/Read')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iPageLogicalDiskAverageDiskSecondsPerRead*1000" P9="$iPageLogicalDiskAverageDiskSecondsPerRead" GUID="cddd6e3f-bd51-4e4a-bbbb-6c24dacd42d7"/>
													<Rule Name="fPageLogicalDiskAverageDiskSecondsPerWrite10" Query="not($iPageLogicalDiskAverageDiskSecondsPerWrite &lt; 0.010)" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing system page file" Text="Page file drive: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%PAGEDISK%)\Avg. Disk sec/Write')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iPageLogicalDiskAverageDiskSecondsPerWrite*1000" P9="$iPageLogicalDiskAverageDiskSecondsPerWrite" GUID="cddd6e3f-bd51-4e4a-bbbb-6c24dacd42d7"/>
												</Object>
											</Object>
											<!--Warning Rules-->
											<Object Type="If" Key1="'%varRPCSymptomFound%'!='1'">
												<Object Type="Group" Name="Paging Drive Disk Warnings" LogText="Processing Warning rules for Paging Drive">
													<Rule Name="fPageLogicalDiskAverageDiskSecondsPerRead10Warning" Query="not($iPageLogicalDiskAverageDiskSecondsPerRead &lt; 0.010)" Error="Warning" Sev="2" ReportIssue="Issue" Title="Performance issue found on logical disk containing system page file" Text="Page file drive: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%PAGEDISK%)\Avg. Disk sec/Read')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iPageLogicalDiskAverageDiskSecondsPerRead*1000" P9="$iPageLogicalDiskAverageDiskSecondsPerRead" GUID="cddd6e3f-bd51-4e4a-bbbb-6c24dacd42d7"/>
													<Rule Name="fPageLogicalDiskAverageDiskSecondsPerWrite10Warning" Query="not($iPageLogicalDiskAverageDiskSecondsPerWrite &lt; 0.010)" Error="Warning" Sev="2" ReportIssue="Issue" Title="Performance issue found on logical disk containing system page file" Text="Page file drive: The average value for '{0}' should be less than {7} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%PAGEDISK%)\Avg. Disk sec/Write')" S6="10" P7="roundto(@S6 div 1000,3)" P8="$iPageLogicalDiskAverageDiskSecondsPerWrite*1000" P9="$iPageLogicalDiskAverageDiskSecondsPerWrite" GUID="cddd6e3f-bd51-4e4a-bbbb-6c24dacd42d7"/>
												</Object>
											</Object>
											<Rule Name="fPagePagingFilePercentUsage50" Query="not($iPagingFilePercentUsage &lt; 50)" Error="Error" Sev="1" ReportIssue="Issue" Title="Performance issue found on logical disk containing system page file" Text="Page file drive: The average value of '{0}' should be less than {8}%. The measured value is {9}%." P0="localize-path('Paging File(_Total)\% Usage')" S8="50" P9="$iPagingFilePercentUsage" GUID="faf40b30-9cc2-4aea-a565-6b560f9c0f49"/>
											<Rule Name="fPageDiskBad" Query="$fPageLogicalDiskAverageDiskSecondsPerRead10 or $fPageLogicalDiskAverageDiskSecondsPerWrite10 or $fPagePagingFilePercentUsage50" AlwaysEvaluate="True"/>
											<Rule Name="fPageErrorAccessingLogicalDiskCounters" Query="contains(../Exception/@Message,'0xc0000bb8') and not($fDBErrorAccessingLogicalDiskCounters)" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the page file drive" Text="The 'LogicalDisk' counters on drive {2} may not be enabled. Use Diskperf -y to enable counters. {1}." P1="../Exception/@Message" S2="%PAGEDISK%"/>
											<Rule Name="fPageErrorAccessingPerformanceCounters" Query="../Exception and not($fDBErrorAccessingLogicalDiskCounters or $fPageErrorAccessingLogicalDiskCounters or $fPageEntryNotInLogFile)" Error="Error" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the page file drive" Text="The page file drive {2}: Error accessing 'LogicalDisk' counters. {1}." P1="../Exception/@Message" S2="%PAGEDISK%"/>
											<Rule Name="fPageEntryNotInLogFile" Query="contains(../Exception/@Message,'0xc0000bcd') or contains(../Exception/@Message,'0xc0000bc4')" Error="Warning" Sev="1" Title="Error accessing 'LogicalDisk' performance data for the page file drive" Text="One or more performance counters are not present in the file {1}. The following counters are missing: {2}" S1="%szPDHFILE%" P2="join(',',../Exception/@Path)"/>
										</Object>
									</Object>
								</Object>
							</Object>
						</Object>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>
<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>ZaVrTC1QFgLLLtSyb3bIFOhWtAc=</DigestValue></Reference></SignedInfo><SignatureValue>
    oR48cXmFXdLZq8VVzjDqlTAXbRaCbVi80of1d1cbAJxozvz2bprBWMH7AOMPoLQjrsvdklgR
    eMKbv+CnL9QaZRPuGjzTW86nRvhbUVmYtakHn9fS/7wCHf0RYffdKwD5MhtnguPSRrWTcwwg
    AGogy2W/Q3UHlLurqwcB9QsoWND+A1JcUqLycz/C98t6vPQ3+TTg2oZIA/2Ogs6weiYIJBQs
    TQG+iWdo1EzsIeBXA9dBxazQ+4xETgCsumJZgku3vPsQOEo25YFZwlHBKwKpbJnDE5wO3Eoj
    iHhgRAJGjGU4YV3OPm5sRUTI6BxyofX1nUJ/GqkSjpCeNAeKILtrDw==
  </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
ggEAoR48cXmFXdLZq8VVzjDqlTAXbRaCbVi80of1d1cbAJxozvz2bprBWMH7AOMPoLQjrsvdklgR
eMKbv+CnL9QaZRPuGjzTW86nRvhbUVmYtakHn9fS/7wCHf0RYffdKwD5MhtnguPSRrWTcwwgAGog
y2W/Q3UHlLurqwcB9QsoWND+A1JcUqLycz/C98t6vPQ3+TTg2oZIA/2Ogs6weiYIJBQsTQG+iWdo
1EzsIeBXA9dBxazQ+4xETgCsumJZgku3vPsQOEo25YFZwlHBKwKpbJnDE5wO3EojiHhgRAJGjGU4
YV3OPm5sRUTI6BxyofX1nUJ/GqkSjpCeNAeKILtrD6CCA2yhggNoMIICUAIBATCB1qGBrKSBqTCB
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
MRYEFIFZqPCZfQhvLm8pUM9ZFmoAT3I3MA0GCSqGSIb3DQEBBQUABIIBAEUpU4COBLqrxi0b/ccB
tVYOLYhm4dlNKMcNVGlZovgSjzys3/ngRX54lH9F5mQBjYXxskMLrSEydoaZAASgDnRiWnmOSAcS
oHdzM9iXzhtOoGsOaBev8q2SjE7ht9tvXUQgvPwYYakxC13/XXtU+2kHStJa8NR6iLc7Mfd4jsjG
XZfiPq0ZJtIXMUxCfV/6KJsoUmX/5fp5Te20rTxleVRIbEzdBwD76spOREaWPVJ2Sk2UoI8m5shG
vwQQ157Arx0/PJEfFsCAn89yhWD8m5/bVup0Bd/mcJgqrLtZ8fG09/J41uHO3JS1ccYcUupFpeSU
hjYTbBhcJFjhcGuqCbs=</CounterSignature></Object></Signature></Wizard>