<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">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="%iTimeFormatDuration%" Substitution="iTimeFormatDuration" Display="Hide"/>
			<Setting Key1="%iSampleInterval%" Substitution="iSampleInterval" Display="Hide"/>
			<Setting Key1="%szServerPdhFileName%" Substitution="szServerPdhFileName" Display="Hide"/>
			<Setting Key1="%fLogManName%" Substitution="fLogManName" Display="Hide"/>
			<Setting Key1="%szLocalPerfLogsDirectory%" 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="%ANALYZEALSO%" Substitution="ANALYZEALSO" Display="Hide"/>
			<Setting Key1="%SQUEAKYLOBSTER%" Substitution="SQUEAKYLOBSTER" Display="Hide"/>
			<Setting Key1="%WINDOWSPATHDRIVE%" Substitution="WINDOWSPATHDRIVE" 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="TestPdhFileWrite" Name="fCollectAndAnalyze" Query="@S1='1'" Text=" - Collect performance data" S1="%ANALYZEALSO%"/>
					<Rule NextStep="CollectScheduledPerfMonData" Name="fCollectOnly" Query="not(@S1='1')" Text=" - Collect performance data" S1="%ANALYZEALSO%"/>

					<Object Type="Command" Key2="cmd" Key3="/C md %WINDOWSPATHDRIVE%\PerfLogs">
						<Setting Key1="Output" Key2="stderr" Format="(.*?)\r\n*----$1"/>
						<Setting Key1="Output" Key2="stdout" Format="(.*?)\r\n*----$1"/>
						<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%\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;"/>


								<!-- COUNTERS FOR ALL MAILBOX SERVERS (E2K, E2K3, E2007) -->
								<Object Type="If" Name="Exchange2000_2003ServerInfo" Key1="%MailboxCount% &gt; 0">
									<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)\Log Threads Waiting&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<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\Active User Count&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 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\RPC Num. of Slow Packets&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="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Database(Information Store)\Version buckets allocated&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<Object Type="If" Name="Advanced Jet Counters" Key1="'%SQUEAKYLOBSTER%'='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>


								<!-- COUNTERS FOR E2000 and E2003 MAILBOX 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(System)\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%\Process(System)\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 MAILBOX 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'">

									<!-- 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;"/>
									<!-- 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(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(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;"/>

									<!-- Address lookups -->
									<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 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 Search 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 Searches timed out per minute&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'">
									<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;"/>
									<!-- CAS _TOTALS -->
									<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(__Total__)\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%\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%\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_Microsoft-Server-ActiveSync)\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(_LM_W3SVC_1_ROOT_Microsoft-Server-ActiveSync)\Requests In Application Queue&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_Microsoft-Server-ActiveSync)\Request Wait 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;"/>

									<!-- Journaling: -->
									<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;"/>

									<!-- 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;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_owa)\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(_LM_W3SVC_1_ROOT_owa)\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(_LM_W3SVC_1_ROOT_owa)\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(_LM_W3SVC_1_ROOT_owa)\Requests In Application Queue&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_owa)\Requests Executing&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%\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_Root_Autodiscover)\Requests Executing&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- POP: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangePop3(_total)\RETR Rate&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangePop3(_total)\Connections Current&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangePop3(_total)\DELE Rate&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangePop3(_total)\UIDL Rate&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- IMAP: -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeImap4(_total)\Connections Current&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>

									<!-- For now, keep this up in sync with the commands above. Use this list for reviewers.

							CAS _TOTALS:
							__________________________
							\\EXPTA-E13\ASP.NET v2.0.50727(_Total)\Application Restarts
							\\EXPTA-E13\ASP.NET v2.0.50727(_Total)\Applications Running
							\\EXPTA-E13\ASP.NET v2.0.50727(_Total)\Request Execution Time
							\\EXPTA-E13\ASP.NET v2.0.50727(_Total)\Request Wait Time
							\\EXPTA-E13\ASP.NET v2.0.50727(_Total)\Requests Current
							\\EXPTA-E13\ASP.NET v2.0.50727(_Total)\Requests Queued
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(_Total)\Requests Executing
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(*)\Requests in Application Queue
							\\EXPTA-E13\Web Service(_Total)\Current Connections
							\\EXPTA-E13\Web Service(_Total)\Get Requests/sec
							\\EXPTA-E13\Web Service(_Total)\ISAPI Extension Requests/sec

							Airsync:
							__________
							\\EXPTA-E13\AirSync\Requests Queued
							\\EXPTA-E13\AirSync\Requests/sec
							\\EXPTA-E13\AirSync\Requests Queued
							\\EXPTA-E13\AirSync\Requests/sec
							\\EXPTA-E13\AirSync\Busy Threads
							\\EXPTA-E13\Airsync\Ping Commands Pending
							\\EXPTA-E13\Airsync\Ping Commands Dropped/sec
							\\EXPTA-E13\Airsync\ Hearbeat Interval
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_Microsoft-Server-ActiveSync\Requests Executing

							Availability service:
							_______________________
							\\EXPTA-E13\MSExchange Availability Service\Public folder queries per second
							\\EXPTA-E13\MSExchange Availability Service\Availability requests per second

							Journaling:
							_______________________
							\\EXPTA-E13\MSExchange Journaling\Journal Reports created/sec
							\\EXPTA-E13\MSExchange Journaling\Journaling processing time/message

							OWA:
							_______________________
							\\EXPTA-E13\MSExchangeOWA\Average Response Time
							\\EXPTA-E13\MSExchangeOWA\Current Unique Users
							\\EXPTA-E13\MSExchangeOWA\Requests/Sec
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_owa)\Request Execution Time
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_owa)\Request Wait Time
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_owa)\Requests Executing
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_owa)\Requests In Application Queue
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_owa)\Requests Executing

							Web services:
							_______________________
							\\EXPTA-E13\MSExchangeWS\Average Response Time
							\\EXPTA-E13\MSExchangeWS\Error Responses/Sec
							\\EXPTA-E13\MSExchangeWS\Requests/Sec

							Autodiscovery:
							_______________________
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_Root_Autodiscover)\Requests Executing

							POP:
							_______________________
							\\EXPTA-E13\MSExchangePOP3(_Total)\RETR Rate
							\\EXPTA-E13\MSExchangePOP3(_Total)\Connections Current
							\\EXPTA-E13\MSExchangePOP3(_Total)\DELE Rate

							IMAP:
							_______________________
							\\EXPTA-E13\MSExchangeIMAP4(_Total)\UID Rate
							\\EXPTA-E13\MSExchangeIMAP4(_Total)\Connections Current

							Unified messaging:
							_______________________
							\\EXPTA-E13\MSExchangeUMAvailability\Unhandled Exceptions per Second
							\\EXPTA-E13\MSExchangeUMGeneral\Total Calls per Second
							\\EXPTA-E13\MSExchangeUMGeneral\User Response Latency
							\\EXPTA-E13\MSExchangeUMGeneral\Current Calls
							\\EXPTA-E13\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_Root_UnifiedMessaging)\Request Cutting

							CAS Processes:
							________________
							inetinfo.exe
							Microsoft.Exchange.Imap4.exe
							Microsoft.Exchange.Imap4Service.exe
							Microsoft.Exchange.Pop3.exe
							Microsoft.Exchange.Pop3Service.exe
							MOMHost.exe
							MOMService.exe
							MSExchangeADTopologyService.exe
							svchost.exe
							w3wp.exe
							Microsoft.Exchange.Monitoring.exe
							MMC
							MSH
							Lsass
							System

							***********************
							*** PROBLEM AREAS *****
							***********************
							These counters don't seem to exist:
							________________________________________
							MSExchange Availability Web Service\Average response time (is this a moving average?)
							MSExchange Availability Web Service\Request rate

							These objects don't have rates or latencies: (VERIFY THIS)
							___________________________________________________________
							\\EXPTA-E13\MSExchange Calendar Assistant
							\\EXPTA-E13\MSExchange Resource Booking

										-->
								</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 per Second&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 Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_Root_UnifiedMessaging)\Request Cutting&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\ASP.NET Apps v2.0.50727(_LM_W3SVC_1_ROOT_UnifiedMessaging)\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(_LM_W3SVC_1_ROOT_UnifiedMessaging)\Request Wait Time&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'">
									<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)\Virtual Bytes&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%\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;"/>
									<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%\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>

								<!-- COUNTERS FOR E2007 MAILBOX SERVERS -->
								<Object Type="If" Name="Exchange2007MBXServerInfo" Key1="'%varIsMailboxServer%'='1'">
									<!-- 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(Microsoft.Exchange.Cluster.ReplayService)\Private Bytes&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\Process(Microsoft.Exchange.Cluster.ReplayService)\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(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;"/>
									<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%\MSExchangeIS Mailbox(_Total)\Messages Submitted/sec&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;"/>

									<!-- Other -->
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(_Total)\Messages Sent/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(_Total)\Messages Delivered/sec&gt;&gt; &quot;%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt&quot;"/>
									<Object Type="Command" Key2="cmd" Key3="/C echo \\%szSERVER%\MSExchangeIS Mailbox(_Total)\Messages Queued For Submission&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 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(*)\Hub Servers In Retry&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;"/>
									<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 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 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 Update 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 Retries&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(*)\Events Processed/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%\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%\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 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 Caches(*)\Cache Hits/Sec&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 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%\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)\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>
						</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="%szServerPdhFileName%" Substitution="szServerPdhFileName" Display="Hide"/>
			<Setting Key1="%fLogManName%" Substitution="fLogManName" Display="Hide"/>
			<Setting Key1="%szLocalPerfLogsDirectory%" 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="%UNCSERVERWINDOWSPATHDRIVE%" Substitution="UNCSERVERWINDOWSPATHDRIVE" Display="Hide"/>
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" 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 md %UNCSERVERWINDOWSPATHDRIVE%\PerfLogs">
					<Setting Key1="Output" Key2="stderr" Format="(.*?)\r\n*----$1"/>
					<Setting Key1="Output" Key2="stdout" Format="(.*?)\r\n*----$1"/>

					<Object Type="Command" Key2="cmd" Key3="/C logman delete %fLogManName% -s %szSERVER%"/>
					<Object Type="Command" Key2="cmd" Key3="/C logman create counter %fLogManName% -s %szSERVER% -rf %iTimeFormatDuration% -si %iSampleInterval% --v -o %szServerPdhFileName% -cf %szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt">
						<Setting Key1="Output" Key2="stdout" Format="(.*?)\r\n----$1 ">
							<Rule Name="fLogmanError2" Query="$fLogmanExMonFailed2" 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="%szServerPdhFileName%" P3="%szLocalPerfLogsDirectory%\PerfCounters_%szSERVER%.txt"/>
							<Rule Name="fLogmanOut2" 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="%szServerPdhFileName%"/>
							<Rule Name="fSetFileName" Query="regSetValue('','Software\\Microsoft\\Exchange\\ExPTA',@S0,$szFileName)" S0="Collect%szSERVER%_FileName"/>
							<Rule Name="fSetCollectServerList" Query="regSetValue('','Software\\Microsoft\\Exchange\\ExPTA',@S0,@S1)" S0="Collect_ServerNames" S1="%szSERVER%"/>
						</Setting>
						<Setting Key1="ReturnValue">
							<Rule Name="fLogmanExMonFailed2" Query="$. != 0"/>
						</Setting>
						<Setting Key1="Output" Key2="stderr" Format="(.*?)\r\n----$1 ">
							<Rule Name="szLogmanError3" Query="$."/>
						</Setting>

						<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="fCOLLECTIONSTARTDATETIME" Scope="Children"/>
								</Rule>
								<Rule Name="dCompletedDateTime" Query="date-add($dCurrentDateTime2, @S1)" Error="None" Title="Data collection completion time" Text="Data collection will be complete at {0}." P0="date-add($dCurrentDateTime2,@S1)" S1="%iTimeFormatDuration%">
									<Variable Name="fCOLLECTIONENDDATETIME" 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."/>
				<Rule Name="fCollectSuccess" Query="not($fCollectFailure)" Error="None" ReportIssue="Summary" Title="Successful data collection" 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"/>
			</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="%szPDHFILE%" 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"/>

			<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" 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" 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" Priority="6" Text="- Check the health of queues on the server." Display="Hide" AlwaysEvaluate="True"/>
							<Rule NextStep="CheckLDAP" Name="fCheckLDAP" 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" 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" Priority="3"/>
							<Rule NextStep="CheckMemoryPerfCounters" Name="fCheckMemoryCPU" 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" 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" Query="'%varIsMailboxServer%'='1'" Priority="2"/>

							<!-- CHECKS FOR ALL E2007 SERVER ROLES -->
							<Rule NextStep="CheckE12DirectoryPerfCounters" Query="'%varIsExchange12%'='1'"/>

							<!-- CHECKS FOR E2007 CLIENT ACCESS SERVERS -->
							<Rule NextStep="CheckCASClientPerfCounters" Query="'%varIsClientAccessServer%'='1'"/>

							<!-- CHECKS FOR E2007 UM SERVERS -->
							<Rule NextStep="CheckUMPerfCounters" Query="'%varIsUnifiedMessagingServer%'='1'"/>

							<!-- CHECKS FOR E2007 EDGE OR HUBTRANSPORT SERVERS -->
							<Rule NextStep="CheckE12QueuesPerfCounters" Query="'%varIsEdgeServer%'='1' or '%varIsHubTransportServer%'='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="%szPDHFILE%" 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"/>
			<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 or $fProcessorWarningFound2) 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 * $iAverageClockSpeed * $iNumRealProcs 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 * $iAverageClockSpeed * $iNumRealProcs div (@S1*100),2)"/>
								<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="fProcessorWarningFound2" 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 $iNumRealProcs,2))" Template="tAvgValueCounter" P1="ifnumber($.,roundto($. div $iNumRealProcs,2))"/>
										<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 $iNumRealProcs,2)" Text="Average '{6}' = {1}. (Process ID='{2}')" P1="roundto($. div $iNumRealProcs,2)" P2="$iProcessPID" P6="concat(../../@Name,'\',../@Key2)"/>
									</Setting>
									<Setting Key1="Process" Key2="ID Process" Key3="*" Format="Max">
										<Rule Name="iProcessPID" Query="$."/>
									</Setting>
								</Object>
							</Object>
						</Object>
					</Object>
					<!-- Get a little info about the machine's processors -->
					<Object Type="WMI" Key1="%SERVER%" Key3="Win32_ComputerSystem" SecurityContext="EXLOGON">
						<Setting Key1="NumberOfProcessors">
							<Rule Name="iNumRealProcs" Query="$." Error="None" Title="{9} processor(s) installed." Text="This server has {9} processor(s) installed." P9="$.">
								<Variable Name="NUMBEROFPROCESSORS" Scope="Global"/>
							</Rule>
							<Rule Name="fNumRealProcsOver8" Query="$. &gt; 8" Error="Warning" Sev="3" ReportIssue="Issue" Title="Processor configuration" Text="More than 8 processors were detected for the Exchange server {2}. If this server has more than 8 physical processors installed additional configuration tuning may be required. If this server is using hyper-threading technology, no action is required. There were {9} CPUs detected." S2="%SERVER%" P9="$." GUID="a59de247-8f05-419d-a4ea-fc4973788863"/>
							<Rule Name="fProcessorWarningFound" Query="$fNumRealProcsOver8" AlwaysEvaluate="True"/>
						</Setting>
					</Object>
					<Object Type="WMI" Name="DeviceID" Key1="%SERVER%" Key3="Win32_Processor">
						<Rule Name="iAverageClockSpeed" Query="round(sum($iCurrentClockSpeedProc) div count($iCurrentClockSpeedProc))" Error="None" Title="The average processor speed is {9} MHz" Text="Average processor speed on server {2} is {9} MHz." S2="%SERVER%" P9="$iAverageClockSpeed"/>
						<Setting Key1="MaxClockSpeed">
							<Rule Name="iMaxClockSpeed" Query="$."/>
						</Setting>
						<Setting Key1="CurrentClockSpeed">
							<Rule Name="iCurrentClockSpeedProc" Query="$." Text="Current processor speed on server {2} is {9}." S2="%SERVER%" P9="$."/>
						</Setting>
					</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="%szPDHFILE%" 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 -->
									<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/Result)','-1')"/>
									<Rule Name="iRPCsValue" Query="$szSortedRPCs/Result/Instance/Setting/Rule/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" 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[1]" Error="None" 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[1]" Error="None" 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>
									<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>
								</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="$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"/>
						</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="%szPDHFILE%" 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"/>
			<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" 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 -->
												<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="not($iDBLogicalDiskAverageDiskSecondsPerWrite &lt; 0.020) and $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} ({6} ms). The measured value is {9} ({8} ms)." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Write')" S6="20" P7="roundto(@S6 div 1000,3)" P8="$iDBLogicalDiskAverageDiskSecondsPerWrite*1000" P9="$iDBLogicalDiskAverageDiskSecondsPerWrite" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<Rule Name="fDBLogicalDiskAverageDiskSecondsPerWritespikes50" Query="not($iDBLogicalDiskAverageDiskSecondsPerWritespikes &lt; 0.050) and $fDBDatabasePageFaultStallssec1" 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/Write')" S6="50" P7="roundto(@S6 div 1000,3)" P8="$iDBLogicalDiskAverageDiskSecondsPerWritespikes*1000" P9="$iDBLogicalDiskAverageDiskSecondsPerWritespikes" GUID="29f01985-7b44-47cb-96f7-d7c92fd8e867"/>
												<!-- Next Step rules... -->
												<Rule Name="fDBDiskBad" Query="$fDBLogicalDiskAverageDiskSecondsPerRead20 or $fDBLogicalDiskAverageDiskSecondsPerReadspikes50 or $fDBLogicalDiskAverageDiskSecondsPerWrite20 or $fDBLogicalDiskAverageDiskSecondsPerWritespikes50" 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="fDBLogicalDiskAverageDiskSecondsPerWrite5" Query="not(if($fIsASan and $fIsNotReplicated, $iDBLogicalDiskAverageDiskSecondsPerWrite &lt; 0.005,0))" Error="Error" Sev="1" ReportIssue="Issue" Title="Database drive write latencies are high" Text="Database disk: Average '{0}' = {9}." P0="localize-path('LogicalDisk(%DBDISK%)\Avg. Disk sec/Write')" P9="$iDBLogicalDiskAverageDiskSecondsPerWrite" 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 -->
												<Rule Name="fSGLogicalDiskAverageDiskSecondsPerRead5" Query="not($iSGLogicalDiskAverageDiskSecondsPerRead &lt; 0.005)" 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="5" 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.50)" 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"/>

												<!-- NextStep Rules -->
												<Rule Name="fSGDiskBad" Query="$fSGLogicalDiskAverageDiskSecondsPerRead5 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="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"/>
									</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>
									<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"/>

									<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>

									<Rule Name="fTEMPLogicalDiskAverageDiskSecondsPerRead10" Query="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="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="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="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"/>

									<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 -->
											<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"/>
											<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>WwH3Rfsly3TFMWLQlhIBzCbdcRY=</DigestValue></Reference></SignedInfo><SignatureValue>
    rwnp898hB1P4bXmu4Vos3a0EKbe5yk6i3sGv+b+Owti89cVCOyJSRp6MnB3FnfEOr0d1wj8i
    PaziffeUIKZj2KrhPJ631eG+9oriQX5SytgneSWzlnBWP9NOMz5balUEC5J5u2bgvRXE1PCo
    eumIX+ok/urCQ2/XZrcjVGDiMbsORAKWBUBWVXQDrLVi/bDKAr/hlqyWuH+z5/wbZkd6HJU1
    BuBbsT9Xi/4foJbFyn+58lODSvJFNI/zt+xJzJtRK0QJ256Xe2yY17saxttwMv+iQZTBUAYV
    inUSyFG6344egAb4HAk+w2Jc3+0KZz1P+Mh1fEga8AbFAOISLQDaiA==
  </SignatureValue><KeyInfo>
      <KeyValue>
        <RSAKeyValue>
          <Modulus>
            zYGWOK5covLB397Qq5WN1jydH4vDXYYuXfCxcvWrrIhqtdqxInsLyMilS5FeIhPp+fUjnbX0
            bnau7+6kPMfEwFlcP6uzczMmpmKBYXmhYvRuiJXQbt3Hn9KkURF2YbpwimWhlhaJp12B0ERm
            5dtWnkDK/Nx2JC5EMADl1n17lRHVWB2j6E8LyYjcotZTmWzKY8qZapqSXkxNEegv01tbXl9S
            o3MtpbuERQ2MGRV2ywjamqZwFehN7Gn9XbJrj+0pUTc4i8ZGSRWUUJiw9Gik194JcWd0nneM
            HYVrl+rnX0XM4OZxDdFjAJN7MZiOC7QTvbPQ7vHfIe6pYGHuN0M9ww==
          </Modulus>
          <Exponent>AQAB</Exponent>
        </RSAKeyValue>
      </KeyValue>
      <X509Data>
        <X509Certificate>
          MIIFMzCCBBugAwIBAgIKYUaeywAEAAAAZTANBgkqhkiG9w0BAQUFADCBpjELMAkGA1UEBhMC
          VVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1p
          Y3Jvc29mdCBDb3Jwb3JhdGlvbjErMCkGA1UECxMiQ29weXJpZ2h0IChjKSAyMDAwIE1pY3Jv
          c29mdCBDb3JwLjEjMCEGA1UEAxMaTWljcm9zb2Z0IENvZGUgU2lnbmluZyBQQ0EwHhcNMDYw
          NDA0MTk0MzQ2WhcNMDcxMDA0MTk1MzQ2WjB0MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2Fz
          aGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0
          aW9uMR4wHAYDVQQDExVNaWNyb3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUA
          A4IBDwAwggEKAoIBAQDNgZY4rlyi8sHf3tCrlY3WPJ0fi8Ndhi5d8LFy9ausiGq12rEiewvI
          yKVLkV4iE+n59SOdtfRudq7v7qQ8x8TAWVw/q7NzMyamYoFheaFi9G6IldBu3cef0qRREXZh
          unCKZaGWFomnXYHQRGbl21aeQMr83HYkLkQwAOXWfXuVEdVYHaPoTwvJiNyi1lOZbMpjyplq
          mpJeTE0R6C/TW1teX1Kjcy2lu4RFDYwZFXbLCNqapnAV6E3saf1dsmuP7SlRNziLxkZJFZRQ
          mLD0aKTX3glxZ3Sed4wdhWuX6udfRczg5nEN0WMAk3sxmI4LtBO9s9Du8d8h7qlgYe43Qz3D
          AgMBAAGjggGSMIIBjjAOBgNVHQ8BAf8EBAMCBsAwHQYDVR0OBBYEFO7Za6l1U81P7htOGQYe
          o5yrz5T9MBMGA1UdJQQMMAoGCCsGAQUFBwMDMIGpBgNVHSMEgaEwgZ6AFCX4K0tdyHJUreX2
          oCoXFvvB+VOBoXSkcjBwMSswKQYDVQQLEyJDb3B5cmlnaHQgKGMpIDE5OTcgTWljcm9zb2Z0
          IENvcnAuMR4wHAYDVQQLExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xITAfBgNVBAMTGE1pY3Jv
          c29mdCBSb290IEF1dGhvcml0eYIQaguZT8AAHasR2sQCoWYnujBLBgNVHR8ERDBCMECgPqA8
          hjpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9Db2RlU2lnblBD
          QTIuY3JsME8GCCsGAQUFBwEBBEMwQTA/BggrBgEFBQcwAoYzaHR0cDovL3d3dy5taWNyb3Nv
          ZnQuY29tL3BraS9jZXJ0cy9Db2RlU2lnblBDQTIuY3J0MA0GCSqGSIb3DQEBBQUAA4IBAQA4
          2e+VOJtcmBRdVG5p3wLI57P708JNrS+rf1QN2jK2+GrmDfshGnc+pWh6tJV+ilzyQ8SDm2V9
          iFBRfIIU9YNz16K+XMoCcM4mbBe8UhSlicC35KHMoXWdkXE9G8BWAFa1+IQm2l4z+9Ylel6a
          2qb79PJBGqxVRq1I3JE4E1gJSfHzMYcfvASOWxJlA+kLUdChDIqZvdnBqNAIFSUhtbZXiRzR
          W4Y1pcr9qofsqTc/t0Nr4yDxRbx+runxVbKhSLxlvlM02cnoBmMEBnhuUP9Iu5vqQ1qH260K
          gPVZxSzk5X9bSuUyee4ihZIMLbNQW8bCQFhYq9LN4y/Bzextnzd5
        </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>
          MIIEwzCCA6+gAwIBAgIQaguZT8AAHasR2sQCoWYnujAJBgUrDgMCHQUAMHAxKzApBgNVBAsT
          IkNvcHlyaWdodCAoYykgMTk5NyBNaWNyb3NvZnQgQ29ycC4xHjAcBgNVBAsTFU1pY3Jvc29m
          dCBDb3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFJvb3QgQXV0aG9yaXR5MB4XDTA2
          MDQwNDE3NDQxNFoXDTEyMDQyNjA3MDAwMFowgaYxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpX
          YXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9y
          YXRpb24xKzApBgNVBAsTIkNvcHlyaWdodCAoYykgMjAwMCBNaWNyb3NvZnQgQ29ycC4xIzAh
          BgNVBAMTGk1pY3Jvc29mdCBDb2RlIFNpZ25pbmcgUENBMIIBIDANBgkqhkiG9w0BAQEFAAOC
          AQ0AMIIBCAKCAQEAw8wgjbzf/z5Q7nrC1CQl9nbOIf/NKlZOypy3grI1eS0AxKgI1WPJt6X2
          6cHB1rGMlqIH+g+2glKa64LGvRDFqMDua4SOUxu7UPpkAYnBFtSCaABAeET1EjhO+2NR4Po9
          ueU3sd9jByM7cUA0R/Rrrkb1J3MeIstCGR5RtlKa06PQE8YZP3EGbfKVIURfQu3AyZlkILjB
          NPyiROZ7sh0vuKbe9KHfmyEP/lgxQVU4fq9Y5+TsWXklq/cqLxE/OHg+Qn+naOR+ImgX5kqS
          xHhEUkehT4SJk5vAZ3vqCfuGA332mXE8K6dmmMzfLeIrAhoPNEhl9TwSr/GHHB0mUm/MAwIB
          A6OCASowggEmMBMGA1UdJQQMMAoGCCsGAQUFBwMDMIGiBgNVHQEEgZowgZeAEFvQcO9pcp4j
          UX4Usk2O/8uhcjBwMSswKQYDVQQLEyJDb3B5cmlnaHQgKGMpIDE5OTcgTWljcm9zb2Z0IENv
          cnAuMR4wHAYDVQQLExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xITAfBgNVBAMTGE1pY3Jvc29m
          dCBSb290IEF1dGhvcml0eYIPAMEAizw8iBHRPvZj7N9AMBIGCSsGAQQBgjcVAQQFAgMDAAQw
          HQYDVR0OBBYEFCX4K0tdyHJUreX2oCoXFvvB+VOBMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIA
          QwBBMAsGA1UdDwQEAwIBRjAPBgNVHRMBAf8EBTADAQH/MAkGBSsOAwIdBQADggEBAGPj4PMF
          uLDqCws00YIxPoliRdUIp/lhZcguA/o4SEHPtfIng9PjxVZTqLUZzszm8aD5VrZIlEck5akf
          3HrU9hZ6EtvzkBvsCF2zhZC5jFi7HMyV05WUM/SR3v+Im15LSVA5JjogG1Q3/H1cFZPD3ByO
          8GFSPOUH7WbveeyPzldjZZUYSaB632W33yau/sgStsaizMZfi3Dzyturgm4H3GUZuaj2hsIJ
          QpjxJqxperHBK6ewZh+lr4cIa5cTuLA2mR4FoxM4o8CsMD66IdcwpspiEhyvV43l8XoRul48
          DDfxk8GSiE4EWgVcx8/WqdnhfZF4J/u0bqWPBjNYsV4qEQ8=
        </X509Certificate>
      </X509Data>
    </KeyInfo><Object id="ts-countersig"><X509Data><X509Certificate>MIID/zCCAuegAwIBAgIQDekr8NTYKYgYMgUJXpp2iDANBgkqhkiG9w0BAQUFADBTMQswCQYDVQQG
EwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xKzApBgNVBAMTIlZlcmlTaWduIFRpbWUgU3Rh
bXBpbmcgU2VydmljZXMgQ0EwHhcNMDMxMjA0MDAwMDAwWhcNMDgxMjAzMjM1OTU5WjBXMQswCQYD
VQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xLzAtBgNVBAMTJlZlcmlTaWduIFRpbWUg
U3RhbXBpbmcgU2VydmljZXMgU2lnbmVyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
slAoSN3TaHqEGERmdV1+xLifYyb/PUOcfBE4ECVVc9l1J2n9TrkgXNMK+aAbKu1VViFh2B7b5Lwz
a8fv3aM3ZY4bkwy2Ux5cfGY1XwWKRf52Tt9TgKKBIJ2uiFyiCPflMPnuIjdMQgrO38YfxNZV6YE/
tVKjLKoBevKiqo01/p/mXWoFnz1r47+WwP7MYPlA5wegROuBUW6lKvK2ihAo7Y/cBqCGUJp7SggN
MB3KEJ5r9+lYrgSpQJmyKOiPFqw841NvS9M1nbVvZB2zliy7Ped56216+RbmJq2v75lTt0Aslbh5
qv7UUqspdH5C7DkeomoW5lm7JGjYAIBDEIeAawIDAQABo4HKMIHHMDQGCCsGAQUFBwEBBCgwJjAk
BggrBgEFBQcwAYYYaHR0cDovL29jc3AudmVyaXNpZ24uY29tMAwGA1UdEwEB/wQCMAAwMwYDVR0f
BCwwKjAooCagJIYiaHR0cDovL2NybC52ZXJpc2lnbi5jb20vdHNzLWNhLmNybDAWBgNVHSUBAf8E
DDAKBggrBgEFBQcDCDAOBgNVHQ8BAf8EBAMCBsAwJAYDVR0RBB0wG6QZMBcxFTATBgNVBAMTDFRT
QTIwNDgtMS01NDANBgkqhkiG9w0BAQUFAAOCAQEAh3hw2k5SASBb4HnJgjDE/bkZlr2RAMO9zc3G
9A7Y//lNwDNiMBHF9XQb1JLeX5wgE7F8Rb5QzYPngBeDpyeTZxNG+8q4mEEDzJtRWwWLf6hv8xtQ
GyQu8mmNbCL3u8oWle0MdMBod9nrmWKHwXOQ+Il0eiOro5h7l7H3jylxTS51G0hB2vC1DSBU1neg
l4Jjaf0Jz4rwdbsJm9n5EVUmmmEyvnoCsHuGvqLDiyIseNE1drySc1z5ueZMFQojzOTS1DQuSUAV
PA9geiTGpWbvls9w6z7n9A1+3NF8o3ZxacGcT0cwNSGxoq8aYjwr2Y6qKgd72BizXHvinaVv/jyJ
rQ==</X509Certificate></X509Data><X509Data><X509Certificate>MIIDxDCCAy2gAwIBAgIQR78Zld+NUkZD99ttSA0xpDANBgkqhkiG9w0BAQUFADCBizELMAkGA1UE
BhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTEUMBIGA1UEBxMLRHVyYmFudmlsbGUxDzANBgNV
BAoTBlRoYXd0ZTEdMBsGA1UECxMUVGhhd3RlIENlcnRpZmljYXRpb24xHzAdBgNVBAMTFlRoYXd0
ZSBUaW1lc3RhbXBpbmcgQ0EwHhcNMDMxMjA0MDAwMDAwWhcNMTMxMjAzMjM1OTU5WjBTMQswCQYD
VQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xKzApBgNVBAMTIlZlcmlTaWduIFRpbWUg
U3RhbXBpbmcgU2VydmljZXMgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCpyrKk
zM0grwp9iayHdfC0TvHfwQ+/Z2G9o2Qc2rv5yjOrhDCJWH6M22vdNp4Pv9HsePJ3pn5vPL+Trw26
aPRslMq9Ui2rSD31ttVdXxsCn/ovax6k96OaphrIAuF/TFLjDmDsQBx+uQ3eP8e034e9X3pqMS4D
mYETqEcgzjFzDVctzXg0M5USmRK53mgvqubjwoqMKsOLIYdmvYNYV291vzyqJoddyhAVPJ+E6lTB
Cm7E/sVK3bkHEZcifNs+J9EeeOyfMcnx5iIZ28SzR0OaGl+gHpDkXvXufPF9q2IBj/VNC97QIlao
lc2uiHau7roN8+RN2aD7aKCuFDuzh8G7AgMBAAGjgdswgdgwNAYIKwYBBQUHAQEEKDAmMCQGCCsG
AQUFBzABhhhodHRwOi8vb2NzcC52ZXJpc2lnbi5jb20wEgYDVR0TAQH/BAgwBgEB/wIBADBBBgNV
HR8EOjA4MDagNKAyhjBodHRwOi8vY3JsLnZlcmlzaWduLmNvbS9UaGF3dGVUaW1lc3RhbXBpbmdD
QS5jcmwwEwYDVR0lBAwwCgYIKwYBBQUHAwgwDgYDVR0PAQH/BAQDAgEGMCQGA1UdEQQdMBukGTAX
MRUwEwYDVQQDEwxUU0EyMDQ4LTEtNTMwDQYJKoZIhvcNAQEFBQADgYEASmv56ljCRBwxiXmZK5a/
gqwB1hxMzbCKWG7fCCmjXsjKkxPnBFIN70cnLwA4sOTJk06a1CJiFfc/NyFPcDGA8Ys4h7Po6JcA
/s9Vlk4k0qknTnqut2FB8yrO58nZXt27K4U+tZ212eFX/760xX71zwye8Jf+K9M7UhsbOCf3P0o=</X509Certificate></X509Data><CounterSignature xmlns="http://schemas.microsoft.com/xmldsig/timestamp/2003" ts-format="cms-timestamp-message">MIIDLQYJKoZIhvcNAQcCoIIDHjCCAxoCAQExDjAMBggqhkiG9w0CBQUAMIIBEwYJKoZIhvcNAQcB
oIIBBASCAQCvCenz3yEHU/htea7hWizdrQQpt7nKTqLewa/5v47C2Lz1xUI7IlJGnoycHcWd8Q6v
R3XCPyI9rOJ995QgpmPYquE8nrfV4b72iuJBflLK2Cd5JbOWcFY/004zPltqVQQLknm7ZuC9FcTU
8Kh66Yhf6iT+6sJDb9dmtyNUYOIxuw5EApYFQFZVdAOstWL9sMoCv+GWrJa4f7Pn/BtmR3oclTUG
4FuxP1eL/h+glsXKf7nyU4NK8kU0j/O37EnMm1ErRAnbnpd7bJjXuxrG23Ay/6JBlMFQBhWKdRLI
Ubrfjh6ABvgcCT7DYlzf7QpnPU/4yHV8SBrwBsUA4hItANqIMYIB7DCCAegCAQEwZzBTMQswCQYD
VQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xKzApBgNVBAMTIlZlcmlTaWduIFRpbWUg
U3RhbXBpbmcgU2VydmljZXMgQ0ECEA3pK/DU2CmIGDIFCV6adogwDAYIKoZIhvcNAgUFAKBZMBgG
CSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA2MTEyNzAwMDAxOFowHwYJ
KoZIhvcNAQkEMRIEELTz4FiyyL/OU4es5WHQLB0wDQYJKoZIhvcNAQEBBQAEggEArpC7CA/2UVvA
8cV1KbC76UUeNB5gFnXv3vRaGtWB8mXQSkqpvvZhLoEVua6oHTfceqj5FuuZLb7HYuNq6eaNXThL
i0ia5XsmswJgnYzcHKOEArCiraDsV/C1FC8fkjX3Ly19oC3QFBo6eG1Ip1ceUCZrV83q5HzaHrjd
DnPahQfbSXa+qnt2LRJhY9rg2uJBn2RI3w5PNj0q1XVc8owHCcUQI/GkzbiSECc35Mtwrux5o15W
u8ut9qBHHtg39oahg9Hax2yTPX4Ad2EbM700+nJG+Tddgy1p7VmIZi+lr7Wda6SPmraQ3mkqchQG
OsXRB8fCX1Ora1e0miblbJioyg==</CounterSignature></Object></Signature></Wizard>