<Wizard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<!-- ********************************************************************* -->
	<!--  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,Status">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.7.0.0" ConfigName="EXDRA Master Input File" LongNameStart="Microsoft Exchange Server" LongNameEnd="Disaster Recovery Analyzer Tool" ShortName="Exchange Server Disaster Recovery Analyzer" DownloadURL="https://www.microsoft.com/Exchange/code/ExDRA" ArticleURL="http://go.microsoft.com/fwlink/?linkid=52348&amp;l={0}&amp;v=EXDRA.{1}&amp;id={2}" HelpFile="ExDRA.chm" RootHelpId="html\243e46df-658c-4663-9b86-af4e716928d3.htm" CheckForUpdatesHelpId="html\023b86da-9a50-4ce1-abf2-8bff1cf3c0cd.htm" StartScanHelpId="html\243e46df-658c-4663-9b86-af4e716928d3.htm" ScanCompletedHelpId="html\243e46df-658c-4663-9b86-af4e716928d3.htm" SelectScanHelpId="html\243e46df-658c-4663-9b86-af4e716928d3.htm" ChangeDescription="Para a versão do Microsoft Exchange 2007 Service Pack 3.">

		<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="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="Resolve" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.ResolveObjectProcessor"/>
		<ObjectProcessor Name="Directory" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.DirectoryObjectProcessor"/>
		<ObjectProcessor Name="WMI" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.WMIObjectProcessor"/>
		<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="Metabase" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.MetabaseObjectProcessor"/>
		<ObjectProcessor Name="LookupAccount" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.LookupAccountObjectProcessor"/>
		<ObjectProcessor Name="Protocol" Assembly="BPA.NetworkCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.ProtocolObjectProcessor"/>
		<ObjectProcessor Name="Port" Assembly="BPA.NetworkCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PortObjectProcessor"/>
		<ObjectProcessor Name="Routing" Assembly="BPA.NetworkCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.RoutingObjectProcessor"/>
		<ObjectProcessor Name="DNS" Assembly="BPA.NetworkCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.DNSObjectProcessor"/>
		<ObjectProcessor Name="EseInfo" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.ESEInfoObjectProcessor"/>
		<ObjectProcessor Name="LogCheck" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.LogCheckObjectProcessor"/>
		<ObjectProcessor Name="LogInfo" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.LogInfoObjectProcessor"/>
		<ObjectProcessor Name="LogGenInfo" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.LogGenInfoObjectProcessor"/>
		<ObjectProcessor Name="CheckPointInfo" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.CheckPointInfoObjectProcessor"/>
		<ObjectProcessor Name="FileOp" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.FileOpObjectProcessor"/>
		<ObjectProcessor Name="RichTextBox" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.RichTextBoxObjectProcessor"/>
		<ObjectProcessor Name="SaveLogNow" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.LogSaveObjectProcessor"/>
		<ObjectProcessor Name="GetComputerNameEx" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.GetComputerNameExObjectProcessor"/>
		<ObjectProcessor Name="Enumerator" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.EnumeratorObjectProcessor"/>

		<ObjectProcessor Name="MdbAdmin" Assembly="ExBPA.Shared.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.MdbAdminObjectProcessor"/>
		<ObjectProcessor Name="MonadCommand" Assembly="ExBPA.ExchangeCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.MonadCommandObjectProcessor"/>
		<ObjectProcessor Name="Variable" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.VariableInfoObjectProcessor"/>
		<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="LoadLibrary" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.ESE.LoadLibraryObjectProcessor"/>
		<ObjectProcessor Name="ESE" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.ESE.ESEObjectProcessor"/>
		<ObjectProcessor Name="Isinteg" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.ESE.IsIntegObjectProcessor"/>
		<ObjectProcessor Name="EventReport" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.EventReportObjectProcessor"/>

		<IssueProcessor Name="Events" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.EventProcessor"/>
		<ConfigPreprocessor Name="2 Credentials" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.CredentialsConfigPreprocessor"/>
		<RestrictionType Name="Task" Title="Tarefa" Text="" Collapse="False"/>
		<ExtFunction Name="regSetValue" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="RegSetValue" Returns="Boolean" Parameters="String,String,String,String"/>
		<ExtFunction Name="pack" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="Pack" Returns="String" Parameters="String"/>
		<ExtFunction Name="unpack" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="Unpack" Returns="String" Parameters="String,Number"/>
		<ExtFunction Name="sort" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.ESECommon" Function="Sort" Returns="String" Parameters="String,Number"/>
		<ExtFunction Name="create-logname" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.ESECommon" Function="CreateLogName" Returns="String" Parameters="String,Number,Boolean"/>
		<ExtFunction Name="longest-starts-with" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Function="LongestStartsWith" Returns="String" Parameters="String,Any"/>
		<ExtFunction Name="roundto" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Function="RoundTo" Returns="Number" Parameters="Number,Number"/>
		<ExtFunction Name="setLabel" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="SetLabel" Returns="Boolean" Parameters="String"/>
		<ExtFunction Name="get-stepid" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="CurrentStepNodeID" Returns="String" Parameters=""/>
		<ExtFunction Name="control-value" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.ControlObjectProcessor" Function="ControlValue" Returns="String" Parameters="String[,String]"/>
		<ExtFunction Name="ActionHandler" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.ControlObjectProcessor" Function="Action" Returns="String" Parameters="String,String"/>
		<ExtFunction Name="validate-credentials" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.CredentialsObjectProcessor" Function="ValidateCredentials" Returns="Boolean" Parameters="String"/>
		<ExtFunction Name="get-sublogpath" Assembly="ExBPA.ESECollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Exchange.ESECommon" Function="GetLogPathWithPrefix" Returns="String" Parameters="String"/>
		<ExtFunction Name="get-formatted-attribute" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.ObjectProcessor" Function="GetFormattedAttribute" Returns="String" Parameters="String"/>
		<ExtFunction Name="join-unique" Assembly="BPA.WizardEngine.dll" Class="Microsoft.WindowsServerSystem.Exchange.WizardEngine.Utility" Function="JoinUnique" Returns="String" Parameters="String,Any[,Any,Any,Any]"/>
		<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="MinNonZero" Assembly="BPA.ConfigCollector.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Extensions.PdhObjectProcessor" Convert="MinNonZeroFormat"/>
		<ExtFormat Name="CIMDateTime" Assembly="BPA.Common.dll" Class="Microsoft.WindowsServerSystem.BestPracticesAnalyzer.Common.ExtFormat" Convert="CIMDateTime"/>

		<Substitution Name="STEPNAMEPREFIX"></Substitution>
		<Template Name="fTemplateE00Log" Title="Arquivo de log de transações atuais ausente" Text="O arquivo de log de transações atual ({1}.log) está ausente ou danificado."/>

		<!-- Resource Strings which need to be localized -->
		<Resource>
		</Resource>

	</Configuration>

	<Object Type="Step" Name="CheckIfEdge" Title="Verificando se está em execução no servidor de Transporte de Borda" Display="Left" SkipSave="True">
		<Object Type="Action">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%EDGEROLE%" Substitution="EDGEROLE" Display="Hide"/>
				<Object Type="Group" Name="Checking if ok to proceed">
					<Setting Key1="Check">
						<Rule Name="fProceed" Query="'%EDGEROLE%'!='1'" NextStep="ReadRegistryConfigurationStep" SQM="93;Set"/>
						<Rule Name="fAbort" Query="not($fProceed)" Title="Servidor de Transporte de Borda encontrado" Text="As ferramentas de recuperação de desastres não podem ser executadas em um servidor de Transporte de Borda." NextStep="ShowUnableToProceedScreen" Error="Error" SQM="94;Set"/>
						<Rule Name="fNotSymptom" Query="'0'">
							<Variable Name="IsSymptom" Scope="Global"/>
						</Rule>
					</Setting>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="ShowUnableToProceedScreen" Title="Não é possível continuar" Display="Left" SkipSave="True">
		<Object Type="Panel">
			<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Não é possível continuar"/>
			<Object Type="Control" SubType="Label" Name="Label" Position="Below" Text="A funcionalidade de recuperação de desastres não pode ser executada em um servidor de Transporte de Borda." ForeColor="Red"/>
			<Object Type="Control" SubType="Link" Name="Exit" Position="IndentBelow" Text="Sair"/>
		</Object>
	</Object>

	<Object Type="Step" Name="ReadRegistryConfigurationStep" Title="Ler Informações do Registro" Display="Left" SkipSave="True">
		<Object Type="Action">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%DC%" Substitution="DCInput" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="ServerInput" Display="Hide"/>
				<Object Type="Group" Name="Read Registry Configuration">
					<Setting Key1="Rule">
						<Rule Name="vOptionSelectStep" NextStep="EnterInformationStep"/>
						<Rule Name="szEmptyString" Query="string('')">
							<Variable Name="Mode" Scope="Children"/>
							<Variable Name="SG" Scope="Children"/>
							<Variable Name="DB" Scope="Children"/>
							<Variable Name="LogPrefix" Scope="Children"/>
							<Variable Name="DBPath" Scope="Children"/>
							<Variable Name="LogPath" Scope="Children"/>
							<Variable Name="ServerName" Scope="Children"/>
							<Variable Name="SelectedSG" Scope="Children"/>
							<Variable Name="SelectedDBForDisplay" Scope="Children"/>
						</Rule>
						<!-- This is the word need to be localized -->
						<Rule Name="szRSGString" Query="string(@Title)" Title="Grupo de Armazenamento de Recuperação">
							<Variable Name="RSG" Scope="Children"/>
						</Rule>
						<Rule Name="szDC" Query="if(not (@S0='%DC%'), string(@S0), if($szDCSpecified,string($szDCSpecified),string($szDCDetected)))" S0="%DCInput%" AlwaysEvaluate="True">
							<Variable Name="DC" Scope="Children"/>
						</Rule>
						<Rule Name="szServer" Query="if(not (@S0='%Server%'), string(@S0), if($szServerSpecified,string($szServerSpecified),''))" S0="%ServerInput%" AlwaysEvaluate="True">
							<Variable Name="Server" Scope="Children"/>
						</Rule>
						<Rule Name="szAllEvents" Query="string(@Title)" Title="0 (Todos)">
							<Variable Name="AllEvents" Scope="Children"/>
						</Rule>
						<Rule Name="fSkipInfo" Query="if($szSkipInformationalSteps and $szSkipInformationalSteps=1,'1','0')" AlwaysEvaluate="True">
							<Variable Name="varContinueRun" Scope="Global"/>
						</Rule>
					</Setting>
					<Object Type="Registry" Key1="" Key2="HKEY_CURRENT_USER" Key3="Software\Microsoft\Exchange\ExTRA">
						<Setting Key1="DCDetected">
							<Rule Name="szDCDetected" Query="$."/>
						</Setting>
					</Object>
					<Object Type="Registry" Key1="" Key2="HKEY_CURRENT_USER" Key3="Software\Microsoft\Exchange\ExDRA">
						<Setting Key1="DCSpecified">
							<Rule Name="szDCSpecified" Query="$."/>
						</Setting>
						<Setting Key1="ServerSpecified">
							<Rule Name="szServerSpecified" Query="$."/>
						</Setting>
						<Setting Key1="SkipInformationalSteps">
							<Rule Name="szSkipInformationalSteps" Query="$."/>
						</Setting>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="EnterInformationStep" Title="Inserir Informações do Servidor e do Usuário" Display="Left" SkipSave="True">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Mode%" Substitution="InputMode" Display="Hide"/>
				<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
				<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>

				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Inserir Informações do Servidor e do Usuário"/>

				<Object Type="Control" SubType="Label" Name="labelLabel" Position="Below" Text="Inserir um rótulo de identificação para esta atividade:"/>
				<Object Type="Control" SubType="TextBox" Name="Label" Position="NextTo" Default="" Width="417" Display="Hide">
					<Setting Key1="LabelName">
						<Rule Name="fSetLabelToServerName" Query="if(string-length($.) &gt; 0, setLabel($.))"/>
					</Setting>
				</Object>
				<Object Type="Control" SubType="GradiatedBox" Name="TopLine" Position="LeftBelow"/>

				<Object Type="If" Name="IsNotSymptom" Key1="'%IsSymptom%'='0'">
					<Object Type="Control" SubType="CheckBox" Name="RawMode" Position="Below" LineSpace="2" Text="Executar análise de arquivos de dados brutos (ignorar as entradas de servidor e de credenciais abaixo)">
						<Setting Key1="Checked">
							<Rule Name="fRawMode" Query="$.=1" NextStep="ManualSelectStep"/>
						</Setting>
						<Event Type="Changed">
							<Action Type="Enable" ControlName="ServerName" Query="control-value('RawMode')='0'"/>
							<Action Type="Enable" ControlName="DCName" Query="control-value('RawMode')='0'"/>
							<Action Type="Enable" ControlName="ShowHideCreds" Query="control-value('RawMode')='0'"/>
						</Event>
					</Object>

					<Object Type="Control" SubType="GradiatedBox" Name="MidLine2" Position="Below"/>
				</Object>

				<Object Type="Control" SubType="Label" Name="ServerLabel" Position="Below" LineSpace="2" Text="Nome do servidor Exchange (necessário):"/>
				<Object Type="Control" SubType="TextBox" Name="ServerName" Position="At(Label)," Default="%Server%">
					<Setting Key1="ServerName">
						<Rule Name="szInputServerName" Query="$.">
							<Variable Name="Server" Scope="Local"/>
						</Rule>
						<Rule Name="szServerName" Query="upper-case(slice($.,'.',0))" Text="O nome do servidor é {1}." P1="$.">
							<Variable Name="ServerName" Scope="Children"/>
						</Rule>
						<Rule Name="fEmptyServerName" Query="not ($.) or ($.='')" Text="Nome do servidor vazio." Error="Error"/>
						<Rule Name="fSetServerName" Query="if(not ($fEmptyServerName), regSetValue('','Software\\Microsoft\\Exchange\\ExDRA','ServerSpecified',$.))"/>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Label" Name="InvalidServerName" Position="NextTo" Text=" Nome inválido de servidor." ForeColor="Red" FontStyle="Bold" Flags="Visible=False"/>

				<Object Type="Control" SubType="Label" Name="DCLabel" Position="LeftBelow" LineSpace="2" Text="Nome de controlador de domínio (obrigatório):"/>
				<Object Type="Control" SubType="TextBox" Name="DCName" Position="At(Label)," Default="%DC%">
					<Setting Key1="DCName">
						<Rule Name="szDCEntered" Query="$.">
							<Variable Name="DC" Scope="Local"/>
						</Rule>
						<Rule Name="szDCName" Query="slice($.,'.',0)" Text="O nome do controlador de domínio é {1}." P1="$.">
							<Variable Name="DCName" Scope="Children"/>
						</Rule>
						<Rule Name="fSetDCName" Query="($. != @S0) and regSetValue('','Software\\Microsoft\\Exchange\\ExDRA','DCSpecified',$.)" S0="%DC%"/>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Label" Name="InvalidDCName" Position="NextTo" Text=" Nome de controlador de domínio inválido." ForeColor="Red" FontStyle="Bold" Flags="Visible=False"/>

				<Object Type="Control" SubType="Label" Name="InvalidCredentials" Position="LeftBelow" Text="As credenciais especificadas são inválidas. Forneça as credenciais válidas." ForeColor="Red" FontStyle="Bold" Flags="Visible=False"/>

				<Object Type="Control" SubType="GradiatedBox" Name="MidLine1" Position="LeftBelow"/>
				<Object Type="Control" SubType="ShowHide" Name="ShowHideCreds" Position="Below" Text="Mostrar opções avançadas de logon, Ocultar opções avançadas de logon">
					<Object Type="Control" SubType="Label" Name="EXLabel" Position="TopNoBorder" Text="Se suas credenciais atuais não tiverem permissões suficientes para ler informações de configuração do servidor Exchange, insira as credenciais alternativas a seguir."/>
					<Object Type="Credentials" Name="EXLOGON" Position="Below" Key1="225"/>
				</Object>

				<Object Type="Control" SubType="GradiatedBox" Name="AboveSkipInfo" Position="LeftBelow"/>

				<Object Type="Control" SubType="CheckBox" Name="ContinueRun" Position="Below" Text="Ocultar exibição de informações" Default="%varContinueRun%">
					<Setting Key1="Checked">
						<Rule Name="iContinueRun" Query="$.">
							<Variable Name="varContinueRun" Scope="Global"/>
						</Rule>
						<Rule Name="fSetContinueRun" Query="regSetValue('','Software\\Microsoft\\Exchange\\ExDRA','SkipInformationalSteps',$.)"/>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Label" Name="ContinueRunLabel" Position="Below" LineSpace="0" Text="      A seleção desta opção ignorará os resultados individuais da análise do banco de dados e recomendações e irá para a página Resumo do Cabeçalho de Arquivo."/>

				<Object Type="Control" SubType="GradiatedBox" Name="BottomLine" Position="LeftBelow"/>

				<Object Type="Control" SubType="Link" Name="Next" Position="IndentBelow" Text="Avançar">
					<Rule Name="fDispatchToCheckAutoDetectInputs" Query="not ($fEmptyServerName) and not ($fRawMode)" NextStep="CheckConnectivityStep" AlwaysEvaluate="True"/>
					<Event Type="Click">
						<Action Type="Proceed" Query="validate-credentials('EXLOGON') and (control-value('ServerName') !='') and (control-value('DCName') !='')"/>
						<Action Type="Visible" ControlName="InvalidCredentials" Query="not(validate-credentials('EXLOGON'))"/>
						<Action Type="Visible" ControlName="InvalidServerName" Query="control-value('ServerName')=''"/>
						<Action Type="Visible" ControlName="InvalidDCName" Query="control-value('DCName')=''"/>
					</Event>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="ManualSelectStep" Title="Exibir Opções de Seleção Manual" Display="Left" SkipSave="True">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%DBPath%" Substitution="DBPath" Display="Hide"/>
				<Setting Key1="%LogPath%" Substitution="LogPath" Display="Hide"/>
				<Object Type="Group" Name="ManualVars">
					<Setting Key1="ManualVars">
						<Rule Name="szEmptyString2" Query="string('')">
							<!-- Set up elements we will not have.  -->
							<Variable Name="LogPrefix" Scope="Children"/>
							<Variable Name="DC" Scope="Children"/>
							<Variable Name="Server" Scope="Children"/>
							<Variable Name="ServerName" Scope="Children"/>
							<Variable Name="SelectedSG" Scope="Children"/>
							<Variable Name="SelectedDBForDisplay" Scope="Children"/>
						</Rule>
						<Rule Name="iZero" Query="0">
							<Variable Name="CheckPointGen" Scope="Children"/>
						</Rule>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Arquivos de Banco de Dados e de Log de Transações do Exchange Server"/>
				<Object Type="Control" SubType="Label" Name="ManualSelectTopLabel" Position="Below" Text="Insira os caminhos para os arquivos de banco de dados e de log de transações, por exemplo C:\Databases\DB1.edb e C:\Logs. Você pode também inserir caminhos UNC (\\NomedoServidor\Nomedocompatilhamento\caminho)."/>
				<Object Type="Control" SubType="Label" Name="DatabaseInfo" Position="Below" Text="Nome Completo do Arquivo de Banco de Dados: "/>
				<Object Type="Control" SubType="FileDialog" Text="Procurar..." Title="Selecionar Arquivo de Banco de Dados" FileFilter="EDB Files(*.edb)|*.edb|All Files(*.*)|*.*" DialogType="OpenFile" Name="DBPath" Position="NextTo" Width="300" Default="%DBPath%" Flags="ReadOnly=True">
					<Setting Key1="DBPath">
						<Rule Name="fDBPathEmpty" Query="not ($.)" Text="Nome e caminho do banco de dados vazio." Error="Error"/>
						<Rule Name="szDBPathUpper" Query="upper-case($.)">
							<Variable Name="DBPath" Scope="Local"/>
						</Rule>
						<Rule Name="szSelectedDBPath" Query="upper-case($.)">
							<Variable Name="SelectedDB" Scope="Children"/>
						</Rule>
						<Rule Name="szSLVPathMunge" Query="replace($szDBPathUpper, '.EDB', '.STM')">
							<Variable Name="SLVPath" Scope="Children"/>
						</Rule>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Label" Name="LogDirectory" Position="LeftBelow" Text="Diretório de Log: "/>
				<Object Type="Control" SubType="FileDialog" Text="Procurar..." Title="Selecione o diretório de arquivos de log" DialogType="OpenFolder" Name="LogPath" Position="At(DBPath)," Width="300" Default="%LogPath%" Flags="ReadOnly=True">
					<Setting Key1="LogPath">
						<Rule Name="fLogPathEmpty" Query="not ($.)" Text="O diretório de log especificado está vazio. Especifique um diretório de log válido." Error="Error"/>
						<Rule Name="szLogPathSetVar" Query="$.">
							<Variable Name="LogPath" Scope="Local"/>
						</Rule>
					</Setting>
				</Object>

				<Object Type="Control" SubType="CheckBox" Name="IsE12" Position="LeftBelow" LineSpace="2" Text="Marque essa caixa se o banco de dados for para o Exchange Server 2007 ou uma versão posterior.">
					<Setting Key1="Value">
						<Rule Name="iE12" Query="$.">
							<Variable Name="IsE12" Scope="Children"/>
						</Rule>
					</Setting>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar">
					<Rule Name="fDispatchToDBAnalysisStep" Query="not ($fDBPathEmpty) and not ($fLogPathEmpty)" NextStep="DBAnalysisStep"/>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="DBAnalysisStep" Title="Analisar Banco de Dados" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%DBPath%" Substitution="DBPath" Display="Hide"/>
			<Setting Key1="%SLVPath%" Substitution="SLVPath" Display="Hide"/>
			<Setting Key1="%LogPath%" Substitution="LogPath" Display="Hide"/>
			<Setting Key1="%LogPrefix%" Substitution="LogPrefix" Display="Hide"/>
			<Setting Key1="%SelectedDBForDisplay%" Substitution="DBName" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%SelectedDB%" Substitution="SelectedDB" Display="Hide"/>
			<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>
			<Setting Key1="%CheckPointGen%" Substitution="CheckPointGen" Display="Hide"/>
			<Object Type="Progress" Title="Análise do Banco de Dados: %SelectedDB%" Text="Aguarde enquanto a ferramenta examina os arquivos de log de transações e os bancos de dados selecionados.">
				<Object Type="EseInfo" Key2="%DBPath%" Key3="EXDRA" Key4="%IsE12%" SecurityContext="EXLOGON">
					<Rule Name="fErrorAccessDatabase" Query="../Exception/@Message" Text="Erro ao acessar o banco de dados {0}. A mensagem de erro é: {1}." S0="%DBPath%" P1="../Exception/@Message" Error="Error" NextStep="DisplayCorruptDBStep">
						<Variable Name="ErrorMessage" Scope="Children"/>
					</Rule>
					<Rule Name="szDatabaseName" Query="true()" Text="O nome do banco de dados é: {1}" S1="%DBName%"/>
					<Rule Name="szDatabasePath" Query="true()" Text="O caminho do banco de dados é: {1}" S1="%DBPath%"/>
					<Setting Key1="DBSignature">
						<Rule Name="szDBSignature" Query="if($., concat($.[1],' ', $.[2]))" Text="A assinatura do banco de dados '{0}' é {1} {2}." S0="%SelectedDB%" P1="$.[1]" P2="$.[2]" Error="Information">
							<Variable Name="DBHeader[DBSignature]" Scope="Children"/>
						</Rule>
						<Rule Name="szGlobalDBSignature" Query="concat(@S0, $szDBSignature)" S0="%DBName%">
							<Variable Name="INFO[GlobalDBSignature][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="LogSignature" Substitution="LogSignature" SubstitutionFormat="$---- ">
						<Rule Name="szLogSignature" Query="if($., concat($.[1],' ', $.[2]))" Text="A assinatura do log do banco de dados '{0}' é {1} {2}." S0="%SelectedDB%" P1="$.[1]" P2="$.[2]" Error="Information">
							<Variable Name="DBHeader[LogSignature]" Scope="Children"/>
						</Rule>
						<Rule Name="szGlobalLogSignature" Query="concat(@S0, $szLogSignature)" S0="%DBName%">
							<Variable Name="INFO[GlobalLogSignature][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="DBState">
						<Rule Name="iDBStateNum" Query="$.">
							<Variable Name="DBHeader[StateNum]" Scope="Children"/>
						</Rule>
						<Rule Name="szDBStatus" Query="if(($.=3), 'Clean Shutdown', if(($.=2),'Dirty Shutdown','State Unknown'))"/>
						<Rule Name="fDBStateClean" Query="$szDBStatus='Clean Shutdown'" Error="None" Title="O banco de dados '{0}' está em estado de '{1}'" Text="O estado do banco de dados '{0}' é '{1}'." S0="%SelectedDB%" P1="$szDBStatus" NextStep="DisplayCleanShutdownStep" GUID="8df2ff5a-288f-4e40-a727-96f60ee34f11"/>
						<Rule Name="fDBStateDirty" Query="$szDBStatus='Dirty Shutdown'" Error="Error" Title="O banco de dados '{0}' está em estado de '{1}'" Text="O estado do banco de dados '{0}' é '{1}'." S0="%SelectedDB%" P1="$szDBStatus" GUID="628ce16c-e95e-4727-9521-fb77f0d1f881"/>
						<Rule Name="fDBStateUnknown" Query="$szDBStatus='State Unknown'" Error="Error" Title="O banco de dados '{0}' está em estado de '{1}'" Text="O estado do banco de dados '{0}' é '{1}'." S0="%SelectedDB%" P1="$szDBStatus" GUID="be5ca9cb-9430-47eb-9894-c6cb7b3019aa"/>
						<Rule Name="szGlobalDBStatus" Query="concat(@S0, $szDBStatus)" S0="%DBName%">
							<Variable Name="INFO[GlobalDBStatus][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="MinLogRequired" Substitution="MinLogRequired">
						<Rule Name="fCompareCheckPointFile" Query="$. &gt; 0 and @S1 &gt; $. and @S4=2" Title="Número de geração incorreto no arquivo de ponto de verificação" Text="O número de geração ({1}) no arquivo de ponto de verificação é maior que o número mínimo necessário de arquivos de log ({2}) no banco de dados '{3}'. Você deve remover o arquivo de ponto de verificação para recuperar o banco de dados." S1="%CheckPointGen%" P2="$." S3="%SelectedDB%" P4="$iDBStateNum" Error="Error"/>
						<Rule Name="iMin" Query="$." Text="O arquivo de log mínimo necessário para o banco de dados '{0}' é {1}." S0="%SelectedDB%" P1="$." Error="Information">
							<Variable Name="DBHeader[Min]" Scope="Children"/>
						</Rule>
						<Rule Name="szGlobalMinLogRequired" Query="concat(@S0, $iMin)" S0="%DBName%">
							<Variable Name="INFO[GlobalMinLogRequired][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="MaxLogRequired" Substitution="MaxLogRequired">
						<Rule Name="iMax" Query="$." Text="O arquivo de log máximo necessário para o banco de dados '{0}' é {1}." S0="%SelectedDB%" P1="$." Error="Information">
							<Variable Name="DBHeader[Max]" Scope="Children"/>
						</Rule>
						<Rule Name="fDirtyWithNoRequiredLogs" Query="($iDBStateNum='2') and ($iMin='0') and ($iMax='0')" Error="Error" Title="O banco de dados está em um estado de 'Desligamento Anormal', mas nenhum log é necessário" Text="O estado do banco de dados '{0}' é 'Desligamento Anormal', mas nenhum log é necessário." S0="%SelectedDB%" GUID="49bc5a3c-2fa4-469f-90df-797d1212ea74"/>
						<Rule Name="szGlobalMaxLogRequired" Query="concat(@S0, $iMax)" S0="%DBName%">
							<Variable Name="INFO[GlobalMaxLogRequired][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="LogTimeAttachPos" Substitution="LogTimeAttachPos"/>
					<Setting Key1="LogTimeAttach">
						<Rule Name="szLogTimeAttach" Query="$." Text="O horário de anexação do log do banco de dados '{0}' é {1}." S0="%SelectedDB%" P1="$." Error="Information"/>
						<Rule Name="szGlobalLogTimeAttach" Query="concat(@S0, @S1, '  ', $.)" S0="%DBName%" S1="%LogTimeAttachPos%">
							<Variable Name="INFO[GlobalLogTimeAttach][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="LogTimeConsistentPos" Substitution="LogTimeConsistentPos"/>
					<Setting Key1="LogTimeConsistent">
						<Rule Name="szLogTimeConsistent" Query="$." Text="O horário consistente do log do banco de dados '{0}' é {1}." S0="%SelectedDB%" P1="$." Error="Information"/>
						<Rule Name="szGlobalLogTimeConsistent" Query="concat(@S0, @S1, '  ', $.)" S0="%DBName%" S1="%LogTimeConsistentPos%">
							<Variable Name="INFO[GlobalLogTimeConsistent][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="LogTimeDetachPos" Substitution="LogTimeDetachPos"/>
					<Setting Key1="LogTimeDetach">
						<Rule Name="szLogTimeDetach" Query="$." Text="O horário de desanexação do log do banco de dados '{0}' é {1}." S0="%SelectedDB%" P1="$." Error="Information"/>
						<Rule Name="szGlobalLogTimeDetach" Query="concat(@S0, @S1, '  ', $.)" S0="%DBName%" S1="%LogTimeDetachPos%">
							<Variable Name="INFO[GlobalLogTimeDetach][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="LogTimeRepair">
						<Rule Name="szLogTimeRepair" Query="$." Text="O horário de reparo do log do banco de dados '{0}' é {1}." S0="%SelectedDB%" P1="$." Error="Information"/>
						<Rule Name="szGlobalLogTimeRepair" Query="concat(@S0, $.)" S0="%DBName%">
							<Variable Name="INFO[GlobalLogTimeRepair][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="RepairCount">
						<Rule Name="szRepairCount" Query="$." Text="A contagem de reparos do banco de dados '{0}' é {1}." S0="%SelectedDB%" P1="$." Error="Information"/>
						<Rule Name="szGlobalRepairCount" Query="concat(@S0, $.)" S0="%DBName%">
							<Variable Name="INFO[GlobalRepairCount][%DBPath%]" Scope="Global"/>
						</Rule>
						<Rule Name="fDBRepaired" Query="$. &gt; 0" Error="Warning" Sev="3" Title="Banco de dados reparado" Text="O banco de dados '{0}' foi reparado {1} vez(es). A última vez de reparo foi {2}." S0="%SelectedDB%" P1="$." P2="$szLogTimeRepair" GUID="8be66387-c893-4020-9f4b-04a3152d0775"/>
					</Setting>
					<Setting Key1="DBTimeDirtied"/>
					<Setting Key1="Update" Substitution="Update"/>
					<Setting Key1="Version" Substitution="Version">
						<Rule Name="szGlobalUpdateAndVersion" Query="concat(@S0, @S1, ',', $.)" S0="%DBName%" S1="%Update%">
							<Variable Name="INFO[GlobalUpdateAndVersion][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="DBLastConsistentGenerationNumber" Substitution="LastConsistentGenerationNumber">
						<Rule Name="szGloballastConsistentGenerationNumber" Query="concat(@S0, $.)" S0="%DBName%">
							<Variable Name="INFO[GlobalLastConsistentGenerationNumber][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="SLVSignature" Substitution="SLVSignature" SubstitutionFormat="$---- ">
						<Rule Name="szSLVSignatureInDB" Query="if($., concat($.[1],' ', $.[2]))" Text="A assinatura de arquivo de streaming do banco de dados '{0}' é {1} {2}." S0="%SelectedDB%" P1="$.[1]" P2="$.[2]">
							<Variable Name="DBHeader[SLVSignature]" Scope="Children"/>
						</Rule>
					</Setting>
					<Setting Key1="BKInfoFullPrev">
						<Rule Name="szBKInfoFullPrev" Query="if($., concat(@S0,'(',$.[3],',',$.[2],',',$.[1],')',' ',$.[4],' ',$.[5],'-',$.[6]))" S0="%DBName%">
							<Variable Name="INFO[GlobalBKInfoFullPrev][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="BKInfoIncPrev">
						<Rule Name="szBKInfoIncPrev" Query="if($., concat(@S0,'(',$.[3],',',$.[2],',',$.[1],')',' ',$.[4],' ',$.[5],'-',$.[6]))" S0="%DBName%">
							<Variable Name="INFO[GlobalBKInfoIncPrev][%DBPath%]" Scope="Global"/>
						</Rule>
					</Setting>
					<Setting Key1="BKInfoFullCur">
						<Rule Name="szBKInfoFullCur" Query="if($., concat(@S0,'(',$.[3],',',$.[2],',',$.[1],')',' ',$.[4],' ',$.[5],'-',$.[6]))" S0="%DBName%">
							<Variable Name="INFO[GlobalBKInfoFullCur][%DBPath%]" Scope="Global"/>
						</Rule>
						<Rule Name="fNeedHardRecovery" Query="($.[6]=0) and not ($.[5]=0)" Title="O status do banco de dados é 'restaurado do backup online'" Text="Esse banco de dados foi restaurado de um backup online e ainda não foi recuperado." Error="Warning"/>
					</Setting>
					<!-- TISP2 Database Attributes -->
					<Setting Key1="RepairCountOld">
						<Rule Name="fDBRepairedBefore" Query="$. &gt; 0" Error="Warning" Sev="3" Title="Banco de dados reparado antes da última desfragmentação" Text="O banco de dados '{0}' foi reparado {1} vez(es) antes da última desfragmentação." S0="%SelectedDB%" P1="$." GUID="8be66387-c893-4020-9f4b-04a3152d0775"/>
					</Setting>
					<Setting Key1="ECCFixSuccess">
						<Rule Name="fECCFixSuccess" Query="$. &gt; 0" Error="Warning" Sev="2" Title="Erro de ECC corrigido com êxito" Text="Um erro de ECC foi corrigido e resultou em uma página adequada no banco de dados '{0}' por {1} vez(es). O horário do último log é {2}." S0="%SelectedDB%" P1="$." P2="$szLogTimeECCFixSuccess" GUID="8be66387-c893-4020-9f4b-04a3152d0775"/>
					</Setting>
					<Setting Key1="LogTimeECCFixSuccess">
						<Rule Name="szLogTimeECCFixSuccess" Query="$."/>
					</Setting>
					<Setting Key1="ECCFixSuccessOld"/>
					<Setting Key1="ECCFixFail">
						<Rule Name="fECCFixFail" Query="$. &gt; 0" Error="Error" Sev="2" Title="Erro de ECC não corrigido com êxito" Text="Um erro de ECC foi corrigido e resultou em uma página incorreta no banco de dados '{0}' por {1} vez(es). O horário do último log é {2}." S0="%SelectedDB%" P1="$." P2="$szLogTimeECCFixFail" GUID="8be66387-c893-4020-9f4b-04a3152d0775"/>
					</Setting>
					<Setting Key1="LogTimeECCFixFail">
						<Rule Name="szLogTimeECCFixFail" Query="$."/>
					</Setting>
					<Setting Key1="ECCFixFailOld"/>
					<Setting Key1="BadChecksum">
						<Rule Name="fBadChecksumFound" Query="$. &gt; 0" Error="Error" Sev="2" Title="Encontrado erro de ECC/soma de verificação que não pode ser corrigido" Text="Foi encontrado erro de ECC/soma de verificação que não pode ser corrigido no banco de dados '{0}' por {1} vez(s). O horário do último log é {2}." S0="%SelectedDB%" P1="$." P2="$szLogTimeBadChecksum" GUID="8be66387-c893-4020-9f4b-04a3152d0775"/>
					</Setting>
					<Setting Key1="LogTimeBadChecksum">
						<Rule Name="szLogTimeBadChecksum" Query="$."/>
					</Setting>
					<Setting Key1="BadChecksumOld"/>

					<!-- Verify SLV file.  -->
					<Object Type="If" Name="STMFileCheck" Key1="not('%Version%'='0x620' and '%Update%'='12')">
						<Object Type="EseInfo" Key2="%SLVPath%" Key3="ExDRA" Key4="%IsE12%" SecurityContext="EXLOGON">
							<Rule Name="fErrorAccessSLVFile" Query="../Exception/@Message" Title="Erro ao acessar o arquivo de streaming" Text="Erro ao acessar o arquivo de streaming '{0}'. A mensagem de erro é: {1}." S0="%SLVPath%" P1="../Exception/@Message" Error="Error" NextStep="DisplayCorruptDBStep" GUID="e3c2d16d-f667-4a4a-9184-bb714d588cf6">
								<Variable Name="ErrorMessage" Scope="Children"/>
							</Rule>
							<Setting Key1="DBSignature">
								<Rule Name="szSLVSignature" Query="if($., concat($.[1],' ',$.[2]))" Text="A assinatura do arquivo de banco de dados do arquivo de streaming '{0}' é {1} {2}." S0="%SLVPath%" P1="$.[1]" P2="$.[2]"/>
								<Rule Name="fMatchDBSignature" Query="$szSLVSignatureInDB=$szSLVSignature" Error="None" Text="A assinatura do arquivo de streaming '{0}' corresponde à assinatura do arquivo de streaming do banco de dados '{1}'." S0="%SLVPath%" S1="%SelectedDB%"/>
								<Rule Name="fNotMatchDBSignature" Query="not ($szSLVSignatureInDB=$szSLVSignature)" Error="Error" Title="Discrepância de assinatura entre o arquivo de banco de dados e de streaming" Text="A assinatura do arquivo de streaming '{1}' não corresponde à assinatura do arquivo de streaming do banco de dados '{0}'." S0="%SelectedDB%" S1="%SLVPath%" GUID="6b67d9c6-f704-4dd5-84f6-dcb841a4b988"/>
							</Setting>
						</Object>
					</Object>
					<!-- Verify Log files.  -->
					<Object Type="LogCheck" Key1="%LogPrefix%" Key2="%LogPath%" Key3="%LogSignature%" Key4="%MinLogRequired%,%MaxLogRequired%" Key5="%LastConsistentGenerationNumber%|%IsE12%" SecurityContext="EXLOGON">
						<Rule Name="fErrorLogCheck" Query="count(../Exception) &gt;0" Title="Erro ao verificar arquivos de log" Text="Erro ao acessar {0} para verificação do log. A mensagem de erro é {1}." S0="%LogPath%" P1="../Exception/@Message" Error="Error" GUID="0543b1d5-b61a-44a1-90f6-10cbaad9244a"/>
						<Setting Key1="LogPrefix">
							<Rule Name="szLastPrefix" Query="$.">
								<Variable Name="Log[LogPrefix]" Scope="Children"/>
							</Rule>
						</Setting>
						<Setting Key1="LowestExistingSequenceNumberFileName">
							<Rule Name="szMinLogFileName" Query="$." Text="O nome do arquivo de log mais baixo no diretório de log é {1}." P1="$.">
								<Variable Name="Log[MinLogFileName]" Scope="Children"/>
							</Rule>
						</Setting>
						<Setting Key1="HighestSequenceNumber">
							<Rule Name="szLastSequenceNumber" Query="$.">
								<Variable Name="Log[LastSequenceNumber]" Scope="Children"/>
							</Rule>
						</Setting>
						<Setting Key1="HighestExistingSequenceNumberFileName">
							<Rule Name="szMaxLogFileName" Query="$." Text="O nome do arquivo de log mais alto no diretório de log é {1}." P1="$.">
								<Variable Name="Log[MaxLogFileName]" Scope="Children"/>
							</Rule>
						</Setting>
						<Setting Key1="HighestExistingSequenceNumber">
							<Rule Name="szE00Filename" Query="concat($szLastPrefix, '.log')"/>
							<Rule Name="szExpandedMaxLogFileName" Query="if( $szMaxLogFileName != $szE00Filename, string($szMaxLogFileName), concat($szMaxLogFileName, ' ', '(', $., ')' ))">
								<Variable Name="Log[MaxLogFileNameExpanded]" Scope="Children"/>
							</Rule>
						</Setting>
						<Setting Key1="MissingOptionalLogFiles" Substitution="MissingLogs">
							<Rule Name="fMissingLogs" Query="not ($.='')"/>
							<Rule Name="szMissingLogsList" Query="$.">
								<Variable Name="Log[MissingLogFiles]" Scope="Children"/>
							</Rule>
							<Rule Name="szGlobalOptionalLogFiles" Query="concat(@S0, $.)" S0="%DBName%">
								<Variable Name="INFO[GlobalMissingOptionalLogFiles][%DBPath%]" Scope="Global"/>
							</Rule>
						</Setting>
						<Setting Key1="MissingRequiredLogFiles" Substitution="MissingRequiredLogs">
							<Rule Name="fMissingRequiredLogs" Query="not ($.='')"/>
							<Rule Name="szMissingRequiredLogsList" Query="$.">
								<Variable Name="Log[MissingRequiredLogs]" Scope="Children"/>
							</Rule>
							<Rule Name="szGlobalMissingRequiredLogFiles" Query="concat(@S0, $.)" S0="%DBName%">
								<Variable Name="INFO[GlobalMissingRequiredLogFiles][%DBPath%]" Scope="Global"/>
							</Rule>
						</Setting>
						<Setting Key1="InconsistentLogPairs">
							<Rule Name="szInconsistentLogPairs" Query="$.">
								<Variable Name="Log[InconsistentLogPairs]" Scope="Children"/>
							</Rule>
							<Rule Name="fInconsistentLogPairs" Query="not ($.='')" Title="Os pares de logs são inconsistentes" Text="Os seguintes pares de arquivos de log são inconsistentes: {1}" P1="$szInconsistentLogPairs" Error="Error" GUID="44b15801-e6d6-41e1-af9c-c3d2b5b55769"/>
						</Setting>
						<Setting Key1="E00SequenceNumber">
							<Rule Name="szE00SequenceString" Query="if($. != '', string($.))">
								<Variable Name="E00SequenceNumber" Scope="Children"/>
							</Rule>
							<Rule Name="fNoE00Log" Query="$.='' or contains($szSignatureFailLogs, concat($szLastPrefix, '.log'))"/>
							<Rule Name="fNeedE00Log" Query="$fNoE00Log and $iDBStateNum=2" Template="fTemplateE00Log" P1="$szLastPrefix" Error="Error"/>
							<Rule Name="fNiceHaveE00Log" Query="$fNoE00Log and $iDBStateNum=3" Template="fTemplateE00Log" P1="$szLastPrefix" Error="Warning"/>
						</Setting>
						<Setting Key1="HighestRecoverableGenerationNumber">
							<Rule Name="szHighestRecoverableGenerationNumber" Query="if($. != '', string($.))">
								<Variable Name="Log[HighestRecoverableGenerationNumber]" Scope="Children"/>
							</Rule>
						</Setting>
						<Setting Key1="SignatureFailLogsList">
							<Rule Name="szSignatureFailLogs" Query="join(',',$.)"/>
						</Setting>
						<Setting Key1="SignatureFailLogsCount">
							<Rule Name="fSignatureFailLogs" Query="$. != 0" Title="Discrepância da assinatura do log" Text="As assinaturas dos seguintes logs não correspondem à assinatura do banco de dados '{0}': {1}" S0="%SelectedDB%" P1="$szSignatureFailLogs" Error="Error" GUID="dd306480-3148-4d7b-ba58-b88622385d8f"/>
						</Setting>
						<Setting Key1="MislabeledLogsList">
							<Rule Name="szMislabeledLogs" Query="join(',',$.)"/>
						</Setting>
						<Setting Key1="MislabeledLogsCount">
							<Rule Name="fMislabeledLogs" Query="$. != 0" Error="Error" Title="Discrepância da geração de log" Text="Os nomes de arquivos dos seguintes logs não correspondem aos seus números de geração: {1}" P1="$szMislabeledLogs" GUID="d1ac44f0-1d14-4771-9376-b750a0eaeaad"/>
						</Setting>
						<!-- Aggregate the conditions upon which we do not do analysis but just go to the summary page -->
						<Rule Name="fDispatchHardRecovery" Query="not ($fErrorAccessDatabase) and not ($fErrorAccessSLVFile) and $fNeedHardRecovery" NextStep="DisplayHardRecoveryStep" AlwaysEvaluate="True"/>
						<Rule Name="fAlreadyHandledConditions" Query="$fErrorAccessDatabase or $fDispatchHardRecovery or $fErrorAccessSLVFile" AlwaysEvaluate="True"/>
						<Rule Name="fCrazyUnhandledConditions" Query="$fInconsistentLogPairs or $fDirtyWithNoRequiredLogs or $fSignatureFailLogs or $fMislabeledLogs" AlwaysEvaluate="True"/>
						<Rule Name="fResult1" Query="not ($fAlreadyHandledConditions) and not ($fCrazyUnhandledConditions) and ($fDBStateDirty) and ($fMissingLogs) and not ($fMissingRequiredLogs)" Title="Arquivos de log opcionais estão ausentes no banco de dados, mas ele possui os arquivos de log necessários" Text="O banco de dados '{0}' não possui os arquivos de log opcionais {1} ou eles são incompatíveis, mas possui os arquivos de log necessários." S0="%SelectedDB%" Error="Warning" P1="$szMissingLogsList" NextStep="DisplayDirtyShutdownStep1" GUID="e4e29f08-6579-4f59-acbb-ff52d6704a1d" AlwaysEvaluate="True"/>
						<Rule Name="fResult2" Query="not ($fAlreadyHandledConditions) and not ($fCrazyUnhandledConditions) and ($fDBStateDirty) and ($fMissingLogs) and ($fMissingRequiredLogs)" Title="Arquivos de log opcionais e necessários ausentes do banco de dados" Text="Os arquivos de log opcionais {1} e os arquivos de log necessários {2} estão ausentes do banco de dados '{0}'ou são incompatíveis." S0="%SelectedDB%" Error="Error" P1="$szMissingLogsList" P2="$szMissingRequiredLogsList" NextStep="DisplayDirtyShutdownStep2" GUID="42008975-92f9-4051-9012-33ea2709d9dc" AlwaysEvaluate="True"/>
						<Rule Name="fResult3" Query="not ($fAlreadyHandledConditions) and not ($fCrazyUnhandledConditions) and ($fDBStateDirty) and not ($fMissingLogs) and ($fMissingRequiredLogs)" Title="Arquivos de log necessários ausentes do banco de dados" Text="Os arquivos de log necessários {1} estão ausentes do banco de dados '{0}' ou são incompatíveis." S0="%SelectedDB%" Error="Error" P1="$szMissingRequiredLogsList" NextStep="DisplayDirtyShutdownStep3" GUID="a3617b61-6480-4db7-8b85-735abd0b2864" AlwaysEvaluate="True"/>
						<Rule Name="fResult4" Query="not ($fAlreadyHandledConditions) and not ($fCrazyUnhandledConditions) and ($fDBStateDirty) and not ($fMissingLogs) and not ($fMissingRequiredLogs)" Title="O banco de dados possui todos os arquivos de log" Text="Detectada a presença de todos os arquivos de log no banco de dados '{0}'." S0="%SelectedDB%" Error="None" NextStep="DisplayDirtyShutdownStep4" GUID="958a930d-7c3e-4794-b460-3b539accb69f" AlwaysEvaluate="True"/>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="DisplayCorruptDBStep" Title="Exibir Informações do Banco de Dados Corrompido" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%SelectedDB%" Substitution="SelectedDB" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
			<Setting Key1="%ErrorMessage%" Substitution="ErrorMessage" Display="Hide"/>
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Object Type="Information" Hide="%varContinueRun%">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados da Análise"/>
				<Object Type="RichTextBox" Name="CorruptedDBRichTextBox" Position="Below" LineSpace="2" Height="450" Width="FullWidth" Display="Hide">
					<Setting Text="Resultados da análise: {1}" S1="%SelectedDB%" Key2="Font=Title,Type=Append"/>
					<Setting Text="Falha ao recuperar informações do banco de dados" Key2="Font=Title,FontStyle=Bold,ForeColor=Black"/>
					<Setting Key2="Type=NewLine" Key3="1"/>
					<Setting Text="Detalhes: " Key2="FontStyle=Bold,ForeColor=Black"/>
					<Setting Text="A mensagem de erro é: {1}" S1="%ErrorMessage%" Key3="2"/>
					<Setting Key2="Type=NewLine" Key3="3"/>
					<Setting Text="Informações do banco de dados: " Key2="FontStyle=Bold"/>
					<Setting Text="Selecionar controlador de domínio: {1}" S1="%DC%" Key3="4"/>
					<Setting Text="Servidor Exchange selecionado: {1}" S1="%Server%" Key3="5"/>
					<Setting Text="Grupo de armazenamento selecionado: {1}" S1="%SelectedSG%" Key3="6"/>
					<Setting Text="Banco de dados selecionado: {1}" S1="%SelectedDB%" Key3="7"/>
					<Setting Key2="Type=NewLine" Key3="8"/>
					<Setting Text="Solução: " Key2="FontStyle=Bold,ForeColor=Black">
						<Rule Text="Solução: "/>
					</Setting>
					<Setting Text="Houve um problema ao ler informações deste arquivo. Esse erro pode ser causado por vários problemas. Os motivos mais comuns para esse erro são: (1) o arquivo está ausente. (2) o arquivo tem o tamanho de zero bytes. (3) o arquivo está bloqueado com exclusividade por outro aplicativo. (4) o arquivo está danificado. " Key3="9">
						<Rule Text="Houve um problema ao ler informações deste arquivo. Esse erro pode ser causado por vários problemas. Os motivos mais comuns para esse erro são: (1) o arquivo está ausente. (2) o arquivo tem o tamanho de zero bytes. (3) o arquivo está bloqueado com exclusividade por outro aplicativo. (4) o arquivo está danificado. "/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="10"/>
					<Setting Text="Se o arquivo estiver ausente ou danificado, localize outra cópia dele. Se o arquivo for um arquivo de streaming do Exchange (arquivo .STM) e não puder ser restaurado, consulte a documentação do {1} para obter informações sobre como gerar um novo arquivo de streaming. Se outro aplicativo tiver bloqueado o arquivo, interrompa esse aplicativo ou reinicie o servidor para forçar a liberação do bloqueio." S1="Eseutil.exe" Key2="Type=NoLineFeed" Key3="11">
						<Rule Text="Se o arquivo estiver ausente ou danificado, localize outra cópia dele. Se o arquivo for um arquivo de streaming do Exchange (arquivo .STM) e não puder ser restaurado, consulte a documentação do {1} para obter informações sobre como gerar um novo arquivo de streaming. Se outro aplicativo tiver bloqueado o arquivo, interrompa esse aplicativo ou reinicie o servidor para forçar a liberação do bloqueio." S1="Eseutil.exe"/>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Button" Name="Copy" Position="LeftBelow" Width="100" Text="Copiar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="CorruptedDBRichTextBox" Query="ActionHandler('CorruptedDBRichTextBox', 'Copy')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Print" Position="NextTo" Scale="1" Width="100" Text="Imprimir">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="CorruptedDBRichTextBox" Query="ActionHandler('CorruptedDBRichTextBox', 'Print')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Save" Position="NextTo" Scale="1" Width="100" Text="Salvar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="CorruptedDBRichTextBox" Query="ActionHandler('CorruptedDBRichTextBox', 'Save')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="SelectAll" Position="NextTo" Scale="1" Width="100" Text="Selecionar Todos">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="CorruptedDBRichTextBox" Query="ActionHandler('CorruptedDBRichTextBox', 'SelectAll')"/>
					</Event>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar"/>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="DisplayHardRecoveryStep" Title="Exibir Informações do Banco de Dados de Recuperação Complexa" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%SelectedDB%" Substitution="SelectedDB" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Object Type="Information" Hide="%varContinueRun%">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados da Análise"/>
				<Object Type="RichTextBox" Name="HardRecoveryRichTextBox" Position="Below" LineSpace="2" Height="450" Width="FullWidth">
					<Setting Text="Resultados da análise: {1}" S1="%SelectedDB%" Key2="Font=Title"/>
					<Setting Text="O status do banco de dados é 'Restaurado do Backup Online'" Key2="Font=Title,FontStyle=Bold,ForeColor=Black"/>
					<Setting Key2="Type=NewLine" Key3="1"/>
					<Setting Text="Detalhes: " Key2="FontStyle=Bold,ForeColor=Black"/>
					<Setting Text="Esse banco de dados foi restaurado de um backup online e ainda não foi recuperado. Os bancos de dados restaurados do backup online estão em um estado especial e devem ser recuperados por procedimentos diferentes daqueles aplicáveis a outros bancos de dados."/>
					<Setting Text="Informações do banco de dados: " Key2="FontStyle=Bold"/>
					<Setting Text="O controlador de domínio selecionado é: {1}" S1="%DC%" Key3="2"/>
					<Setting Text="O servidor selecionado é: {1}" S1="%Server%" Key3="3"/>
					<Setting Text="O grupo de armazenamento selecionado é: {1}" S1="%SelectedSG%" Key3="4"/>
					<Setting Text="O banco de dados selecionado é: {1}" S1="%SelectedDB%" Key3="5"/>
					<Setting Key2="Type=NewLine" Key3="6"/>
					<Setting Text="Solução: " Key2="FontStyle=Bold,ForeColor=Black">
						<Rule Text="Solução: "/>
					</Setting>
					<Setting Text="Você deve recuperar esse banco de dados antes de recuperar outros bancos de dados do grupo de armazenamento.">
						<Rule Text="Você deve recuperar esse banco de dados antes de recuperar outros bancos de dados do grupo de armazenamento."/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="7"/>
					<Setting Text="1. Determine se o arquivo Restore.env desse banco de dados existe e onde ele está localizado. Se Restore.env não puder ser encontrado, o banco de dados deverá ser novamente restaurado a partir do backup." Key3="8">
						<Rule Text="1. Determine se o arquivo Restore.env desse banco de dados existe e onde ele está localizado. Se Restore.env não puder ser encontrado, o banco de dados deverá ser novamente restaurado a partir do backup."/>
					</Setting>
					<Setting Text="2. Determine quais arquivos do log de transações você deseja repetir com esse banco de dados. Uma cópia desse conjunto de arquivos de log deve ser colocada tanto no local Restore.env como na pasta normal do arquivo de log de transações." Key3="9">
						<Rule Text="2. Determine quais arquivos do log de transações você deseja repetir com esse banco de dados. Uma cópia desse conjunto de arquivos de log deve ser colocada tanto no local Restore.env como na pasta normal do arquivo de log de transações."/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="10"/>
					<Setting Text="   OBSERVAÇÃO: Para determinar o conjunto mínimo de arquivos de log de transações que devem ser repetidos com esse banco de dados, execute esse comando em um prompt de comando no local Restore.env:">
						<Rule Text="   OBSERVAÇÃO: Para determinar o conjunto mínimo de arquivos de log de transações que devem ser repetidos com esse banco de dados, execute esse comando em um prompt de comando no local Restore.env:"/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="11"/>
					<Setting Text="   {1}" S1="ESEUTIL /CM" Key3="12">
						<Rule Text="   {1}" S1="ESEUTIL /CM"/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="13"/>
					<Setting Text="3. Mova temporariamente todos os outros arquivos de log do local Restore.env e da pasta normal do log de transações.">
						<Rule Text="3. Mova temporariamente todos os outros arquivos de log do local Restore.env e da pasta normal do log de transações."/>
					</Setting>
					<Setting Text="4. Execute o seguinte comando a partir do local Restore.env e da pasta normal do log de transações:">
						<Rule Text="4. Execute o seguinte comando a partir do local Restore.env e da pasta normal do log de transações:"/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="14"/>
					<Setting Text="   {1}" S1="ESEUTIL /ML Enn" Key3="15">
						<Rule Text="   {1}" S1="ESEUTIL /ML Enn"/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="16"/>
					<Setting Text="   Nesta linha de comando, Enn refere-se aos três primeiros caracteres do nome do arquivo de log de transações. Por exemplo, para o log de transações {1}, você deve executar o comando:" S1="E0101234.LOG">
						<Rule Text="   Nesta linha de comando, Enn refere-se aos três primeiros caracteres do nome do arquivo de log de transações. Por exemplo, para o log de transações {1}, você deve executar o comando:" S1="E0101234.LOG"/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="17"/>
					<Setting Text="   {1}" S1="ESEUTIL /ML E01" Key3="18">
						<Rule Text="   {1}" S1="ESEUTIL /ML E01"/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="19"/>
					<Setting Text="   Esse comando verificará todos os arquivos de log de transações para confirmar que estão todos em seqüência, que são todos correspondentes e que nenhum deles está danificado.">
						<Rule Text="   Esse comando verificará todos os arquivos de log de transações para confirmar que estão todos em seqüência, que são todos correspondentes e que nenhum deles está danificado."/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="20"/>
					<Setting Text="5. No local Restore.env, execute este comando:">
						<Rule Text="5. No local Restore.env, execute este comando:"/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="21"/>
					<Setting Text="   {1}" S1="Eseutil /CC" Key3="22">
						<Rule Text="   {1}" S1="Eseutil /CC"/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="23"/>
					<Setting Text="   Esse comando disparará uma recuperação complexa e repetirá os arquivos de log de transações.">
						<Rule Text="   Esse comando disparará uma recuperação complexa e repetirá os arquivos de log de transações."/>
					</Setting>
					<Setting Key2="Type=NewLine" Key3="24"/>
					<Setting Text="6. Verifique se a recuperação foi concluída com êxito montando o banco de dados.">
						<Rule Text="6. Verifique se a recuperação foi concluída com êxito montando o banco de dados."/>
					</Setting>
					<Setting Text="7. Desmonte o banco de dados antes de recuperar bancos de dados adicionais.">
						<Rule Text="7. Desmonte o banco de dados antes de recuperar bancos de dados adicionais."/>
					</Setting>
					<Setting Text="8. Conforme necessário, mova os arquivos de log de transações de volta para seus locais originais." Key2="Type=NoLineFeed">
						<Rule Text="8. Conforme for necessário, mova os arquivos de log de transações de volta para seus locais originais."/>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Button" Name="Copy" Position="LeftBelow" Width="100" Text="Copiar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="HardRecoveryRichTextBox" Query="ActionHandler('HardRecoveryRichTextBox', 'Copy')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Print" Position="NextTo" Scale="1" Width="100" Text="Imprimir">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="HardRecoveryRichTextBox" Query="ActionHandler('HardRecoveryRichTextBox', 'Print')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Save" Position="NextTo" Scale="1" Width="100" Text="Salvar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="HardRecoveryRichTextBox" Query="ActionHandler('HardRecoveryRichTextBox', 'Save')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="SelectAll" Position="NextTo" Scale="1" Width="100" Text="Selecionar Todos">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="HardRecoveryRichTextBox" Query="ActionHandler('HardRecoveryRichTextBox', 'SelectAll')"/>
					</Event>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar"/>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="DisplayCleanShutdownStep" Title="Exibir Informações do Banco de Dados de 'Desligamento Normal'" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
			<Setting Key1="%SelectedDB%" Substitution="SelectedDB" Display="Hide"/>
			<Setting Key1="%DBHeader[DBSignature]%" Substitution="DBHeader[DBSignature]" Display="Hide"/>
			<Setting Key1="%DBHeader[LogSignature]%" Substitution="DBHeader[LogSignature]" Display="Hide"/>
			<Object Type="Information" Hide="%varContinueRun%" HelpId="html\8df2ff5a-288f-4e40-a727-96f60ee34f11.htm">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados da Análise"/>
				<Object Type="RichTextBox" Name="CleanShutdownRichTextBox" Position="Below" LineSpace="2" Height="450" Width="FullWidth" Display="Hide">
					<Setting Text="Resultados da análise: {1}" S1="%SelectedDB%" Key2="Font=Title"/>
					<Setting Text="O status do banco de dados é 'Desligamento Normal'" Key2="Font=Title,FontStyle=Bold,ForeColor=Black"/>
					<Setting Key2="Type=NewLine" Key3="1"/>
					<Setting Text="Detalhes: " Key2="FontStyle=Bold,ForeColor=Black"/>
					<Setting Text="Esse banco de dados está em um estado de 'Desligamento Normal'. Portanto, não é necessário aplicar os arquivos de log de transações no banco de dados antes de montá-lo. Entretanto, talvez seja possível aplicar arquivos de log de transações adicionais a esse banco de dados para atualizá-lo. "/>
					<Setting Key2="Type=NewLine" Key3="2"/>
					<Setting Text="Informações do banco de dados: " Key2="FontStyle=Bold"/>
					<Setting Text="O controlador de domínio selecionado é: {1}" S1="%DC%" Key3="3"/>
					<Setting Text="O servidor selecionado é: {1}" S1="%Server%" Key3="4"/>
					<Setting Text="O grupo de armazenamento selecionado é: {1}" S1="%SelectedSG%" Key3="5"/>
					<Setting Text="O banco de dados selecionado é: {1}" S1="%SelectedDB%" Key3="6"/>
					<Setting Text="A assinatura do banco de dados é: {1}" S1="%DBHeader[DBSignature]%" Key3="7"/>
					<Setting Text="A assinatura do log é: {1}" S1="%DBHeader[LogSignature]%" Key3="8"/>
					<Setting Key2="Type=NewLine" Key3="9"/>
					<Setting Text="Solução: " Key2="FontStyle=Bold,ForeColor=Black">
						<Rule Name="SolutionRule" Text="Solução: "/>
					</Setting>
					<Setting Text="Talvez você não consiga montar esse banco de dados, mesmo que ele esteja no estado de 'Desligamento Normal', se outro banco de dados do mesmo grupo de armazenamento exigir recuperação. Execute esta ferramenta em todos os bancos de dados do grupo de armazenamento para garantir que cada banco de dados esteja em um estado de 'Desligamento Normal'. Se todos os bancos de dados estiverem em um estado de 'Desligamento Normal' e o Erro -1216 estiver ocorrendo, consulte o artigo 296843 da Base de Dados de Conhecimento da Microsoft em http://go.microsoft.com/fwlink/?linkid=3052&amp;kbid=296843." Key2="Type=NoLineFeed">
						<Rule Name="InstructionRule" Text="Talvez você não consiga montar esse banco de dados, mesmo que ele esteja em um estado de 'Desligamento Normal', se outro banco de dados do mesmo grupo de armazenamento exigir recuperação. Execute esta ferramenta em todos os bancos de dados do grupo de armazenamento para garantir que cada banco de dados esteja em um estado de 'Desligamento Normal'. Se todos os bancos de dados estiverem em um estado de 'Desligamento Normal' e o Erro -1216 estiver ocorrendo, consulte o artigo 296843 da Base de Dados de Conhecimento da Microsoft em http://go.microsoft.com/fwlink/?linkid=3052&amp;kbid=296843."/>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Button" Name="Copy" Position="LeftBelow" Width="100" Text="Copiar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="CleanShutdownRichTextBox" Query="ActionHandler('CleanShutdownRichTextBox', 'Copy')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Print" Position="NextTo" Scale="1" Width="100" Text="Imprimir">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="CleanShutdownRichTextBox" Query="ActionHandler('CleanShutdownRichTextBox', 'Print')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Save" Position="NextTo" Scale="1" Width="100" Text="Salvar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="CleanShutdownRichTextBox" Query="ActionHandler('CleanShutdownRichTextBox', 'Save')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="SelectAll" Position="NextTo" Scale="1" Width="100" Text="Selecionar Todos">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="CleanShutdownRichTextBox" Query="ActionHandler('CleanShutdownRichTextBox', 'SelectAll')"/>
					</Event>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar"/>
			</Object>
		</Object>
	</Object>
	<!-- Missing log files.  -->
	<Object Type="Step" Name="DisplayDirtyShutdownStep1" Title="Exibir Logs Opcionais Ausentes" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%DBHeader[Max]%" Substitution="DBMax" Display="Hide"/>
			<Setting Key1="%DBHeader[Min]%" Substitution="DBMin" Display="Hide"/>
			<Setting Key1="%DBPath%" Substitution="DBPath" Display="Hide"/>
			<Setting Key1="%SLVPath%" Substitution="SLVPath" Display="Hide"/>
			<Setting Key1="%Log[LogPrefix]%" Substitution="LogPrefix" Display="Hide"/>
			<Setting Key1="%Log[MinLogFileName]%" Substitution="Log[MinLogFileName]" Display="Hide"/>
			<Setting Key1="%Log[MaxLogFileNameExpanded]%" Substitution="Log[MaxLogFileNameExpanded]" Display="Hide"/>
			<Setting Key1="%Log[MissingLogFiles]%" Substitution="Log[MissingLogFiles]" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
			<Setting Key1="%SelectedDB%" Substitution="SelectedDB" Display="Hide"/>
			<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>
			<Object Type="Information" Hide="%varContinueRun%" HelpId="html\e4e29f08-6579-4f59-acbb-ff52d6704a1d.htm">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados da Análise"/>
				<Object Type="If" Name="TextString" Key1="true()">
					<Setting Key1="if(%IsE12%=0, get-formatted-attribute(@Text), get-formatted-attribute(@Title))" Text="2. Mova {0} e {1} para a pasta temporária." Title="2. Mova {0} para a pasta temporária." S0="%DBPath%" S1="%SLVPath%" Substitution="Item2String" Display="Hide"/>
					<Object Type="RichTextBox" Name="DirtyShutdown1RichTextBox" Position="Below" LineSpace="2" Height="450" Width="FullWidth">
						<Setting Text="Resultados da análise: {1}" S1="%SelectedDB%" Key2="Font=Title"/>
						<Setting Text="O status do banco de dados é 'Desligamento Anormal'" Key2="Font=Title,FontStyle=Bold,ForeColor=Black"/>
						<Setting Key2="Type=NewLine" Key3="1"/>
						<Setting Text="Detalhes: " Key2="FontStyle=Bold,ForeColor=Black"/>
						<Setting Text="Os arquivos de log de transações necessários para recuperar com êxito esse banco de dados para o ponto em que estava ao ser executado pela última vez estão disponíveis. No entanto, estão faltando arquivos de log adicionais que possam ser usados para avançar o banco de dados a partir desse ponto. Mesmo que você não encontre cópias dos arquivos de log ausentes, poderá recuperar o banco de dados seguindo as instruções abaixo. A recuperação do banco de dados sem os arquivos de log ausentes resultará na perda dos dados contidos nos logs."/>
						<Setting Key2="Type=NewLine" Key3="2"/>
						<Setting Text="Informações do banco de dados: " Key2="FontStyle=Bold,ForeColor=Black"/>
						<Setting Text="O controlador de domínio selecionado é: {1}" S1="%DC%" Key3="3"/>
						<Setting Text="O servidor selecionado é: {1}" S1="%Server%" Key3="4"/>
						<Setting Text="O grupo de armazenamento selecionado é: {1}" S1="%SelectedSG%" Key3="5"/>
						<Setting Text="O banco de dados é: {1}" S1="%SelectedDB%" Key3="6"/>
						<Setting Text="O menor arquivo de log necessário é: {1}" S1="%DBMin%" Key3="7"/>
						<Setting Text="O maior arquivo de log necessário é: {1}" S1="%DBMax%" Key3="8"/>
						<Setting Text="O menor arquivo de log encontrado no diretório de log é: {1}" S1="%Log[MinLogFileName]%" Key3="9"/>
						<Setting Text="O maior arquivo de log encontrado no diretório de log é: {1}" S1="%Log[MaxLogFileNameExpanded]%" Key3="10"/>
						<Setting Text="Arquivos de log ausentes ou incompatíveis são: {1}" S1="%Log[MissingLogFiles]%" Key2="ForeColor=Red" Key3="11"/>
						<Setting Key2="Type=NewLine" Key3="12"/>
						<Setting Text="Solução: " Key2="FontStyle=Bold,ForeColor=Black">
							<Rule Text="Solução: "/>
						</Setting>
						<Setting Text="Para recuperar esse banco de dados até o número de seqüência {1}:" S1="%DBMax%" Key3="13">
							<Rule Text="Para recuperar esse banco de dados até o número de seqüência {1}:" S1="%DBMax%"/>
						</Setting>

						<Setting Text="1. Crie uma pasta de recuperação temporária na unidade em que os arquivos do banco de dados existem atualmente. Ela pode ser uma subpasta do diretório de banco de dados, por exemplo, {1}" S1="C:\Databases\Database-RECOVERY.">
							<Rule Text="1. Crie uma pasta de recuperação temporária na unidade em que os arquivos do banco de dados existem atualmente. Pode ser uma subpasta do diretório de bancos de dados, por exemplo, C:\Databases\Database-RECOVERY."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="14"/>
						<Setting Text="IMPORTANTE: " Key2="ForeColor=Red" Key3="35">
							<Rule Text="IMPORTANTE: "/>
						</Setting>
						<Setting Text="A pasta de recuperação temporária deve estar vazia neste ponto. Não deve haver arquivos de log de bancos de dados ou de transações de outras recuperações na pasta.">
							<Rule Text="A pasta de recuperação temporária deve estar vazia neste ponto. Não deve haver arquivos de log de bancos de dados ou de transações de outras recuperações na pasta."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="15"/>
						<Setting Text="{1}" S1="%Item2String%" Key3="16">
							<Rule Text="{1}" S1="%Item2String%"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="17"/>
						<Setting Text="3. Copie para a pasta temporária os arquivos de log que contêm números de seqüência de {0} a {1}." S0="%DBMin%" S1="%DBMax%" Key3="18">
							<Rule Text="3. Copie para a pasta temporária os arquivos de log que contêm números de seqüência de {0} a {1}." S0="%DBMin%" S1="%DBMax%"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="19"/>
						<Setting Text="4. Se houver outros arquivos de log de transações em seqüência ininterrupta após {0}, você poderá copiar também esses arquivos de log de transações para a pasta temporária para recuperar dados adicionais." S0="%DBMax%" Key3="20">
							<Rule Text="4. Se houver outros arquivos de log em seqüência ininterrupta após {0}, você poderá copiar também esses arquivos de log de transações para a pasta temporária para recuperar dados adicionais." S0="%DBMax%"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="21"/>
						<Setting Text="5. Abra uma janela de prompt de comando e altere o diretório padrão para a pasta temporária (por exemplo, {1})." S1="CD /D C:\Databases\Database-RECOVERY">
							<Rule Text="5. Abra uma janela de prompt de comando e altere o diretório padrão para a pasta temporária (por exemplo, CD /D C:\Databases\Database-RECOVERY)."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="22"/>
						<Setting Text="6. Se o arquivo de log de transações gerado mais recentemente na pasta temporária ainda não for chamado de {0}.LOG, renomeie-o para {1}.LOG." S0="%LogPrefix%" S1="%LogPrefix%" Key3="23">
							<Rule Text="6. Se o arquivo de log de transações gerado mais recentemente na pasta temporária ainda não for chamado de {0}.LOG, renomeie-o para {1}.LOG." S0="%LogPrefix%" S1="%LogPrefix%"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="24"/>
						<Setting Text="7. Execute este comando {1} de dentro da pasta temporária: " S1="Eseutil.exe">
							<Rule Text="7. Execute este comando {1} de dentro da pasta temporária: " S1="Eseutil.exe"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="25"/>
						<Setting Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /R %LogPrefix% /I /D" Key3="26">
							<Rule Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /R %LogPrefix% /I /D"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="27"/>
						<Setting Text="IMPORTANTE: " Key2="ForeColor=Red" Key3="34">
							<Rule Text="IMPORTANTE: "/>
						</Setting>
						<Setting Text="Não execute este comando no diretório {1}. Execute este comando apenas no diretório que contém os arquivos de log de transações e os arquivos de banco de dados. " S1="Eseutil.exe">
							<Rule Text="Não execute este comando no diretório {1}. Execute este comando apenas no diretório que contém os arquivos de log de transações e os arquivos de banco de dados." S1="Eseutil.exe"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="28"/>
						<Setting Text="8. Verifique se o banco de dados está agora em um estado de 'Desligamento Normal'. Para fazer isso, inicie outra instância da ferramenta e selecione o modo 'Entrada Manual' ou execute o comando {1}:" S1="Eseutil.exe">
							<Rule Text="8. Verifique se o banco de dados está agora em um estado de 'Desligamento Normal'. Para fazer isso, inicie outra instância da ferramenta e selecione o modo 'Entrada Manual' ou execute este comando {1} para exibir o campo Estado do cabeçalho do banco de dados:" S1="Eseutil.exe"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="29"/>
						<Setting Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /MH %DBPath%" Key3="30">
							<Rule Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /MH %DBPath%"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="31"/>
						<Setting Text="9. Mova o banco de dados em 'Desligamento Normal' de volta para seu local original do caminho. ">
							<Rule Text="9. Mova o banco de dados em 'Desligamento Normal' de volta para seu local original."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="32"/>
						<Setting Text="10. Mova os arquivos do log de transações da pasta temporária para um local de backup seguro. Esses arquivos podem ser necessários para recuperação completa, caso seja preciso restaurar um backup online anterior deste banco de dados.">
							<Rule Text="10. Mova os arquivos do log de transações da pasta temporária para um local de backup seguro. Esses arquivos podem ser necessários para recuperação completa, caso seja preciso restaurar um backup anterior deste banco de dados."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="33"/>
						<Setting Text="Talvez seja necessário recuperar outros bancos de dados do grupo de armazenamento para que este banco de dados seja montado. Se todos os bancos de dados do grupo de armazenamento estiverem em um estado de 'Desligamento Normal' e os bancos de dados ainda não puderem ser montados devido aos erros -1216 ou -551, consulte o artigo 296843 da Base de Dados de Conhecimento da Microsoft em http://go.microsoft.com/fwlink/?linkid=3052&amp;kbid=296843." Key2="Type=NoLineFeed">
							<Rule Text="Talvez seja necessário recuperar outros bancos de dados do grupo de armazenamento para que este banco de dados seja montado. Se todos os bancos de dados do grupo de armazenamento estiverem em um estado de 'Desligamento Normal' e os bancos de dados ainda não puderem ser montados devido aos erros -1216 ou -551, consulte o artigo 296843 da Base de Dados de Conhecimento da Microsoft em http://go.microsoft.com/fwlink/?linkid=3052&amp;kbid=296843."/>
						</Setting>
					</Object>
					<Object Type="Control" SubType="Button" Name="Copy" Position="LeftBelow" Width="100" Text="Copiar">
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="DirtyShutdown1RichTextBox" Query="ActionHandler('DirtyShutdown1RichTextBox', 'Copy')"/>
						</Event>
					</Object>
					<Object Type="Control" SubType="Button" Name="Print" Position="NextTo" Scale="1" Width="100" Text="Imprimir">
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="DirtyShutdown1RichTextBox" Query="ActionHandler('DirtyShutdown1RichTextBox', 'Print')"/>
						</Event>
					</Object>
					<Object Type="Control" SubType="Button" Name="Save" Position="NextTo" Scale="1" Width="100" Text="Salvar">
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="DirtyShutdown1RichTextBox" Query="ActionHandler('DirtyShutdown1RichTextBox', 'Save')"/>
						</Event>
					</Object>
					<Object Type="Control" SubType="Button" Name="SelectAll" Position="NextTo" Scale="1" Width="100" Text="Selecionar Todos">
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="DirtyShutdown1RichTextBox" Query="ActionHandler('DirtyShutdown1RichTextBox', 'SelectAll')"/>
						</Event>
					</Object>

					<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="LeftBelow" Text="Anterior"/>
					<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar"/>
				</Object>
			</Object>
		</Object>
	</Object>
	<!-- Missing log files and required log files.  -->
	<Object Type="Step" Name="DisplayDirtyShutdownStep2" Title="Exibir Logs Ausentes" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%DBHeader[Min]%" Substitution="DBHeader[Min]" Display="Hide"/>
			<Setting Key1="%DBHeader[Max]%" Substitution="DBHeader[Max]" Display="Hide"/>
			<Setting Key1="%Log[MinLogFileName]%" Substitution="Log[MinLogFileName]" Display="Hide"/>
			<Setting Key1="%Log[MaxLogFileNameExpanded]%" Substitution="Log[MaxLogFileNameExpanded]" Display="Hide"/>
			<Setting Key1="%Log[MissingLogFiles]%" Substitution="Log[MissingLogFiles]" Display="Hide"/>
			<Setting Key1="%Log[MissingRequiredLogs]%" Substitution="Log[MissingRequiredLogs]" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
			<Setting Key1="%SelectedDB%" Substitution="SelectedDB" Display="Hide"/>
			<Object Type="Information" Hide="%varContinueRun%" HelpId="html\42008975-92f9-4051-9012-33ea2709d9dc.htm">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados da Análise"/>
				<Object Type="RichTextBox" Name="DirtyShutdown2RichTextBox" Position="Below" LineSpace="2" Height="450" Width="FullWidth" Display="Hide">
					<Setting Text="Resultados da análise: {1}" S1="%SelectedDB%" Key2="Font=Title"/>
					<Setting Text="O status do banco de dados é 'Desligamento Anormal'" Key2="Font=Title,FontStyle=Bold,ForeColor=Black"/>
					<Setting Key2="Type=NewLine" Key3="1"/>
					<Setting Text="Detalhes: " Key2="FontStyle=Bold,ForeColor=Black"/>
					<Setting Text="Há arquivos de log ausentes ou incompatíveis. "/>
					<Setting Key2="Type=NewLine" Key3="2"/>
					<Setting Text="Informações do banco de dados: " Key2="FontStyle=Bold,ForeColor=Black"/>
					<Setting Text="O controlador de domínio é: {1}" S1="%DC%" Key3="3"/>
					<Setting Text="O servidor é: {1}" S1="%Server%" Key3="4"/>
					<Setting Text="O grupo de armazenamento é: {1}" S1="%SelectedSG%" Key3="5"/>
					<Setting Text="O banco de dados é: {1}" S1="%SelectedDB%" Key3="6"/>
					<Setting Text="O menor arquivo de log necessário é: {1}" S1="%DBHeader[Min]%" Key3="7"/>
					<Setting Text="O maior arquivo de log necessário é: {1}" S1="%DBHeader[Max]%" Key3="8"/>
					<Setting Text="O menor arquivo de log encontrado no diretório de log é: {1}" S1="%Log[MinLogFileName]%" Key3="9"/>
					<Setting Text="O maior arquivo de log encontrado no diretório de log é: {1}" S1="%Log[MaxLogFileNameExpanded]%" Key3="10"/>
					<Setting Text="Arquivos de log opcionais ausentes ou incompatíveis: {1}" S1="%Log[MissingLogFiles]%" Key2="ForeColor=Red" Key3="11"/>
					<Setting Text="Arquivos de log ausentes ou incompatíveis: {1}" S1="%Log[MissingRequiredLogs]%" Key2="ForeColor=Red" Key3="12"/>
					<Setting Key2="Type=NewLine" Key3="13"/>
					<Setting Text="Solução: " Key2="FontStyle=Bold,ForeColor=Black">
						<Rule Text="Solução: "/>
					</Setting>
					<Setting Text="Os problemas com os arquivos de log relacionados acima devem ser resolvidos para que este banco de dados possa ser recuperado." Key2="Type=NoLineFeed">
						<Rule Text="Os problemas com os arquivos de log relacionados acima devem ser resolvidos para que este banco de dados possa ser recuperado."/>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Button" Name="Copy" Position="LeftBelow" Width="100" Text="Copiar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DirtyShutdown2RichTextBox" Query="ActionHandler('DirtyShutdown2RichTextBox', 'Copy')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Print" Position="NextTo" Scale="1" Width="100" Text="Imprimir">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DirtyShutdown2RichTextBox" Query="ActionHandler('DirtyShutdown2RichTextBox', 'Print')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Save" Position="NextTo" Scale="1" Width="100" Text="Salvar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DirtyShutdown2RichTextBox" Query="ActionHandler('DirtyShutdown2RichTextBox', 'Save')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="SelectAll" Position="NextTo" Scale="1" Width="100" Text="Selecionar Todos">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DirtyShutdown2RichTextBox" Query="ActionHandler('DirtyShutdown2RichTextBox', 'SelectAll')"/>
					</Event>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar"/>
			</Object>
		</Object>
	</Object>
	<!-- Missing required log files.  -->
	<Object Type="Step" Name="DisplayDirtyShutdownStep3" Title="Exibir Logs Necessários Ausentes" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
			<Setting Key1="%SelectedDB%" Substitution="SelectedDB" Display="Hide"/>
			<Setting Key1="%DBHeader[Min]%" Substitution="DBHeader[Min]" Display="Hide"/>
			<Setting Key1="%DBHeader[Max]%" Substitution="DBHeader[Max]" Display="Hide"/>
			<Setting Key1="%Log[MinLogFileName]%" Substitution="Log[MinLogFileName]" Display="Hide"/>
			<Setting Key1="%Log[MaxLogFileNameExpanded]%" Substitution="Log[MaxLogFileNameExpanded]" Display="Hide"/>
			<Setting Key1="%Log[MissingRequiredLogs]%" Substitution="Log[MissingRequiredLogs]" Display="Hide"/>
			<Object Type="Information" Hide="%varContinueRun%" HelpId="html\a3617b61-6480-4db7-8b85-735abd0b2864.htm">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados da Análise"/>
				<Object Type="RichTextBox" Name="DirtyShutdown3RichTextBox" Position="Below" LineSpace="2" Height="450" Width="FullWidth" Display="Hide">
					<Setting Text="Resultados da análise: {1}" S1="%SelectedDB%" Key2="Font=Title"/>
					<Setting Text="O status do banco de dados é 'Desligamento Anormal'" Key2="Font=Title,FontStyle=Bold,ForeColor=Black"/>
					<Setting Key2="Type=NewLine" Key3="1"/>
					<Setting Text="Detalhes: " Key2="FontStyle=Bold,ForeColor=Black"/>
					<Setting Text="Há arquivos de log ausentes ou incompatíveis. "/>
					<Setting Key2="Type=NewLine" Key3="2"/>
					<Setting Text="Informações do banco de dados: " Key2="FontStyle=Bold,ForeColor=Black"/>
					<Setting Text="O controlador de domínio selecionado é: {1}" S1="%DC%" Key3="3"/>
					<Setting Text="O servidor selecionado é: {1}" S1="%Server%" Key3="4"/>
					<Setting Text="O grupo de armazenamento selecionado é: {1}" S1="%SelectedSG%" Key3="5"/>
					<Setting Text="O banco de dados selecionado é: {1}" S1="%SelectedDB%" Key3="6"/>
					<Setting Text="O menor arquivo de log necessário é: {1}" S1="%DBHeader[Min]%" Key3="7"/>
					<Setting Text="O maior arquivo de log necessário é: {1}" S1="%DBHeader[Max]%" Key3="8"/>
					<Setting Text="O menor arquivo de log encontrado no diretório de log é: {1}" S1="%Log[MinLogFileName]%" Key3="9"/>
					<Setting Text="O maior arquivo de log encontrado no diretório de log é: {1}" S1="%Log[MaxLogFileNameExpanded]%" Key3="10"/>
					<Setting Text="Arquivos de log ausentes ou incompatíveis: {1}" S1="%Log[MissingRequiredLogs]%" Key2="ForeColor=Red" Key3="11"/>
					<Setting Key2="Type=NewLine" Key3="12"/>
					<Setting Text="Solução: " Key2="FontStyle=Bold,ForeColor=Black">
						<Rule Text="Solução: "/>
					</Setting>
					<Setting Text="Os problemas com os arquivos de log relacionados acima devem ser resolvidos para que este banco de dados possa ser recuperado." Key2="Type=NoLineFeed">
						<Rule Text="Os problemas com os arquivos de log relacionados acima devem ser resolvidos para que este banco de dados possa ser recuperado."/>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Button" Name="Copy" Position="LeftBelow" Width="100" Text="Copiar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DirtyShutdown3RichTextBox" Query="ActionHandler('DirtyShutdown3RichTextBox', 'Copy')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Print" Position="NextTo" Scale="1" Width="100" Text="Imprimir">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DirtyShutdown3RichTextBox" Query="ActionHandler('DirtyShutdown3RichTextBox', 'Print')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Save" Position="NextTo" Scale="1" Width="100" Text="Salvar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DirtyShutdown3RichTextBox" Query="ActionHandler('DirtyShutdown3RichTextBox', 'Save')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="SelectAll" Position="NextTo" Scale="1" Width="100" Text="Selecionar Todos">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DirtyShutdown3RichTextBox" Query="ActionHandler('DirtyShutdown3RichTextBox', 'SelectAll')"/>
					</Event>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar"/>
			</Object>
		</Object>
	</Object>
	<!-- All log files present.  -->
	<Object Type="Step" Name="DisplayDirtyShutdownStep4" Title="Exibir Todos os Logs Presentes" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
			<Setting Key1="%SelectedDB%" Substitution="SelectedDB" Display="Hide"/>
			<Setting Key1="%DBPath%" Substitution="DBPath" Display="Hide"/>
			<Setting Key1="%SLVPath%" Substitution="SLVPath" Display="Hide"/>
			<Setting Key1="%DBHeader[Min]%" Substitution="DBMin" Display="Hide"/>
			<Setting Key1="%Log[LogPrefix]%" Substitution="LogPrefix" Display="Hide"/>
			<Setting Key1="%DBHeader[Max]%" Substitution="DBMax" Display="Hide"/>
			<Setting Key1="%Log[HighestRecoverableGenerationNumber]%" Substitution="HighestRecoverableGenerationNumber" Display="Hide"/>
			<Setting Key1="%Log[LogPrefix]%" Substitution="Log[LogPrefix]" Display="Hide"/>
			<Setting Key1="%Log[MinLogFileName]%" Substitution="Log[MinLogFileName]" Display="Hide"/>
			<Setting Key1="%Log[MaxLogFileNameExpanded]%" Substitution="Log[MaxLogFileNameExpanded]" Display="Hide"/>
			<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>

			<Object Type="Information" Hide="%varContinueRun%" HelpId="html\958a930d-7c3e-4794-b460-3b539accb69f.htm">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados da Análise"/>
				<Object Type="If" Name="TextString" Key1="true()">
					<Setting Key1="if(%IsE12%=0, get-formatted-attribute(@Text), get-formatted-attribute(@Title))" Text="2. Mova {0} e {1} para a pasta temporária." Title="2. Mova {0} para a pasta temporária." S0="%DBPath%" S1="%SLVPath%" Substitution="Item2String" Display="Hide"/>
					<Object Type="RichTextBox" Name="DirtyShutdown4RichTextBox" Position="Below" LineSpace="2" Height="450" Width="FullWidth" Display="Hide">
						<Setting Text="Resultados da análise: {1}" S1="%SelectedDB%" Key2="Font=Title"/>
						<Setting Text="O status do banco de dados é 'Desligamento Anormal'" Key2="Font=Title,FontStyle=Bold,ForeColor=Black"/>
						<Setting Key2="Type=NewLine" Key3="1"/>
						<Setting Text="Detalhes: " Key2="FontStyle=Bold,ForeColor=Black"/>
						<Setting Text="Todos os arquivos de log necessários para recuperar esse banco de dados estão presentes. O servidor Exchange tentará recuperar automaticamente esse banco de dados se você montá-lo. Poderão ocorrer falhas se (1) outro banco de dados do grupo de armazenamento não estiver em um estado recuperável. (2) se houver arquivos de ponto de verificação ou de log de transações ausentes ou incompatíveis. (3) se o banco de dados ou seus arquivos de log de transações estiverem danificados."/>
						<Setting Key2="Type=NewLine" Key3="2"/>
						<Setting Text="Informações do banco de dados: " Key2="FontStyle=Bold,ForeColor=Black"/>
						<Setting Text="O controlador de domínio selecionado é: {1}" S1="%DC%" Key3="3"/>
						<Setting Text="O servidor selecionado é: {1}" S1="%Server%" Key3="4"/>
						<Setting Text="O grupo de armazenamento selecionado é: {1}" S1="%SelectedSG%" Key3="5"/>
						<Setting Text="O banco de dados selecionado é: {1}" S1="%SelectedDB%" Key3="6"/>
						<Setting Text="O menor arquivo de log necessário é: {1}" S1="%DBMin%" Key3="7"/>
						<Setting Text="O arquivo de log máximo necessário é: {1}" S1="%DBMax%" Key3="8"/>
						<Setting Text="O menor arquivo de log encontrado no diretório de log é: {1}" S1="%Log[MinLogFileName]%" Key3="9"/>
						<Setting Text="O maior arquivo de log encontrado no diretório de log é: {1}" S1="%Log[MaxLogFileNameExpanded]%" Key3="10"/>
						<Setting Key2="Type=NewLine" Key3="11"/>
						<Setting Text="Solução: " Key2="FontStyle=Bold,ForeColor=Black">
							<Rule Text="Solução: "/>
						</Setting>
						<Setting Text="Recupere o banco de dados usando uma das estratégias a seguir. Experimente cada estratégia na ordem listada.">
							<Rule Text="Recupere o banco de dados usando uma das estratégias a seguir. Experimente cada estratégia na ordem listada."/>
						</Setting>
						<Setting Text="1. Monte o banco de dados.">
							<Rule Text="1. Monte o banco de dados."/>
						</Setting>
						<Setting Text="2. Recupere manualmente o banco de dados in-loco.">
							<Rule Text="2. Recupere manualmente o banco de dados in-loco."/>
						</Setting>
						<Setting Text="3. Recupere manualmente o banco de dados fora do local.">
							<Rule Text="3. Recupere manualmente o banco de dados fora do local."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="12"/>
						<Setting Text="MONTAR O BANCO DE DADOS" Key2="ForeColor=Red">
							<Rule Text="MONTAR O BANCO DE DADOS"/>
						</Setting>
						<Setting Text="O Exchange Server executará automaticamente a recuperação conforme for necessário quando um banco de dados for montado. Você deve recuperar um banco de dados manualmente apenas se a recuperação automática não puder ser concluída.">
							<Rule Text="O Exchange Server executará automaticamente a recuperação conforme for necessário quando um banco de dados for montado. Você deve recuperar um banco de dados manualmente apenas se a recuperação automática não puder ser concluída."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="13"/>
						<Setting Text="RECUPERAR MANUALMENTE O BANCO DE DADOS IN-LOCO" Key2="ForeColor=Red">
							<Rule Text="RECUPERAR MANUALMENTE O BANCO DE DADOS IN-LOCO"/>
						</Setting>
						<Setting Text="Você pode usar {1} para recuperar manualmente um banco de dados. A recuperação manual in-loco é executada simultaneamente para todos os bancos de dados do grupo de armazenamento. Para executar uma recuperação in-loco com {1}:" S1="Eseutil.exe">
							<Rule Text="Você pode usar {1} para recuperar manualmente um banco de dados. A recuperação manual in-loco é executada simultaneamente para todos os bancos de dados do grupo de armazenamento. Para executar uma recuperação in-loco com {1}:" S1="Eseutil.exe"/>
						</Setting>
						<Setting Text="1. Copie todos os arquivos existentes do log de transações para um local de backup seguro. A recuperação manual pode alterar o log de transações atual de maneira que os bancos de dados ausentes ou os backups anteriores não possam ser restaurados. As cópias de backup dos arquivos de log podem ser necessárias para a recuperação completa de backups ou de bancos de dados ausentes.">
							<Rule Text="1. Copie todos os arquivos existentes do log de transações para um local de backup seguro. A recuperação manual pode alterar o log de transações atual de maneira que os bancos de dados ausentes ou os backups anteriores não possam ser restaurados. As cópias de backup dos arquivos de log podem ser necessárias para a recuperação completa de backups ou de bancos de dados ausentes."/>
						</Setting>
						<Setting Text="2. Abra uma janela de prompt de comando e altere o diretório padrão para o diretório de arquivo de log de transações (por exemplo, {1})." S1="CD /D C:\Logs">
							<Rule Text="2. Abra uma janela de prompt de comando e altere o diretório padrão para o diretório de arquivo de log de transações (por exemplo, CD /D C:\Logs)."/>
						</Setting>
						<Setting Text="3. Execute este comando {1} de dentro da pasta do log de transações: " S1="Eseutil.exe">
							<Rule Text="3. Execute este comando {1} de dentro da pasta do log de transações: " S1="Eseutil.exe"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="14"/>
						<Setting Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /R %LogPrefix% /I " Key3="15">
							<Rule Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /R %LogPrefix% /I "/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="16"/>
						<Setting Text="IMPORTANTE: " Key2="ForeColor=Red" Key3="17">
							<Rule Text="IMPORTANTE: "/>
						</Setting>
						<Setting Text="Não execute este comando no diretório {1}. Execute este comando apenas no diretório que contém os arquivos de log de transações." S1="Eseutil.exe">
							<Rule Text="Não execute este comando no diretório {1}. Execute este comando apenas no diretório que contém os arquivos de log de transações." S1="Eseutil.exe"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="18"/>
						<Setting Text="4. Espere a recuperação ser concluída com êxito e, em seguida, monte o banco de dados.">
							<Rule Text="4. Espere a recuperação ser concluída com êxito e, em seguida, monte o banco de dados."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="19"/>
						<Setting Text="RECUPERAR MANUALMENTE O BANCO DE DADOS FORA DO LOCAL" Key2="ForeColor=Red">
							<Rule Text="RECUPERAR MANUALMENTE O BANCO DE DADOS FORA DO LOCAL"/>
						</Setting>
						<Setting Text="Você pode usar {1} para recuperar manualmente um banco de dados. Executar essa ação fora do local isola o banco de dados do restante do grupo de armazenamento para recuperar apenas ele. Isso impede que outros problemas do grupo de armazenamento interfiram na recuperação do banco de dados. Para recuperar o banco de dados fora do local com {1}: " S1="Eseutil.exe">
							<Rule Text="Você pode usar {1} para recuperar manualmente um banco de dados. Executar essa ação fora do local isola o banco de dados do restante do grupo de armazenamento para recuperar apenas ele. Isso impede que outros problemas do grupo de armazenamento interfiram na recuperação do banco de dados. Para recuperar o banco de dados fora do local com {1}: " S1="Eseutil.exe"/>
						</Setting>
						<Setting Text="1. Crie uma pasta de recuperação temporária na unidade em que os arquivos do banco de dados existem atualmente. Pode ser uma subpasta do diretório de banco de dados; por exemplo, {1}." S1="C:\Databases\Database-RECOVERY">
							<Rule Text="1. Crie uma pasta de recuperação temporária na unidade em que os arquivos do banco de dados existem atualmente. Pode ser uma subpasta do diretório de banco de dados; por exemplo, {1}." S1="C:\Databases\Database-RECOVERY"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="20"/>
						<Setting Text="IMPORTANTE: " Key2="ForeColor=Red">
							<Rule Text="IMPORTANTE: "/>
						</Setting>
						<Setting Text="A pasta de recuperação temporária deve estar vazia neste ponto. Não deve haver arquivos de log de bancos de dados ou de transações de outras recuperações na pasta. ">
							<Rule Text="A pasta de recuperação temporária deve estar vazia neste ponto. Não deve haver arquivos de log de bancos de dados ou de transações de outras recuperações na pasta. "/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="21"/>
						<Setting Text="{1}" S1="%Item2String%" Key3="22">
							<Rule Text="{1}" S1="%Item2String%"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="23"/>
						<Setting Text="3. Copie para a pasta temporária os arquivos de log que contêm números de seqüência de{0} a {1}." S0="%DBMin%" S1="%HighestRecoverableGenerationNumber%">
							<Rule Text="3. Copie para a pasta temporária os arquivos de log que contêm números de seqüência de{0} a {1}." S0="%DBMin%" S1="%HighestRecoverableGenerationNumber%"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="24"/>
						<Setting Text="4. Abra uma janela de prompt de comando e altere o diretório padrão para a pasta temporária (por exemplo, {1})." S1="CD /D C:\Databases\Database-RECOVERY">
							<Rule Text="4. Abra uma janela de prompt de comando e altere o diretório padrão para a pasta temporária (por exemplo, {1})." S1="CD /D C:\Databases\Database-RECOVERY"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="25"/>
						<Setting Text="5. Se o arquivo de log de transações gerado mais recentemente na pasta temporária ainda não for chamado de {0}.LOG, renomeie-o para {0}.LOG." S0="%LogPrefix%" Key3="26">
							<Rule Text="5. Se o arquivo de log de transações gerado mais recentemente na pasta temporária ainda não for chamado de {0}.LOG, renomeie-o para {0}.LOG." S0="%LogPrefix%"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="27"/>
						<Setting Text="6. Execute este comando {1} de dentro da pasta temporária: " S1="Eseutil.exe">
							<Rule Text="6. Execute este comando {1} de dentro da pasta temporária: " S1="Eseutil.exe"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="28"/>
						<Setting Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /R %LogPrefix% /I /D" Key3="29">
							<Rule Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /R %LogPrefix% /I /D"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="30"/>
						<Setting Text="IMPORTANTE: " Key2="ForeColor=Red" Key3="31">
							<Rule Text="IMPORTANTE: "/>
						</Setting>
						<Setting Text="Não execute este comando no diretório {1}. Execute este comando apenas no diretório que contém os arquivos de log de transações e os arquivos de banco de dados. " S1="Eseutil.exe">
							<Rule Text="Não execute este comando no diretório {1}. Execute este comando apenas no diretório que contém os arquivos de log de transações e os arquivos de banco de dados." S1="Eseutil.exe"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="32"/>
						<Setting Text="7. Verifique se o banco de dados está agora em um estado de 'Desligamento Normal'. Para fazer isso, inicie outra instância da ferramenta e selecione o modo 'Entrada Manual' ou execute o comando {1}:" S1="Eseutil.exe">
							<Rule Text="7. Verifique se o banco de dados está agora em um estado de 'Desligamento Normal'. Para fazer isso, inicie outra instância da ferramenta e selecione o modo 'Entrada Manual' ou execute este comando {1} para exibir o campo Estado do cabeçalho do banco de dados:" S1="Eseutil.exe"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="33"/>
						<Setting Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /MH %DBPath%" Key3="34">
							<Rule Text="  {1}" S1="C:\Exchsrvr\bin\eseutil.exe /MH %DBPath%"/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="35"/>
						<Setting Text="8. Mova o banco de dados em 'Desligamento Normal' de volta para seu local original do caminho.">
							<Rule Text="8. Mova o banco de dados em 'Desligamento Normal' de volta para seu local original."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="36"/>
						<Setting Text="9. Mova os arquivos do log de transações da pasta temporária para um local de backup seguro. Esses arquivos podem ser necessários para recuperação completa, caso seja preciso restaurar um backup online anterior deste banco de dados.">
							<Rule Text="9. Mova os arquivos do log de transações da pasta temporária para um local de backup seguro. Esses arquivos podem ser necessários para recuperação completa, caso seja preciso restaurar um backup anterior deste banco de dados."/>
						</Setting>
						<Setting Key2="Type=NewLine" Key3="37"/>
						<Setting Text="Talvez seja necessário recuperar outros bancos de dados do grupo de armazenamento para que este banco de dados seja montado. Se todos os bancos de dados do grupo de armazenamento estiverem em um estado de 'Desligamento Normal' e os bancos de dados ainda não puderem ser montados devido aos erros -1216 ou -551, consulte o artigo 296843 da Base de Dados de Conhecimento da Microsoft em http://go.microsoft.com/fwlink/?linkid=3052&amp;kbid=296843." Key2="Type=NoLineFeed">
							<Rule Text="Talvez seja necessário recuperar outros bancos de dados do grupo de armazenamento para que este banco de dados seja montado. Se todos os bancos de dados do grupo de armazenamento estiverem em um estado de 'Desligamento Normal' e os bancos de dados ainda não puderem ser montados devido aos erros -1216 ou -551, consulte o artigo 296843 da Base de Dados de Conhecimento da Microsoft em http://go.microsoft.com/fwlink/?linkid=3052&amp;kbid=296843."/>
						</Setting>
					</Object>
					<Object Type="Control" SubType="Button" Name="Copy" Position="LeftBelow" Width="100" Text="Copiar">
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="DirtyShutdown4RichTextBox" Query="ActionHandler('DirtyShutdown4RichTextBox', 'Copy')"/>
						</Event>
					</Object>
					<Object Type="Control" SubType="Button" Name="Print" Position="NextTo" Scale="1" Width="100" Text="Imprimir">
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="DirtyShutdown4RichTextBox" Query="ActionHandler('DirtyShutdown4RichTextBox', 'Print')"/>
						</Event>
					</Object>
					<Object Type="Control" SubType="Button" Name="Save" Position="NextTo" Scale="1" Width="100" Text="Salvar">
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="DirtyShutdown4RichTextBox" Query="ActionHandler('DirtyShutdown4RichTextBox', 'Save')"/>
						</Event>
					</Object>
					<Object Type="Control" SubType="Button" Name="SelectAll" Position="NextTo" Scale="1" Width="100" Text="Selecionar Todos">
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="DirtyShutdown4RichTextBox" Query="ActionHandler('DirtyShutdown4RichTextBox', 'SelectAll')"/>
						</Event>
					</Object>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="LeftBelow" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar"/>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="CheckConnectivityStep" Title="Verificar Conectividade" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%DCName%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Object Type="Progress" Title="Verificando a Conectividade com o Active Directory e o Exchange Server" Text="Aguarde enquanto esta ferramenta verifica a conectividade e valida as credenciais.">
				<Object Type="Group" Name="Check connectivity and retrieve database information">
					<Object Type="Group" Name="Check DC connectivity, and EXLOGON against the DC">
						<Setting Key1="Rule">
							<Rule Name="fDCInvalid" Query="not($fDCAlive)" Title="Não é possível entrar em contato com o controlador de domínio" Text="Não é possível entrar em contato com o controlador de domínio especificado '{0}' ou ele não é um controlador de domínio." S0="%DC%" AlwaysEvaluate="True" Error="Error"/>
							<Rule Name="fEXLOGONInvalid1" Query="not($fDCInvalid or $szExchangeContainerCN)" Title="Credenciais inválidas" Text="As credenciais fornecidas não têm direitos para ler informações de configuração do Exchange a partir do controlador de domínio {0}." S0="%DC%" AlwaysEvaluate="True" Error="Error"/>
						</Setting>
						<Object Type="Port" Name="Port 389" Key1="%DC%">
							<Setting Key1="389" Substitution="PORT389_RESPONSE">
								<Rule Name="fDCAlive" Query="($.[2]='389 Available')"/>
							</Setting>
							<Object Type="If" Key1="contains('%PORT389_RESPONSE%','389 Available')">
								<Object Type="Directory" Key1="%DC%" Name="cn">
									<Setting Key1="configurationNamingContext" Substitution="CONFIGDN"/>
									<Object Type="Directory" Key2="cn=Microsoft Exchange,cn=Services,%CONFIGDN%" SecurityContext="EXLOGON">
										<Setting Key1="cn">
											<Rule Name="szExchangeContainerCN" Query="$."/>
										</Setting>
										<Object Type="Cache" Name="Suitability" Key1="Add" Key2="DCLDP" Key3="true" Display="Hide"/>
									</Object>
								</Object>
							</Object>
						</Object>
					</Object>
					<Object Type="Group" Name="Check Exchange connectivity">
						<Setting Key1="Rule">
							<Rule Name="fEXInvalid" Query="not($fEPAlive)" Title="Não é possível entrar em contato com o servidor Exchange" Text="Não é possível entrar em contato com o servidor especificado '{0}'." S0="%EXSERVER%" AlwaysEvaluate="True" Error="Error"/>
						</Setting>
						<Object Type="Port" Name="DCE Endpoint Mapper" Key1="%EXSERVER%">
							<Setting Key1="135" Substitution="PORT135_RESPONSE">
								<Rule Name="fEPAlive" Query="($.[2]='135 Available')"/>
							</Setting>
							<Object Type="If" Key1="contains('%PORT135_RESPONSE%','135 Available')">
								<Object Type="Cache" Name="Suitability" Key1="Add" Key2="EXRPC" Key3="true" Display="Hide"/>
							</Object>
						</Object>
					</Object>
					<Object Type="Group" Name="Check Exchange Suitability" SecurityContext="EXLOGON">
						<Setting Key1="Rule">
							<Rule Name="fEXLOGONInvalid2" Query="not($fEXInvalid or $szCTExWinVer)" Title="Credenciais inválidas" Text="As credenciais fornecidas não têm direitos para acessar a seção do Registro do servidor {0}." S0="%EXSERVER%" AlwaysEvaluate="True" Error="Error"/>
							<Rule Name="fEXSERVERInvalid" Query="not($fEXInvalid or $fEXLOGONInvalid2 or $szMSExchangeISPath)" Title="Não é um servidor de banco de dados do Exchange" Text="O servidor especificado '{0}' não parece estar configurado para bancos de dados do Exchange." S0="%EXSERVER%" AlwaysEvaluate="True" Error="Error"/>
						</Setting>
						<Object Type="Registry" Key1="%EXSERVER%" Key3="Software\Microsoft\Windows NT\CurrentVersion">
							<Setting Key1="CurrentVersion">
								<Rule Name="szCTExWinVer" Query="$."/>
							</Setting>
							<Object Type="Cache" Name="Suitability" Key1="Add" Key2="EXREG" Key3="true" Display="Hide"/>
						</Object>
						<Object Type="Registry" Key1="%EXSERVER%" Key3="System\CurrentControlSet\Services\MSExchangeIS">
							<Setting Key1="__KEYPATH">
								<Rule Name="szMSExchangeISPath" Query="$."/>
							</Setting>
							<Object Type="Cache" Name="Suitability" Key1="Add" Key2="EXIS" Key3="true" Display="Hide"/>
						</Object>
					</Object>
					<Object Type="Cache" Name="Suitability" Key1="Dump" Key2="DCLDP" Display="Hide">
						<Object Type="Cache" Name="Suitability" Key1="Dump" Key2="EXRPC" Display="Hide">
							<Object Type="Cache" Name="Suitability" Key1="Dump" Key2="EXREG" Display="Hide">
								<Object Type="Cache" Name="Suitability" Key1="Dump" Key2="EXIS" Display="Hide">
									<Object Type="Cache" Name="Suitability" Key1="Add" Key2="Suitable" Key3="true" Display="Hide"/>
								</Object>
							</Object>
						</Object>
					</Object>
					<Object Type="Cache" Name="Suitability" Key1="Dump" Key2="Suitable" Display="Hide">

						<Object Type="Group" Name="Exchange Server Information">
							<Rule Name="fCheckConnectivityOK" Query="true()" Text="A conectividade foi verificada." Error="Information">
								<Variable Name="CheckConnectivity" Scope="Children"/>
							</Rule>

							<!-- We will link type files to here -->

							<!-- Get MountPoint and LogicalDisk Info -->
							<Object Type="Group" Name="Get Disk Info" SecurityContext="EXLOGON">
								<Setting Key1="Mountpoint Check">
									<Rule Name="fMountpointsExist" Query="count($fMountPoint) &gt;0" AlwaysEvaluate="True" Text="Este servidor usa pontos de montagem." Error="Information"/>
									<Rule Name="szNotMountpointsText" Query="not($fMountpointsExist)" Text="Este servidor não usa pontos de montagem." AlwaysEvaluate="True" Error="Information"/>
								</Setting>

								<Object Type="WMI" Key1="%EXSERVER%" Key3="Win32_Volume">
									<Setting Key1="Name" Format="\\$----" Substitution="DriveName">
										<Rule Name="fMountPoint" Query="string-length($.) &gt;3 and substring($., 2,1)=':'"/>
										<Rule Name="szPackName" Query="if($fMountPoint, pack($.))"/>
									</Setting>
									<Setting Key1="FreeSpace">
										<Rule Name="iFreeDiskSpace" Query="if($fMountPoint, roundto(($. div (1024*1024*1024)), 3))" Text="O espaço livre no volume ({2}) é de {1} GB." P1="roundto(($. div (1024*1024*1024)), 3)" S2="%DriveName%" Error="Information">
											<Variable Name="DiskInfo[%DriveName%][FreeSpace]" Scope="Children"/>
										</Rule>
									</Setting>
								</Object>
								<Object Type="WMI" Key1="%EXSERVER%" Key3="Win32_LogicalDisk">
									<Setting Key1="Name" Format="\\$----" Substitution="LogicalName">
										<Rule Name="szLogicalDeviceID" Query="$."/>
										<Rule Name="szPackLogicalName" AlwaysEvaluate="True" Query="if(not($fMountpointsExist[1]), pack($.))"/>
									</Setting>
									<Setting Key1="DriveType">
										<Rule Name="fDiskFixed" Query="$.=3"/>
									</Setting>
									<Setting Key1="FreeSpace">
										<Rule Name="iFreeLogicalDiskSpace" Query="if($szPackLogicalName, roundto(($. div (1024*1024*1024)), 3))" Text="O espaço livre no disco lógico ({2}) é de {1} GB." P1="roundto(($. div (1024*1024*1024)), 3)" S2="%LogicalName%" Error="Information">
											<Variable Name="DiskInfo[%LogicalName%][FreeSpace]" Scope="Children"/>
										</Rule>
									</Setting>
								</Object>
								<Rule Name="szAllDisks" Query="concat(join('', $szPackName), join('', $szPackLogicalName))" AlwaysEvaluate="True">
									<Variable Name="AllDrives" Scope="Children"/>
								</Rule>
							</Object>

							<!-- Get Local machine name -->
							<Object Type="GetComputerNameEx" Name="Local Machine">
								<Setting Key1="ComputerNameNetBIOS">
									<Rule Name="szLocalMachineName" Query="upper-case($.)">
										<Variable Name="LocalMachineName" Scope="Children"/>
									</Rule>
								</Setting>
							</Object>

							<!-- Detect Exchange Server Version.  -->
							<Object Type="Registry" Key1="%EXSERVER%" Key3="Software\Microsoft\Exchange\v8.0" SecurityContext="EXLOGON">
								<Object Type="Group">
									<Rule Name="fE12" Query="true()"/>
								</Object>
							</Object>
							<Rule Name="fIsE12" Query="if($fE12, 1, 0)" AlwaysEvaluate="True">
								<Variable Name="IsE12" Scope="Children"/>
							</Rule>
							<Rule Name="szLogPattern" Query="if($fE12, '????????.log', '?????.log')" AlwaysEvaluate="True">
								<Variable Name="LogPattern" Scope="Children"/>
							</Rule>
						</Object>
					</Object>
					<Rule Name="szPreviousStepName" Query="'CheckConnectivityStep'">
						<Variable Name="PreviousStepName" Scope="Children"/>
					</Rule>
					<Rule Name="fDispatchFail" Query="not ($fCheckConnectivityOK)" NextStep="DisplayCheckConnectivityResultStep" AlwaysEvaluate="True"/>
					<Rule Name="fDispatchOk" Query="$fCheckConnectivityOK" NextStep="GetDBInfoFromADStep" AlwaysEvaluate="True"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="DisplayCheckConnectivityResultStep" Title="Exibir Resultados da Conectividade da Verificação" Display="Hide">
		<Object Type="Variable" Name="Get Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%PreviousStepName%" Substitution="PreviousStepName" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%CheckConnectivity%" Substitution="CheckResult" Display="Hide"/>
			<Setting Key1="%varContinueRun%" Substitution="varContinueRun" Display="Hide"/>
			<Object Type="Information" Hide="%varContinueRun%">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados da Conectividade da Verificação"/>
				<Object Type="Control" SubType="Label" Name="Label" Position="Below" Text="Nome do servidor: %Server%"/>

				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" Width="FullWidth" Height="400">
					<Report Title="Erros de Conectividade" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Error']"/>
					<Report Title="Avisos de Conectividade" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Warning']"/>
					<Report Title="Informações de Conectividade" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Information' or not (@Error)]"/>
				</Object>

				<Object Type="Control" SubType="Link" Position="Below" Name="Previous" Text="Anterior"/>
				<Object Type="If" Name="IfName" Key1="%CheckResult%=1">
					<Object Type="Control" SubType="Link" Position="NextTo" Percent="30" Name="Next" Text="Coletar informações do banco de dados do Active Directory" NextStep="GetDBInfoFromADStep"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="GetDBInfoFromADStep" Title="Recuperar Informações do Active Directory" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%DCName%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%AllDrives%" Substitution="AllDrives" Display="Hide"/>
			<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>
			<Object Type="Progress" Title="Lendo Informações do Exchange Server do Active Directory" Text="Aguarde enquanto a ferramenta recupera informações do Active Directory.">
				<Object Type="Group" Name="Clear Cache" Display="HideAll">
					<Setting Key1="EmptyString">
						<Rule Name="szEmptyInfo" Query="$.">
							<Variable Name="INFO" Scope="Global"/>
							<Variable Name="INFO" Scope="Children"/>
						</Rule>
					</Setting>
				</Object>

				<Object Type="Variable" Name="All Drivers" Key1="Unpack" Key2="%AllDrives%" Display="HideAll">
					<Setting Key1="__VALUE" Format="\\$----">
						<Rule Name="szDiskIDs" Query="upper-case($.)"/>
					</Setting>
				</Object>

				<Object Type="Directory" Name="cn" SecurityContext="EXLOGON">
					<Rule Name="fErrorAccessActiveDirectory" Query="count(../Exception) &gt;0" Title="Erro ao acessar o Active Directory" Text="Erro ao acessar o Active Directory em {1}. A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%DC%" Error="Error" GUID="b15f87cc-938a-48f8-a14e-24ce1aef5b61"/>
					<Setting Key1="ServerName" Format="CN=(.*?),.*----$1">
						<Rule Name="szActualDCName" Query="$." Text="O controlador de domínio que esta ferramenta está usando: {0}." P0="$."/>
					</Setting>
					<Setting Key1="configurationNamingContext" Substitution="CONFIGDN"/>
					<Object Type="Directory" Key2="cn=Microsoft Exchange,cn=Services,%CONFIGDN%">
						<Rule Name="fErrorAccessExchangeContainer" Query="count(../Exception) &gt;0" Title="Erro ao acessar o contêiner de configuração do Exchange" Text="Erro ao acessar o contêiner de configuração do Exchange no Active Directory em {1}. A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%DC%" Error="Error" GUID="6eed505c-5112-4367-a21e-c750b944bfb2"/>
						<Setting Key1="distinguishedName" Substitution="DN"/>
						<Object Type="Directory" Key2="%DN%" Key3="objectClass=msExchOrganizationContainer" Key4="OneLevel">
							<Setting Key1="distinguishedName" Substitution="DN"/>
							<Object Type="Group" Name="Admin Group">
								<Rule Name="fZeroADServerInfo1" Query="count($szExchangeServerName)=0 and count($fErrorAccessServerInfo)=0" Error="Error" Title="Erro ao acessar o servidor Exchange" Text="Não há informações do servidor do '{0}' em {1} ou servidor do '{0}' está executando o Exchange Server 2010. Caso seja a segunda opção, execute essa ferramenta novamente no Console de Gerenciamento dp Exchange 2010." S0="%EXSERVER%" S1="%DN%" GUID="b7def047-3b0d-4ed0-83b6-3a75f8db8b85" AlwaysEvaluate="True"/>
								<Object Type="Directory" Key2="cn=Administrative Groups, %DN%" Key3="(ObjectCategory=msExchAdminGroup)" Key4="OneLevel" Class="Grupo Admin.">
									<Rule Name="fNoAdminGroups" Query="count($.)=0" Title="Erro ao acessar os grupos administrativos do Exchange" Text="Nenhum grupo administrativo do Exchange detectado no Active Directory no servidor {0}." S0="%DC%" Error="Error" GUID="ec5a8fcf-e6f0-4935-a406-7e769536dcc7"/>
									<Setting Key1="distinguishedName" Substitution="DN"/>
									<Object Type="Group" Name="Exchange Servers">
										<Object Type="Registry" Key1="%EXSERVER%" Key3="System\CurrentControlSet\Services\MSExchangeIS" Display="Hide">
											<Setting Key1="ImagePath" Substitution="ImagePath" Format="^&quot;?(.*\\).*$----$1">
												<Rule Name="szSLVPathOrig" Query="replace(substring($.,1,string-length($.) -1),':', '$')"/>
												<Rule Name="szBinPath" Query="concat('\\', @S0,'\', $szSLVPathOrig)" S0="%EXSERVER%">
													<Variable Name="ExchBinDir" Scope="Children"/>
												</Rule>
											</Setting>
										</Object>
										<Object Type="Directory" Key2="%DN%" Key3="(&amp;(objectCategory=msExchExchangeServer)(cn=%EXSERVER%)(!serialNumber=Version 14*))" Class="Servidor">
											<Rule Name="fErrorAccessServerInfo" Query="count(../Exception) &gt;0" Error="Error" Title="Erro ao acessar informações do servidor Exchange" Text="Erro ao acessar informações do servidor em {0}. Mensagem de Erro: {1}." S0="%DN%" S1="../Exception/@Message" GUID="f1915b91-0f56-4272-9c24-4914daa8a944"/>
											<Setting Key1="distinguishedName" Substitution="DN"/>
											<Setting Key1="name" Substitution="SRVNAME">
												<Rule Name="szExchangeServerName" Query="$."/>
												<Rule Name="fE12CCRClusteredVariable" Query="if($fE12CCRClustered, '1', '0')" AlwaysEvaluate="True">
													<Variable Name="CCRClustered" Scope="Children"/>
												</Rule>
											</Setting>
											<Setting Key1="cn" Substitution="EXSRVNAME"/>
											<Setting Key1="legacyExchangeDn">
												<Rule Name="szServerLegDn" Query="upper-case($.)"/>
											</Setting>
											<Setting Key1="msExchClusterStorageType">
												<Rule Name="fE12CCRClustered" Query="$.='1'" Title="Servidor Clusterizado de CCR Detectado" Text="O servidor {1} é um servidor de caixas de correio de CCR (replicação contínua em cluster)." S1="%SRVNAME%"/>
											</Setting>
											<Object Type="Group" Name="Storage Group">
												<Object Type="Directory" Key2="cn=InformationStore,%DN%" Display="Hide">
													<Setting Key1="distinguishedName" Substitution="DN"/>
													<!-- Let's drill into each Storage Group object on the server and find out how the transaction logs have been configured -->
													<Object Type="Directory" Key2="%DN%" Key3="objectClass=msExchStorageGroup" Display="Left" Class="Grupo de Armazenamento">
														<Setting Key1="cn">
															<Rule Name="szUnMountedDBs" Query="join('', $szDBUnMountPack)"/>
															<Rule Name="szUnknownDBs" Query="if($szDBUNKNOWN, join('', $szDBUNKNOWNPack))"/>
														</Setting>
														<Setting Key1="distinguishedName" Substitution="DN"/>
														<Setting Key1="name" Substitution="SGNAME">
															<Rule Name="szStorageGroup" Query="$.">
																<Variable Name="INFO[AllSGs][%SGNAME%]" Scope="Children"/>
															</Rule>
															<Rule Name="szUpperCaseStorageGroup" Query="upper-case($.)">
																<Variable Name="INFO[AllUpperCaseSGs][%SGNAME%]" Scope="Children"/>
															</Rule>
															<Rule Name="iStorageGroupNum" Query="count($.)"/>
															<Rule Name="fStorageGroupNumZero" Query="count($.) = 0" Text="Não há grupo de armazenamento existente no servidor {0}." P0="$szExchangeServerName"/>
															<Rule Name="iMountedDBCount" Query="count($szDBMount)" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][DBMountCount]" Scope="Children"/>
															</Rule>
															<Rule Name="iUnMountedDBCount" Query="count($szDBUnMount)+count($szDBUNKNOWN)" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][DBUnMountCount]" Scope="Children"/>
															</Rule>
															<Rule Name="szSelectableDBs" Query="join('',$szUnMountedDBs, $szUnknownDBs)" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][SelectableDBs]" Scope="Children"/>
															</Rule>
															<Rule Name="szUnSelectableDBs" Query="join('', $szDBMountPack)" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][UnSelectableDBs]" Scope="Children"/>
															</Rule>
															<Rule Name="iTotalDBCount" Query="count($szDBUnMount)+count($szDBUNKNOWN)+count($szDBMount)" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][DBCount]" Scope="Children"/>
															</Rule>
															<Rule Name="szAllMDBs" Query="join('',$szMailboxStorePack)" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][AllMDBs]" Scope="Children"/>
															</Rule>
															<Rule Name="szMDBNameList" Query="join('', $szMailboxNamePack)" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][MDBNameList]" Scope="Children"/>
															</Rule>
															<Rule Name="szRSGName" Query="if($fRSG, $.)">
																<Variable Name="INFO[RSG][Name]" Scope="Children"/>
															</Rule>
															<Rule Name="iLCR" Query="if($fLCR, '1', '0')" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][LCR]" Scope="Children"/>
															</Rule>
															<Rule Name="iSCR" Query="if($fSCR, '1', '0')" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][SCR]" Scope="Children"/>
															</Rule>
															<Rule Name="IsRSG" Query="if($fRSG,'True','False')" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][RSG]" Scope="Children"/>
															</Rule>
															<Rule Name="iCheckPointGenRule" Query="if($iCheckPointGen, $iCheckPointGen, 0)" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGName%][CheckPointGen]" Scope="Children"/>
															</Rule>
														</Setting>
														<Setting Key1="msExchESEParamBaseName" Substitution="BASENAME">
															<Rule Name="szBaseName" Query="$.">
																<Variable Name="INFO[%SGNAME%][BASENAME]" Scope="Children"/>
															</Rule>
														</Setting>
														<Setting Key1="msExchESEParamSystemPath" Substitution="SYSPATH" SubstitutionFormat="\\----\\">
															<Rule Name="szMsExchESEParamSystemPathDriveRaw" Query="substring($., 1, 2)"/>
															<Rule Name="szMsExchESEParamSystemPathDriveLetter" Query="upper-case($szMsExchESEParamSystemPathDriveRaw)"/>
															<Rule Name="szMsExchESEParamSystemPath" Query="upper-case($.)"/>
															<Rule Name="szSGSysPath" Query="$.">
																<Variable Name="INFO[%SGNAME%][SysPath]" Scope="Children"/>
															</Rule>
														</Setting>
														<Setting Key1="msExchESEParamSystemPath" Substitution="RSYSPATH" Format="(.):\\(.*)----\\%EXSERVER%\$1$\$2">
															<Rule Name="szRSysPath" Query="$.">
																<Variable Name="INFO[%SGNAME%][RSysPath]" Scope="Children"/>
															</Rule>
														</Setting>
														<Setting Key1="msExchESEParamLogFilePath" Substitution="LOGPATH" SubstitutionFormat="\\----\\">
															<Rule Name="szMsExchESEParamLogFilePath" Query="$."/>
															<Rule Name="szMsExchESEParamLogFilePathUpper" Query="upper-case($.)"/>
															<Rule Name="szExchangeTransLogPath" Query="$." Error="None" Text="A pasta do log de transações do servidor Exchange do grupo de armazenamento '{3}' está localizada em '{5}'." P5="$." P3="$szStorageGroup"/>
															<Rule Name="szRSGLogPath" Query="$.">
																<Variable Name="INFO[%SGNAME%][LogPath]" Scope="Children"/>
															</Rule>
															<Rule Name="szLongestDrive" Query="longest-starts-with($szMsExchESEParamLogFilePathUpper, $szDiskIDs)">
																<Variable Name="INFO[%SGNAME%][LongestDriveMatch]" Scope="Children"/>
															</Rule>
															<Rule Name="szRLogPath" Query="concat('\\', @S1, '\', replace($., ':', '$'))" S1="%EXSERVER%">
																<Variable Name="INFO[%SGNAME%][RLogPath]" Scope="Children"/>
															</Rule>
														</Setting>
														<Setting Key1="msExchRestore" Substitution="RSGExists">
															<Rule Name="fRSG" Query="if($.='True','True','False')" AlwaysEvaluate="True">
																<Variable Name="INFO[RSG][Exist]" Scope="Children"/>
															</Rule>
														</Setting>
														<Setting Key1="msExchHasLocalCopy">
															<Rule Name="fLCR" Query="$.=1" Title="Replicação contínua local (LCR) detectada" Text="Replicação contínua local (LCR) detectada para {2} em {1}." S1="%Server%" S2="%SGName%"/>
														</Setting>
														<Setting Key1="msExchStandbyCopyMachines">
															<Rule Name="fSCR" Query="if($., '1', '0')" Title="Replicação contínua em espera (SCR) detectada" Text="A replicação contínua em espera (SCR) foi detectada para {2} em {1}." S1="%Server%" S2="%SGName%"/>
														</Setting>
														<Setting Key1="msExchESEParamLogFileSize">
															<Rule Name="iLogFileSize" Query="$. * 1024">
																<Variable Name="INFO[%SGNAME%][LogFileSize]" Scope="Children"/>
															</Rule>
														</Setting>
														<Setting Key1="msExchESEParamCircularLog">
															<Rule Name="fCircularLog" Query="$.">
																<Variable Name="INFO[%SGNAME%][CircularLog]" Scope="Children"/>
															</Rule>
														</Setting>
														<Setting Key1="msExchESEParamLogFilePath" Substitution="ORILOGPATH"/>
														<Object Type="Group" Name="GetLogPathWithPrefix" Display="Hide">
															<Rule Name="szSGLogPathWithPrefix" Query="upper-case(concat(@S1, '\', @S2))" S1="%ORILOGPATH%" S2="%BASENAME%" AlwaysEvaluate="True">
																<Variable Name="INFO[%SGNAME%][LogPathWithPrefix]" Scope="Children"/>
															</Rule>
														</Object>
														<Object Type="CheckPointInfo" Name="Checkpoint File Information" Key2="%RSYSPATH%\%BASENAME%.chk">
															<Setting Key1="CheckSum"/>
															<Setting Key1="LastFullBackupCheckpoint.IB"/>
															<Setting Key1="LastFullBackupCheckpoint.ISec"/>
															<Setting Key1="LastFullBackupCheckpoint.LGeneration"/>
															<Setting Key1="CheckPoint.IB"/>
															<Setting Key1="CheckPoint.ISec"/>
															<Setting Key1="CheckPoint.LGeneration">
																<Rule Name="iCheckPointGen" Query="$."/>
															</Setting>
															<Setting Key1="LogSignature.CreateTime"/>
															<Setting Key1="LogSignature.RandomNumber"/>
															<Setting Key1="FullBackup.IB"/>
															<Setting Key1="FullBackup.ISec"/>
															<Setting Key1="FullBackup.LGeneration"/>
															<Setting Key1="DBMS"/>
															<Setting Key1="LogTimeFullBackup"/>
															<Setting Key1="IncBackup.IB"/>
															<Setting Key1="IncBackup.ISec"/>
															<Setting Key1="IncBackup.LGeneration"/>
															<Setting Key1="LogTimeIncBackup"/>
															<Setting Key1="FileType"/>
														</Object>
														<Object Type="File" Key1="%SRVNAME%" Key2="%LOGPATH%">
															<Setting Key1="Files" Key2="%BASENAME%*.log" Key3="Generation">
																<Rule Name="fHighLogGeneration" Query="$.&gt;950000" Error="Warning" Sev="1" Title="Aviso de geração de log" Text="A geração de log de transações atual do grupo de armazenamento '{3}' no servidor {2} está se aproximando do valor máximo. É necessário executar alguma ação para garantir que os bancos de dados não parem." P2="$szExchangeServerName" P3="$szStorageGroup" GUID="fbf10107-5e0c-4c64-a99e-730370a49147"/>
															</Setting>
														</Object>
														<!-- Now into the Mailbox Stores. First of all, we'll get the data paths, then we'll inspect the physical files on disk -->
														<Object Type="Directory" Key2="%DN%" Key3="(|(objectClass=msExchPrivateMDB)(objectClass=msExchPublicMDB))">
															<Setting Key1="distinguishedName" Substitution="DN"/>
															<Setting Key1="cn" Substitution="MDBNAME">
																<Rule Name="szMailboxStore" Query="$."/>
																<Rule Name="szMailboxStorePack" Query="pack($.)"/>
															</Setting>
															<Setting Key1="legacyExchangeDn" Substitution="MailboxLegacyDN">
																<Rule Name="szMailboxStoreLegacyDn" Query="$."/>
															</Setting>
															<Setting Key1="msExchEDBFile" Substitution="EDBPATH" SubstitutionFormat="\\----\\">
																<Rule Name="szMsExchMailboxEDBFile" Query="upper-case($.)"/>
																<Rule Name="szExchangeMailboxMDBPath" Query="$." Error="None" Text="O arquivo do banco de dados primário do armazenamento de caixa de correio '{3}' está localizado em '{5}'." P5="$." P3="$szMailboxStore"/>
															</Setting>
															<Setting Key1="msExchEDBOffline"/>
															<Setting Key1="msExchSLVFile" Substitution="SLVPATH" SubstitutionFormat="\\----\\">
																<Rule Name="szMsExchMailboxSLVFile" Query="upper-case($.)"/>
															</Setting>
															<Setting Key1="objectGUID" Format="System.Guid" SubstitutionFormat="System.Guid" Substitution="DBGUID">
																<Parameter Name="Guid" Type="Hashtable"/>
																<Rule Name="szGUID" Query="$.">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][GUID]" Scope="Children"/>
																</Rule>
																<Rule Name="szSysPath" Query="$szExchangeMailboxMDBPath">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][SYSPATH]" Scope="Children"/>
																</Rule>
																<Rule Name="szLogPath" Query="$szMsExchESEParamLogFilePath">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][LOGPATH]" Scope="Children"/>
																</Rule>
																<Rule Name="szMDBBase" Query="$szBaseName">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][MDBBASE]" Scope="Children"/>
																</Rule>
																<Rule Name="szMDBPath" Query="$szExchangeMailboxMDBPath">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][MDBPATH]" Scope="Children"/>
																</Rule>
																<Rule Name="szRMDBPath" Query="concat('\\', @S1, '\', replace($szExchangeMailboxMDBPath, ':', '$'))" S1="%EXSERVER%">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][RMDBPATH]" Scope="Children"/>
																</Rule>
																<Rule Name="szSLVPath" Query="$szMsExchMailboxSLVFile">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][SLVPATH]" Scope="Children"/>
																</Rule>
																<Rule Name="szRSLVPath" Query="concat('\\', @S1, '\', replace($szMsExchMailboxSLVFile, ':', '$'))" S1="%EXSERVER%">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][RSLVPATH]" Scope="Children"/>
																</Rule>
																<Rule Name="szDBInfo" Query="concat(pack($szExchangeServerName),pack($szStorageGroup),pack($szMailboxStore),pack($szExchangeMailboxMDBPath),pack($szMsExchESEParamLogFilePath),pack($szBaseName),if($szMsExchMailboxSLVFile, pack($szMsExchMailboxSLVFile), pack(string(''))),pack($szGUID))" AlwaysEvaluate="True">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][DATA]" Scope="Children"/>
																</Rule>
																<Rule Name="szDBInfoPack" Query="pack($szDBInfo)"/>
															</Setting>
															<Setting Key1="objectCategory">
																<Rule Name="fPublicFolderDatabase" Query="starts-with($., 'CN=ms-Exch-Public-MDB')"/>
																<Rule Name="szPublicDB" Query="if($fPublicFolderDatabase, '1', '0')" AlwaysEvaluate="True">
																	<Variable Name="INFO[%SGNAME%][%MDBNAME%][IsPublic]" Scope="Children"/>
																</Rule>
																<Rule Name="szMailboxInfo" Query="if(not ($fPublicFolderDatabase), $szDBInfoPack)" AlwaysEvaluate="True"/>
																<Rule Name="szMailboxNamePack" Query="if(not ($fPublicFolderDatabase), $szMailboxStorePack)" AlwaysEvaluate="True"/>
															</Setting>
															<Setting Key1="msExchOrigMDB" Substitution="OrigMDB">
																<Rule Name="fOrigMDBName" Query="if($., replace(slice($.,',',0), 'CN=', ''))">
																	<Variable Name="INFO[RSG][%MDBNAME%][OrigMDB]" Scope="Children"/>
																</Rule>
																<Rule Name="fOrigSGName" Query="if($., replace(slice($.,',',1), 'CN=', ''))">
																	<Variable Name="INFO[RSG][%MDBNAME%][OrigSG]" Scope="Children"/>
																	<Variable Name="INFO[RSG][LinkedSGtoRSG]" Scope="Children"/>
																</Rule>
															</Setting>
															<Object Type="MdbAdmin" Key1="%SRVNAME%" Key2="ListMdbStatus" Key3="%DBGUID%">
																<Rule Name="fErrorAccessMdbAdmin" Query="count(../Exception) &gt;0" Text="Erro ao acessar status de banco de dados. Mensagem de erro: {0}." P0="../Exception/@Message"/>
																<Rule Name="szDBUNKNOWN" Query="if(($fErrorAccessMdbAdmin), string($szMailboxStore))"/>
																<Rule Name="szDBUNKNOWNPack" Query="if(($fErrorAccessMdbAdmin), string(pack($szMailboxStore)))"/>
																<Setting Key1="Status">
																	<Rule Name="szDBUnMount" Query="if(($.='0'), string($szMailboxStore))"/>
																	<Rule Name="szDBUnMountPack" Query="if(($.='0'), string(pack($szMailboxStore)))"/>
																	<Rule Name="szDBMount" Query="if((not ($.='0')), string($szMailboxStore))">
																		<Variable Name="INFO[%SGNAME%][MOUNTED][%DBGUID%]" Scope="Children"/>
																	</Rule>
																	<Rule Name="szDBMountPack" Query="if((not ($.='0')), string(pack($szMailboxStore)))"/>
																</Setting>
															</Object>
														</Object>
													</Object>
												</Object>
											</Object>
											<Rule Name="fDispatchToTaskCenterStep" Query="not ($fErrorAccessServerInfo) and ($szExchangeServerName) and not ($fStorageGroupNumZero) and @S1=0" S1="%IsSymptom%" NextStep="TaskCenterStep"/>
											<Rule Name="fDispatchToEventDetectStep" Query="not ($fErrorAccessServerInfo) and ($szExchangeServerName) and not ($fStorageGroupNumZero) and @S1=1" S1="%IsSymptom%" NextStep="GatherEventLogDetectOptionStep"/>
										</Object>
									</Object>
								</Object>
							</Object>
						</Object>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="TaskCenterStep" Title="Centro de Tarefas" Display="Hide">
		<Object Type="Panel" HelpId="html\ab4933c0-906e-4b0b-bbfd-8fbeeb5faff6.htm">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Exist]%" Substitution="RSGExist" Display="Hide"/>
				<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>
				<Setting Key1="%LocalMachineName%" Substitution="LocalMachineName" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecione uma das tarefas a seguir"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>

				<Object Type="Control" SubType="Label" Name="DatabaseAnalyzer" Position="Below" FontStyle="Bold" Width="FullWidth" LineSpace="2" Text="Gerenciar Bancos de Dados"/>
				<Object Type="Control" SubType="Label" Name="DatabaseAnalyzerLabel" Position="Below" Width="FullWidth" LineSpace="0" Text="Selecione uma das tarefas abaixo para executar tarefas de gerenciamento de banco de dados."/>

				<Object Type="Control" SubType="Link" Name="LogDriveIssue" Position="Below" Text="Analisar espaço na unidade de log" NextStep="PrepareLogDriveAnalysisStep"/>
				<Object Type="If" Name="ResetLogNumber" Key1="not (%IsE12%=1)">
					<Object Type="Control" SubType="Link" Name="ResetLogNumberLink" Position="Below" Text="Redefinir número de geração de logs" NextStep="ResetLogOptionsStep"/>
				</Object>

				<!-- Limit Repair task to local machine only since it can cause dramatic network traffic impact -->
				<Object Type="If" Name="CheckMachineName" Key1="'%EXSERVER%'='%LocalMachineName%'">
					<Object Type="Control" SubType="Link" Name="RepairTask" Position="Below" Text="Reparar banco de dados" NextStep="SelectRepairOptionStep"/>
				</Object>
				<Object Type="Control" SubType="Link" Name="ShowEventLog" Position="Below" Text="Exibir logs de eventos relacionados ao banco de dados" NextStep="SelectEventViewOptionStep"/>
				<Object Type="Control" SubType="Link" Name="DatabaseMountIssue" Position="Below" Text="Verificar arquivos do log de transações e do banco de dados" NextStep="SelectSGStep"/>

				<Object Type="If" Name="DetectE12" Key1="%IsE12%=1">
					<!-- Double check Exchange Monad command environment by running an echo command through Exchange Monad Shell -->
					<Object Type="MonadCommand" Key1="echo 1">
						<Object Type="Control" SubType="Label" Name="RSGManager" Position="Below" FontStyle="Bold" Width="FullWidth" Text="Gerenciar Grupo de Armazenamento de Recuperação"/>
						<Object Type="Control" SubType="Label" Name="RSGManagerLabel" Position="Below" LineSpace="0" Width="FullWidth" Text="Selecione uma das tarefas abaixo para gerenciar o grupo de armazenamento de recuperação."/>

						<Object Type="If" Name="NoRSG" Key1="not ('%RSGExist%'='True')">
							<Object Type="Control" SubType="Link" Name="CreateRSG" Position="Below" Text="Criar um grupo de armazenamento de recuperação" NextStep="SelectOSGStep"/>
						</Object>
						<Object Type="If" Name="ManageRSGCondition" Key1="'%RSGExist%'='True'">
							<Object Type="Control" SubType="Link" Name="MergeMailbox" Position="Below" Text="Mesclar ou copiar o conteúdo da caixa de correio" NextStep="MergeDatabaseStep"/>
							<Object Type="Control" SubType="Link" Name="MountRSGDatabase" Position="Below" Text="Montar ou desmontar bancos de dados no grupo de armazenamento de recuperação" NextStep="MountDismountDatabaseStep"/>
							<Object Type="Control" SubType="Link" Name="RemoveRSG" Position="Below" Text="Remover o grupo de armazenamento de recuperação" NextStep="RemoveRSGStep"/>
							<Object Type="Control" SubType="Link" Name="SetDatabaseFlag" Position="Below" Text="Configure o sinalizador 'O banco de dados pode ser substituído por restauração'" NextStep="SetDatabaseFlagStep"/>
							<Object Type="Control" SubType="Link" Name="SwapDatabase" Position="Below" Text="Trocar bancos de dados para o cenário de 'sinal de linha'" NextStep="SwapDatabaseStep"/>
						</Object>
					</Object>
				</Object>

				<Object Type="Control" SubType="Label" Name="ExitLabel" Position="Below" FontStyle="Bold" Width="FullWidth" LineSpace="2" Text="Exibir Resultados"/>
				<Object Type="Control" SubType="Label" Name="ExitLabel1" Position="Below" Width="FullWidth" LineSpace="0" Text="Exibir os resultados finais de todas as tarefas realizadas."/>

				<Object Type="Control" SubType="Link" Name="Next" Position="LeftBelow" Text="Ir para a Página de Resultados"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectSGStep" Title="Selecionar um Grupo de Armazenamento" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="GetVariable" Key1="Scalar" Display="Hide">
				<Setting Key1="%SG%" Substitution="InputSG" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[AllSGs]%" Substitution="AllSGs" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecione um grupo de armazenamento do Exchange Server"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>

				<Object Type="Control" SubType="ListBox" Name="ListBox" Position="Below" Width="450" Text="Grupos de armazenamento disponíveis" Default="%AllSGs%">
					<Setting Key1="SelectedSG">
						<Rule Name="szSG" Query="if(not ($.=''),string($.),(if(not ('@S0'=''),string(@S0))))" S0="%InputSG%" Text="O grupo de armazenamento selecionado é: {1}." P1="$.">
							<Variable Name="SelectedSG" Scope="Local"/>
						</Rule>
						<Rule Name="szStepId" Query="get-stepid()"/>
					</Setting>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="Below" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar">
					<Rule Name="fDispatchToSelectDB" Query="$szSG" NextStep="SelectDBStep"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectDBStep" Title="Selecione um Banco de Dados" Display="Hide">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Mode%" Substitution="InputMode" Display="Hide"/>
				<Setting Key1="%DB%" Substitution="InputDB" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][DBMountCount]%" Substitution="MountCount" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][MOUNTED]%" Substitution="Mounted" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][DBUnMountCount]%" Substitution="UnmountCount" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][SelectableDBs]%" Substitution="Selectable" Display="Hide"/>
				<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>
				<Setting Key1="%EventDisplayStepID%" Substitution="EventDisplayStepID" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecione um banco de dados do Exchange Server na seguinte lista de bancos de dados desmontados"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor Exchange: %Server%"/>
				<Object Type="Control" SubType="Label" Name="SG" Position="Below" LineSpace="0" Text="Grupo de armazenamento selecionado: %SelectedSG%"/>

				<Object Type="If" Name="Dismounted" Key1="%UnmountCount% &gt;0">
					<Object Type="Control" SubType="Label" Name="Dismounted" Position="Below" Text="Estes bancos de dados estão desmontados e podem ser selecionados."/>
					<Object Type="Control" SubType="Label" Name="InvalidSelection" Position="NextTo" Percent="50" ForeColor="Red" Text="Selecione pelo menos um dos bancos de dados abaixo." Flags="Visible=False"/>
					<Object Type="Control" SubType="ListView" Name="DismountedListView" Position="LeftBelow" Text="Lista de Bancos de Dados Disponíveis" Height="150" Width="600" Title="Bancos de Dados Disponíveis" SelectionMode="True" Flags="DefaultSelection=True" Default="%Selectable%">
						<Setting Key1="Pack">
							<Rule Name="fDBEmpty" Query="$.=''" Text="Não há banco de dados disponível para análise."/>
							<Rule Name="szDB" Query="if(not ($.=''),string($.),(if(not ('@S0'=''),string(@S0))))" S0="%InputDB%">
								<Variable Name="SelectedDB" Scope="Local"/>
							</Rule>
						</Setting>
					</Object>
				</Object>

				<Object Type="If" Name="Mounted" Key1="%MountCount% &gt;0">
					<Object Type="Control" SubType="Label" Name="Mounted" Position="Below" Text="Estes bancos de dados estão montados e não podem ser selecionados. Somente bancos de dados desmontados podem ser analisados."/>
					<Object Type="Control" SubType="ListBox" Name="MountedListBox" Position="Below" Width="300" Default="%Mounted%" SelectionMode="None"/>
				</Object>

				<Object Type="If" Name="MultipleDismounted" Key1="%UnmountCount% &gt;0">
					<Object Type="Control" SubType="Link" Name="Previous" Position="Below" LineSpace="2" Text="Anterior"/>
					<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Analisar Bancos de Dados Selecionados" NextStep="ProcessSelectedDBsStep">
						<Rule Query="''">
							<Variable Name="SelectedDBForDisplay" Scope="Children"/>
						</Rule>
						<Rule Query="(@S0=1) and not ($szDB='')" S0="%InputMode%" NextStep="ProcessSelectedDBsStep"/>
						<Event Type="Click">
							<Action Type="Proceed" Query="control-value('DismountedListView') !=''"/>
							<Action Type="Visible" ControlName="InvalidSelection" Query="control-value('DismountedListView') =''"/>
						</Event>
					</Object>
				</Object>
				<Object Type="If" Name="NODBCase" Key1="%UnmountCount%=0 and %MountCount%=0">
					<Object Type="Control" SubType="Label" Name="NoDBLabel" Position="LeftBelow" Text="Não há bancos de dados no grupo de armazenamento"/>
				</Object>
				<Object Type="If" Name="NoUnMountedSpacelabel" Key1="%UnmountCount%=0">
					<Object Type="Control" SubType="Link" Name="Previous" Position="Below" LineSpace="2" Text="Anterior"/>
					<Object Type="If" Name="IsNotSymptom" Key1="'%IsSymptom%'='0'">
						<Object Type="Control" SubType="Link" Name="TaskCenter" Position="NextTo" Percent="30" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
					</Object>
					<Object Type="If" Name="IsSymptom" Key1="'%IsSymptom%'='1'">
						<Object Type="Control" SubType="Link" Name="Goto" Position="NextTo" Percent="30" Text="Voltar à página de exibição de eventos" NextStep="%EventDisplayStepID%"/>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="ProcessOneDBStep" Title="Processar um Banco de Dados" Display="Hide">
		<Object Type="Action">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[%SelectedSG%][%SelectedDB%][DATA]%" Substitution="DBData" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][CheckPointGen]%" Substitution="CheckPointGen" Display="Hide"/>
				<Object Type="Group" Name="ProcessDBName">
					<Rule Name="szDBINFO" Query="@S0" S0="%DBData%"/>
					<Rule Name="szServer" Query="unpack($szDBINFO, 0)"/>
					<Rule Name="szDBPath" Query="unpack($szDBINFO, 3)"/>
					<Rule Name="szDBPath1" Query="replace($szDBPath, ':', '$')"/>
					<Rule Name="szDBPath2" Query="concat('\\',$szServer,'\',$szDBPath1)">
						<Variable Name="DBPath" Scope="Children"/>
					</Rule>
					<Rule Name="szLogPath" Query="unpack($szDBINFO, 4)"/>
					<Rule Name="szLogPath1" Query="replace($szLogPath, ':', '$')"/>
					<Rule Name="szLogPath2" Query="concat('\\',$szServer,'\',$szLogPath1)">
						<Variable Name="LogPath" Scope="Children"/>
					</Rule>
					<Rule Name="szLogPrefix" Query="unpack($szDBINFO, 5)">
						<Variable Name="LogPrefix" Scope="Children"/>
					</Rule>
					<Rule Name="szSLVPath" Query="unpack($szDBINFO, 6)"/>
					<Rule Name="szSLVPath1" Query="replace($szSLVPath,':', '$')"/>
					<Rule Name="szSLVPath2" Query="concat('\\',$szServer,'\',$szSLVPath1)">
						<Variable Name="SLVPath" Scope="Children"/>
					</Rule>
					<Rule Name="iCheckPointGen" Query="@S1" S1="%CheckPointGen%">
						<Variable Name="CheckPointGen" Scope="Children"/>
					</Rule>
					<Rule Name="fDispatchToDBAnalysisStepFromProcDBName" NextStep="DBAnalysisStep"/>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="ProcessSelectedDBsStep" Title="Processar Bancos de Dados Selecionados" Display="Hide">
		<Object Type="Action">
			<Object Type="If" Key1="true()" Display="HideAll">
				<Setting Key1="'1'" SQM="97;Set"/>
			</Object>
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%SelectedDB%" Substitution="SelectedDBList" Display="Hide"/>
				<Object Type="Group" Name="Process Databases">
					<Rule Name="fDisplayDetailInfo" Query="count($szSaveSelectedDBName) &gt; 1" Priority="99" NextStep="DetailDBInfoStep"/>
					<Rule Name="fGoBacktoTaskCenterPage" Query="count($szSaveSelectedDBName) &gt; 0" Priority="100" NextStep="DisplayAnalysisResultsStep"/>
					<Rule Name="szStepNodeID" Query="get-stepid()"/>
					<Rule Name="szStepID" Query="concat($szStepNodeID,'.')">
						<Variable Name="StepID" Scope="Children"/>
					</Rule>
					<Object Type="Variable" Name="Selected DBs" Key1="Unpack" Key2="%SelectedDBList%">
						<Setting Key1="__VALUE">
							<Rule Name="szSelectedDBName" Query="$." Priority="1" NextStep="ProcessOneDBStep">
								<Rule Name="szSaveSelectedDBName" Query="$szSelectedDBName">
									<Variable Name="SelectedDB"/>
								</Rule>
								<Rule Name="szDBNameWithSpaces" Query="concat($szSelectedDBName, '                              ')"/>
								<Rule Name="szDBName30" Query="substring($szDBNameWithSpaces, 0, 30)"/>
								<Rule Name="szDBNameForGlobalCache" Query="concat($szDBName30, '     ')">
									<Variable Name="SelectedDBForDisplay"/>
								</Rule>
							</Rule>
						</Setting>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="DetailDBInfoStep" Title="Exibir Informações Detalhadas do Banco de Dados" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[GlobalDBSignature]%" Substitution="GlobalDBSignature" Display="Hide"/>
				<Setting Key1="%INFO[GlobalLogSignature]%" Substitution="GlobalLogSignature" Display="Hide"/>
				<Setting Key1="%INFO[GlobalDBStatus]%" Substitution="GlobalDBStatus" Display="Hide"/>
				<Setting Key1="%INFO[GlobalMinLogRequired]%" Substitution="GlobalMinLogRequired" Display="Hide"/>
				<Setting Key1="%INFO[GlobalMaxLogRequired]%" Substitution="GlobalMaxLogRequired" Display="Hide"/>
				<Setting Key1="%INFO[GlobalRepairCount]%" Substitution="GlobalRepairCount" Display="Hide"/>
				<Setting Key1="%INFO[GlobalLogTimeRepair]%" Substitution="GlobalLogTimeRepair" Display="Hide"/>
				<Setting Key1="%INFO[GlobalLogTimeAttach]%" Substitution="GlobalLogTimeAttach" Display="Hide"/>
				<Setting Key1="%INFO[GlobalLogTimeDetach]%" Substitution="GlobalLogTimeDetach" Display="Hide"/>
				<Setting Key1="%INFO[GlobalLogTimeConsistent]%" Substitution="GlobalLogTimeConsistent" Display="Hide"/>
				<Setting Key1="%INFO[GlobalLastConsistentGenerationNumber]%" Substitution="GlobalLastConsistentGenerationNumber" Display="Hide"/>
				<Setting Key1="%INFO[GlobalUpdateAndVersion]%" Substitution="GlobalUpdateAndVersion" Display="Hide"/>
				<Setting Key1="%INFO[GlobalBKInfoFullPrev]%" Substitution="GlobalBKInfoFullPrev" Display="Hide"/>
				<Setting Key1="%INFO[GlobalBKInfoIncPrev]%" Substitution="GlobalBKInfoIncPrev" Display="Hide"/>
				<Setting Key1="%INFO[GlobalBKInfoFullCur]%" Substitution="GlobalBKInfoFullCur" Display="Hide"/>
				<Setting Key1="%INFO[GlobalMissingRequiredLogFiles]%" Substitution="GlobalMissingRequiredLogFiles" Display="Hide"/>
				<Setting Key1="%INFO[GlobalMissingOptionalLogFiles]%" Substitution="GlobalMissingOptionalLogFiles" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados do Resumo"/>
				<Object Type="RichTextBox" Name="DetailDBRichTextBox" Position="Below" LineSpace="2" Height="450" Width="FullWidth" FontFamily="Courier New" Display="Hide">
					<Setting Text="Resumo do Cabeçalho de Arquivo" Key2="Font=Title"/>
					<Setting Key2="Type=NewLine" Key3="1"/>
					<Setting Text="Esta página exibe os resultados da análise de todos os bancos de dados disponíveis no grupo de armazenamento selecionado."/>
					<Setting Key2="Type=NewLine" Key3="2"/>
					<Setting Text="Assinatura do Banco de Dados:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalDBSignature%" Key2="Type=List" Key3="3"/>
					<Setting Key2="Type=NewLine" Key3="4"/>
					<Setting Text="Assinatura do Log:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalLogSignature%" Key2="Type=List" Key3="5"/>
					<Setting Key2="Type=NewLine" Key3="6"/>
					<Setting Text="Status do Banco de Dados:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalDBStatus%" Key2="Type=List" Key3="7"/>
					<Setting Key2="Type=NewLine" Key3="8"/>
					<Setting Text="Log Mín. Necessário:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalMinLogRequired%" Key2="Type=List" Key3="9"/>
					<Setting Key2="Type=NewLine" Key3="10"/>
					<Setting Text="Log Máx. Necessário:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalMaxLogRequired%" Key2="Type=List" Key3="11"/>
					<Setting Key2="Type=NewLine" Key3="12"/>
					<Setting Text="Contagem de Reparos:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalRepairCount%" Key2="Type=List" Key3="13"/>
					<Setting Key2="Type=NewLine" Key3="14"/>
					<Setting Text="Data do Reparo:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalLogTimeRepair%" Key2="Type=List" Key3="15"/>
					<Setting Key2="Type=NewLine" Key3="16"/>
					<Setting Text="Última Anexação:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalLogTimeAttach%" Key2="Type=List" Key3="17"/>
					<Setting Key2="Type=NewLine" Key3="18"/>
					<Setting Text="Última Desanexação:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalLogTimeDetach%" Key2="Type=List" Key3="19"/>
					<Setting Key2="Type=NewLine" Key3="20"/>
					<Setting Text="Último Consistente:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalLogTimeConsistent%" Key2="Type=List" Key3="21"/>
					<Setting Key2="Type=NewLine" Key3="22"/>
					<Setting Text="Último Número de Geração Consistente:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalLastConsistentGenerationNumber%" Key2="Type=List" Key3="23"/>
					<Setting Key2="Type=NewLine" Key3="24"/>
					<Setting Text="Número de Versão e Atualização:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalUpdateAndVersion%" Key2="Type=List" Key3="25"/>
					<Setting Key2="Type=NewLine" Key3="26"/>
					<Setting Text="Informações de Backup Completo Anterior:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalBKInfoFullPrev%" Key2="Type=List" Key3="27"/>
					<Setting Key2="Type=NewLine" Key3="28"/>
					<Setting Text="Informações de Backup de Incremento Anterior:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalBKInfoIncPrev%" Key2="Type=List" Key3="29"/>
					<Setting Key2="Type=NewLine" Key3="30"/>
					<Setting Text="Informações de Backup Completo Atual:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalBKInfoFullCur%" Key2="Type=List" Key3="31"/>
					<Setting Key2="Type=NewLine" Key3="32"/>
					<Setting Text="Arquivos de log ausentes ou incompatíveis:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalMissingRequiredLogFiles%" Key2="Type=List" Key3="33"/>
					<Setting Key2="Type=NewLine" Key3="34"/>
					<Setting Text="Arquivos de log opcionais ausentes ou incompatíveis:" Key2="FontStyle=Bold"/>
					<Setting Text="{1}" S1="%GlobalMissingOptionalLogFiles%" Key2="Type=List" Key3="35"/>
				</Object>
				<Object Type="Control" SubType="Button" Name="Copy" Position="LeftBelow" Width="100" Text="Copiar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DetailDBRichTextBox" Query="ActionHandler('DetailDBRichTextBox', 'Copy')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Print" Position="NextTo" Scale="1" Width="100" Text="Imprimir">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DetailDBRichTextBox" Query="ActionHandler('DetailDBRichTextBox', 'Print')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="Save" Position="NextTo" Scale="1" Width="100" Text="Salvar">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DetailDBRichTextBox" Query="ActionHandler('DetailDBRichTextBox', 'Save')"/>
					</Event>
				</Object>
				<Object Type="Control" SubType="Button" Name="SelectAll" Position="NextTo" Scale="1" Width="100" Text="Selecionar Todos">
					<Event Type="Click">
						<Action Type="ExecuteQuery" ControlName="DetailDBRichTextBox" Query="ActionHandler('DetailDBRichTextBox', 'SelectAll')"/>
					</Event>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar"/>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="DisplayAnalysisResultsStep" Title="Exibir Resultados da Análise do Banco de Dados" Display="Left">
		<Object Type="Variable" Name="Prepare Variables" Key1="Scalar" Display="Hide">
			<Setting Key1="%StepID%" Substitution="StepID" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SGName" Display="Hide"/>
			<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>
			<Setting Key1="%EventDisplayStepID%" Substitution="EventDisplayStepID"/>
			<Object Type="Panel">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultados da Análise do Banco de Dados"/>
				<Object Type="Control" SubType="Label" Name="Label1" Position="Below" LineSpace="2" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento: %SGName%"/>

				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" Width="FullWidth" Height="400">
					<Report Title="Erros" Query="//Object[@Type='Step' and starts-with(@StepNodeID, '%StepID%') and not(@StepStatus='Deactivated')]/*//Message[@Error='Error']"/>
					<Report Title="Avisos" Query="//Object[@Type='Step' and starts-with(@StepNodeID, '%StepID%') and not(@StepStatus='Deactivated')]/*//Message[@Error='Warning']"/>
					<Report Title="Informações" Query="//Object[@Type='Step' and starts-with(@StepNodeID, '%StepID%') and not(@StepStatus='Deactivated')]/*//Message[@Error='Information' or @Error='None']"/>
				</Object>

				<Object Type="If" Name="IsNotSymptom" Key1="'%IsSymptom%'='0'">
					<Object Type="Control" SubType="Link" Name="TaskCenter" Position="Below" LineSpace="2" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
				</Object>
				<Object Type="If" Name="IsSymptom" Key1="'%IsSymptom%'='1'">
					<Object Type="Control" SubType="Link" Name="Goto" Position="Below" LineSpace="2" Text="Voltar à página de exibição de eventos" NextStep="%EventDisplayStepID%"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectEventViewOptionStep" Title="Selecionar Opção de Exibição de Eventos" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="Select Hour" Key1="Scalar" Display="Hide">
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecionar Opção de Exibição de Eventos"/>
				<Object Type="Control" SubType="Label" Name="Label" Position="Below" Text="Nome do servidor Exchange: %Server%"/>

				<Object Type="Control" SubType="Label" Name="TimeLabel" Position="Below" LineSpace="2" Text="Insira o número de horas de eventos do banco de dados que você deseja exibir (0 indica todas): "/>
				<!-- Limit up to one year -->
				<Object Type="Control" SubType="NumericInput" Name="InputHour" Position="NextTo" Width="75" MinValue="0" MaxValue="2147483647" Default="2">
					<Setting Key1="Value" Substitution="InputHour">
						<Rule Name="dHour" Query="$.">
							<Variable Name="INFO[FilterHour]" Scope="Children"/>
						</Rule>
						<Rule Name="szLocalTime" Query="'01/01/2000 00:00:00'">
							<Variable Name="INFO[LocalTime]" Scope="Children"/>
						</Rule>
					</Setting>
				</Object>
			</Object>
			<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="LeftBelow" Text="Anterior"/>
			<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Recuperar entradas do log de eventos" NextStep="CalculateTimeFilterStep"/>
		</Object>
	</Object>

	<Object Type="Step" Name="CalculateTimeFilterStep" Title="Calcular Filtro de Tempo" Display="Hide">
		<Object Type="Action">
			<Object Type="Variable" Name="Get Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[FilterHour]%" Substitution="InputHour" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Object Type="If" Name="WMICall" Key1="not (%InputHour%=0)">
					<Object Type="WMI" Key1="%EXSERVER%" Key2="root\cimv2" Key3="Win32_OperatingSystem" SecurityContext="EXLOGON">
						<Rule Name="fException" Query="count(../Exception)" Title="Erro ao acessar tempo remoto" Text="Falha ao recuperar hora local no servidor remoto %Server%. A mensagem de exceção é: {1}" P1="../Exception/@Message" Error="Error"/>
						<Setting Key1="LocalDateTime" Format="CIMDateTime">
							<Rule Name="dNewTime" Query="$.">
								<Variable Name="INFO[LocalTime]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>
				</Object>
			</Object>
			<Rule Name="fDispatch" Query="true()" NextStep="PrepareEventLogStep"/>
		</Object>
	</Object>
	<Object Type="Step" Name="PrepareEventLogStep" Title="Coletar Logs de Eventos Relacionados ao Banco de Dados" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%INFO[FilterHour]%" Substitution="InputHour" Display="Hide"/>
			<Setting Key1="%INFO[LocalTime]%" Substitution="LocalTime" Display="Hide"/>
			<Object Type="Progress" Title="Coletando logs de eventos relacionados ao banco de dados" Text="Aguarde enquanto a ferramenta coleta entradas do log de eventos relacionado ao banco de dados do %Server%.">
				<Object Type="If" Name="Gather database event logs" Key1="true()" SecurityContext="EXLOGON">
					<Setting Key1="date-add('%LocalTime%', get-timespan(-(%InputHour% * 3600)))" Substitution="TimeFilter" SubstitutionFormat="(\d{2})/(\d{2})/(\d{4}).(\d{2}):(\d{2}):(\d{2})----$3$1$2$4$5$6.000000+000" Display="Hide"/>
					<Object Type="WMI" Key1="%EXSERVER%" Key2="root\cimv2" Key3="Win32_NTLogEvent" Key4="(SourceName = 'ESE' OR SourceName = 'ESE BACKUP' OR SourceName = 'MsExchangeIS') AND LogFile = 'Application' AND TimeWritten &gt; '%TimeFilter%'" Sort="TimeWritten DESC" TrackProgress="TrackProgress">
						<Rule Name="szException" Query="../Exception" Title="Erro ao acessar logs de eventos" Text="Falha ao recuperar logs de eventos do banco de dados no {2}. A mensagem de exceção é: {1}" P1="../Exception/@Message" S2="%Server%" Error="Error"/>
						<Setting Key1="CategoryString" Format="([\r\n])----" Substitution="Category">
							<Rule Name="szCategory" Query="pack($.)"/>
						</Setting>
						<Setting Key1="Type" Substitution="Type">
							<Rule Name="szType" Query="pack($.)"/>
						</Setting>
						<Setting Key1="EventCode" Substitution="EventID">
							<Rule Name="szEventID" Query="pack($.)"/>
						</Setting>
						<Setting Key1="SourceName" Substitution="SourceName">
							<Rule Name="szSourceName" Query="pack($.)"/>
						</Setting>
						<Setting Key1="TimeWritten" Format="(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})\.\d{6}([\+|\-])(\d{3})----$1/$2/$3 $4:$5:$6 GMT $7 $8" Substitution="Time">
							<Rule Name="szTime" Query="pack($.)"/>
						</Setting>
						<Setting Key1="ComputerName"/>
						<Setting Key1="Message" Format="([\r\n])---- " Substitution="Message">
							<Rule Name="szMessage" Query="pack($.)"/>
							<Rule Name="szMessageEntry" Query="not ($szException)" Title="{1}" Text="Hora: {2}, Tipo: {3}, Categoria: {4}, SourceName: {5}, EventID: {6}" S1="%Message%" S2="%Time%" S3="%Type%" S4="%Category%" S5="%SourceName%" S6="%EventID%"/>
							<Rule Name="szEntry" Query="pack(concat($szTime, $szType, $szEventID, $szMessage))"/>
						</Setting>
					</Object>
					<Rule Name="szAllEntries" Query="join('', $szEntry)">
						<Variable Name="INFO[EventLogs]" Scope="Children"/>
					</Rule>
					<Rule Name="iAllEntries" Query="count($szEntry)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventCount]" Scope="Children"/>
					</Rule>
					<Rule Name="fDispatch" Query="true()" NextStep="ShowEventLogStep">
						<Rule Name="PreviousStepName" Query="'PrepareEventLogStep'">
							<Variable Name="PreviousStepName" Scope="Children"/>
						</Rule>
					</Rule>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="ShowEventLogStep" Title="Mostrar Logs de Eventos" Display="Hide">
		<Object Type="Panel">
			<Object Type="Variable" Name="Display event logs" Key1="Scalar" Display="Hide">
				<Setting Key1="%PreviousStepName%" Substitution="PreviousStepName" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[EventLogs]%" Substitution="Logs" Display="Hide"/>
				<Setting Key1="%INFO[EventCount]%" Substitution="Count" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Logs de eventos relacionados ao banco de dados"/>
				<Object Type="Control" SubType="Label" Name="Label" Position="Below" Text="Nome do servidor: %Server%"/>

				<Object Type="If" Name="ZeroEntry" Key1="%Count%=0">
					<Object Type="Control" SubType="Label" Name="ZeroEntry" Position="Below" LineSpace="2" Text="Nenhum evento relacionado ao banco de dados foi encontrado no intervalo de tempo especificado."/>
				</Object>
				<Object Type="If" Name="MoreEntries" Key1="not (%Count%=0)">
					<Object Type="Control" SubType="ListViewWithPreview" Name="EventLogs" Position="Below" Height="450" Width="FullWidth" Title="Tempo,Tipo,ID de Evento,Mensagem" ColumnWidth="15,8,5,72" SelectionMode="False" Default="%Logs%"/>
				</Object>

			</Object>
			<Object Type="Control" SubType="Link" Name="Next" Position="LeftBelow" Percent="30" Text="Voltar ao centro de tarefas" NextStep="TaskCenterStep"/>
		</Object>
	</Object>

	<Object Type="Step" Name="PrepareLogDriveAnalysisStep" Title="Recuperar Informações do Log para Todos os Grupos de Armazenamento" Display="Hide">
		<Object Type="Action">
			<Object Type="If" Key1="true()" Display="HideAll">
				<Setting Key1="'1'" SQM="98;Set"/>
			</Object>
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[AllSGs]%" Substitution="AllSGs" Display="Hide"/>
				<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>

				<Object Type="If" Key1="true()" Name="Parameters">
					<Setting Key1="if('%IsSymptom%'='0', '%AllSGs%', pack('%SelectedSG%'))" Substitution="SGList"/>
					<Object Type="Variable" Name="AllSGs" Key1="Unpack" Key2="%SGList%">
						<Setting Key1="__VALUE" Substitution="SGName"/>
						<Object Type="Variable" Name="GetSGVariables" Key1="Scalar" Display="Hide">
							<Setting Key1="%INFO[%SGName%][DBUnMountCount]%" Substitution="Count" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][Selectable]%" Substitution="DBList" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][LogPath]%" Substitution="LogPath" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][RLogPath]%" Substitution="RLogPath" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][RSysPath]%" Substitution="RSysPath" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][BASENAME]%" Substitution="LogPrefix" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][LogFileSize]%" Substitution="LogFileSize" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][LongestDriveMatch]%" Substitution="LongestDriveMatch" Display="Hide"/>
							<Setting Key1="%DiskInfo[%INFO[%SGName%][LongestDriveMatch]%][FreeSpace]%" Substitution="FreeSpace" Display="Hide"/>
							<Object Type="If" Name="Analysis" Key1="%Count% &gt; 0">
								<Object Type="Variable" Name="GetDBInfo" Key1="Unpack" Key2="%DBList%">
									<Setting Key1="__VALUE" Substitution="DBName"/>
									<Object Type="Variable" Name="Database Information" Key1="Scalar" Display="Hide">
										<Setting Key1="%INFO[%SGName%][%DBName%][RMDBPATH]%" Substitution="MDBPATH" Display="Hide"/>
										<Object Type="EseInfo" Key2="%MDBPATH%" Key3="EXDRA" SecurityContext="EXLOGON" Display="Hide">
											<Rule Name="fErrorAccessDatabase" Query="../Exception/@Message" Text="Erro ao acessar o banco de dados {0}. A mensagem de erro é: {1}." S0="%MDBPATH%" P1="../Exception/@Message" Error="Error"/>
											<Setting Key1="DBSignature"/>
											<Setting Key1="LogSignature" Substitution="LogSignature" SubstitutionFormat="$---- "/>
											<Setting Key1="DBState">
												<Rule Name="fDirtyShutdown" Query="$.=2"/>
											</Setting>
											<Setting Key1="MinLogRequired" Substitution="MinLogRequired">
												<Rule Name="iMin" Query="hex(replace($., '0x',''))" Text="O arquivo de log mínimo necessário para o banco de dados '{0}' é {1}." S0="%DBName%" P1="$.">
													<Variable Name="INFO[%SGName%][%DBName%][MinLogRequired]" Scope="Children"/>
												</Rule>
											</Setting>
											<Setting Key1="MaxLogRequired" Substitution="MaxLogRequired">
												<Rule Name="iMax" Query="hex(replace($., '0x', ''))" Text="O arquivo de log máximo necessário para o banco de dados '{0}' é {1}." S0="%DBName%" P1="$.">
													<Variable Name="INFO[%SGName%][%DBName%][MaxLogRequired]" Scope="Children"/>
												</Rule>
											</Setting>
											<Setting Key1="BKInfoIncPrev"/>
											<Setting Key1="BKInfoIncPrev.GenLow">
												<Rule Name="iBKIncGenLow" Query="hex(replace($., '0x',''))">
													<Variable Name="INFO[%SGName%][%DBName%][BKIncGenLow]" Scope="Children"/>
												</Rule>
											</Setting>
										</Object>
									</Object>
								</Object>
								<Rule Name="fMinLogList" Query="join(',', $iMin)">
									<Variable Name="INFO[%SGName%][MinRequiredLogList]" Scope="Children"/>
								</Rule>
								<Rule Name="fMinGenLow" Query="join(',', $iBKIncGenLow)">
									<Variable Name="INFO[%SGName%][BKIncGenLowList]" Scope="Children"/>
								</Rule>
								<Rule Name="iCountBadDB" Query="count($fErrorAccessDatabase)">
									<Variable Name="INFO[%SGName%][BadDBCount]" Scope="Children"/>
								</Rule>
								<Rule Name="iCountDirtyDB" Query="count($fDirtyShutdown)">
									<Variable Name="INFO[%SGName%][DirtyDBCount]" Scope="Children"/>
								</Rule>
							</Object>
							<Object Type="If" Name="All DBs are mounted" Key1="%Count%=0">
								<Rule Name="iDefaultValue" Query="string('0')">
									<Variable Name="INFO[%SGName%][MinRequiredLogList]" Scope="Children"/>
									<Variable Name="INFO[%SGName%][BKIncGenLowList]" Scope="Children"/>
									<Variable Name="INFO[%SGName%][BadDBCount]" Scope="Children"/>
									<Variable Name="INFO[%SGName%][DirtyDBCount]" Scope="Children"/>
								</Rule>
							</Object>
							<Object Type="LogGenInfo" Name="LogGen" Key2="%RLogPath%" Key3="%LogPrefix%" Key4="%IsE12%" Key5="10" SecurityContext="EXLOGON">
								<Rule Name="fErrorAccessLogDir" Query="../Exception/@Message" Text="Erro ao acessar o caminho do log {0}. A mensagem de erro é: {1}." S0="%LogPath%" P1="../Exception/@Message" Error="Error"/>
								<Setting Key1="LogGenRate">
									<Rule Name="iLogGenRate" Query="roundto(($.+0.5), 0)">
										<Variable Name="INFO[%SGName%][LogGenRate]" Scope="Children"/>
									</Rule>
									<Rule Name="iLogSpaceAvailable" Query="if(not ($.=0), round(@S1 div (($iLogGenRate * @S2) div (1024*1024*1024))), 0)" S1="%FreeSpace%" S2="%LogFileSize%">
										<Variable Name="INFO[%SGName%][AvailLogSpace]" Scope="Children"/>
									</Rule>
								</Setting>

								<Setting Key1="LowestLogNumber">
									<Rule Name="iLowestLogNumber" Query="$.">
										<Variable Name="INFO[%SGName%][LowestLogNumber]" Scope="Children"/>
									</Rule>
								</Setting>

								<Setting Key1="HighestLogNumber">
									<Rule Name="iHighestLogNumber" Query="$.">
										<Variable Name="INFO[%SGName%][HighestLogNumber]" Scope="Children"/>
									</Rule>
									<Rule Name="iDaysLeftForLogGen" Query="if(@S1=0,round((1048575 - $.) div $iLogGenRate),0)" S1="%IsE12%">
										<Variable Name="INFO[%SGName%][DaysLeftForLogGen]" Scope="Children"/>
									</Rule>
									<Rule Name="fHighLogGeneration" Query="@S1=0 and $.&gt;950000" S1="%IsE12%" Error="Warning" Sev="1" Title="Aviso de geração de log" Text="A geração de log de transações atual do grupo de armazenamento '{3}' no servidor {2} está se aproximando do valor máximo. É necessário executar alguma ação para garantir que os bancos de dados não parem." S2="%EXSERVER%" S3="%SGName%" GUID="fbf10107-5e0c-4c64-a99e-730370a49147" EventID="1236"/>
									<Rule Name="fHighLogGenerationCritical" Query="@S1=0 and $.&gt;1020000" S1="%IsE12%" Error="Error" Sev="1" Title="Geração de log crítica" Text="A geração de log de transações atual do grupo de armazenamento '{3}' no servidor {2} está se aproximando do valor máximo. É necessário executar alguma ação para garantir que os bancos de dados não parem." S2="%EXSERVER%" S3="%SGName%" GUID="fbf10107-5e0c-4c64-a99e-730370a49147" EventID="2322"/>
								</Setting>

								<Setting Key1="LogFileList" Substitution="LogFileList">
									<Rule Name="szLogFileList" Query="$.">
										<Variable Name="INFO[%SGName%][LogFileList]" Scope="Children"/>
									</Rule>
								</Setting>
								<Setting Key1="TotalNumberOfLogs">
									<Rule Name="iTotalNumberOfLogs" Query="$.">
										<Variable Name="INFO[%SGName%][TotalLogNumber]" Scope="Children"/>
									</Rule>
									<Rule Name="iTotalLogSize" Query="roundto((($. * @S1) div (1024*1024*1024)), 3)" S1="%LogFileSize%">
										<Variable Name="INFO[%SGName%][TotalLogSize]" Scope="Children"/>
									</Rule>
								</Setting>
							</Object>
							<Object Type="CheckPointInfo" Name="CheckpointInfo" Key2="%RSysPath%\%LogPrefix%.chk" SecurityContext="EXLOGON">
								<Rule Name="fErrorAccessCheckPointFile" Query="../Exception/@Message" Title="Erro ao acessar arquivo de ponto de verificação" Text="Erro ao acessar arquivo de ponto de verificação ({0}\{1}.chk). A mensagem de erro é: {2}." S0="%RSysPath%" S1="%LogPrefix%" P2="../Exception/@Message" Error="Warning"/>
								<Setting Key1="CheckSum"/>
								<Setting Key1="LogSignature"/>
								<Setting Key1="CheckPoint.LGeneration">
									<Rule Name="iCheckPointGen" Query="$.">
										<Variable Name="INFO[%SGName%][CheckPointGen]" Scope="Children"/>
									</Rule>
									<Rule Name="szCheckPointGenName" Query="if(not($.=0), create-logname(@S1, $., @S2))" S1="%LogPrefix%" S2="%IsE12%">
										<Variable Name="INFO[%SGName%][CheckPointGenName]" Scope="Children"/>
									</Rule>
								</Setting>
								<Setting Key1="IncBackup.LGeneration"/>
							</Object>
							<Rule Name="iErrorCheckPointFile" Query="if($fErrorAccessCheckPointFile, 1, 0)" AlwaysEvaluate="True">
								<Variable Name="INFO[%SGName%][BadCheckPointFile]" Scope="Children"/>
							</Rule>
							<Rule Name="iErrorLogPath" Query="if($fErrorAccessLogDir, 1, 0)" AlwaysEvaluate="True">
								<Variable Name="INFO[%SGName%][BadLogPath]" Scope="Children"/>
							</Rule>
						</Object>
						<Rule Name="fDispatch" Query="true()" NextStep="DisplayLogDriveAnalysisStep"/>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="DisplayLogDriveAnalysisStep" Title="Exibir Resultados da Análise de Espaço na Unidade do Log" Display="Left">
		<Object Type="Panel" Display="Hide">
			<Object Type="Variable" Name="Display Log Drive Analysis Results" Key1="Scalar" Display="Hide">
				<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[AllSGs]%" Substitution="AllSGs" Display="Hide"/>
				<Setting Key1="%CCRClustered%" Substitution="CCRClustered" Display="Hide"/>
				<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>

				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Estatísticas da Unidade de Log de Transações do Exchange"/>
				<Object Type="Control" SubType="Label" Name="ServerName" Position="Below" LineSpace="2" Text="Nome do servidor Exchange: %EXSERVER%"/>

				<Object Type="Control" SubType="Label" Name="Label1" Position="Below" Text="Os backups online 'Normal' e 'Incremental', sensíveis ao Exchange, removem automaticamente os arquivos de log de transações em excesso. Em circunstâncias normais, você deve confiar em seu ciclo de backup habitual para gerenciar o espaço do disco de log."/>
				<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="0" Text="A remoção de arquivos de log de transações sofrerá um atraso se algum dos bancos de dados no grupo de armazenamento estiver offline quando for realizado um backup do grupo de armazenamento. Um backup de todos os bancos de dados de um grupo de armazenamento deve ser feito para que qualquer arquivo de log de transações possa ser removido."/>

				<Object Type="If" Key1="true()" Name="Parameters">
					<Setting Key1="if('%IsSymptom%'='0', '%AllSGs%', pack('%SelectedSG%'))" Substitution="SGList"/>
					<Object Type="Variable" Name="All SGs" Key1="Unpack" Key2="%SGList%">
						<Setting Key1="__VALUE" Substitution="SGName">
							<Rule Name="szSGNamePack" Query="pack($.)"/>
						</Setting>
						<!-- Check log disk free space -->
						<Object Type="Variable" Name="SGInfo" Key1="Scalar" Display="Hide">
							<Setting Key1="%DiskInfo[%INFO[%SGName%][LongestDriveMatch]%][FreeSpace]%" Substitution="FreeSpace" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][LogPath]%" Substitution="LogPath" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][LogFileSize]%" Substitution="LogFileSize" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][DBMountCount]%" Substitution="MountCount" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][DBUnMountCount]%" Substitution="UnmountCount" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][LogGenRate]%" Substitution="LogGenRate" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][BadDBCount]%" Substitution="BadDBCount" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][DirtyDBCount]%" Substitution="DirtyDBCount" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][BadLogPath]%" Substitution="BadLogPath" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][TotalLogSize]%" Substitution="TotalLogSize" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][AvailLogSpace]%" Substitution="AvailLogSpace" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][LCR]%" Substitution="IsLCR" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][SCR]%" Substitution="IsSCR" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][RSG]%" Substitution="IsRSG" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][HighestLogNumber]%" Substitution="HighestLogNumber" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][DaysLeftForLogGen]%" Substitution="DaysLeftForLogGen" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][CircularLog]%" Substitution="CircularLog" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][CheckPointGen]%" Substitution="CheckPointGen" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][MinRequiredLogList]%" Substitution="MinReqLogNum" Format="MinNonZero" Display="Hide"/>
							<Object Type="If" Name="CheckpointGenGreaterThanMinReqNumRSG" Key1="'%IsRSG%'='True' and %MinReqLogNum% &gt; 0 and %CheckPointGen% &gt; %MinReqLogNum%">
								<Object Type="Control" SubType="Label" Position="Below" FontStyle="Bold" Width="FullWidth" Text="Nome do grupo de armazenamento: %SGName%"/>
								<Object Type="Control" SubType="Label" Position="Below" Text="Caminho do Log: %LogPath%"/>
								<Object Type="If" Name="DirtyDBinRSG" Key1="%DirtyDBCount% &gt; 0">
									<Object Type="Control" SubType="Label" Position="Below" ForeColor="Red" Text="O número de geração ({1}) dentro do arquivo de ponto de verificação é maior que o número mínimo necessário de arquivos de log de transações ({2}) dentro dos bancos de dados. Você deve remover o arquivo de ponto de verificação para recuperar os bancos de dados de desligamento anormal." S1="%CheckPointGen%" S2="%MinReqLogNum%"/>
								</Object>
								<Object Type="If" Name="NoDirtyDBinRSG" Key1="%DirtyDBCount%=0">
									<Object Type="Control" SubType="Label" Position="Below" Text="O número de geração ({1}) dentro do arquivo de ponto de verificação é maior que o número mínimo necessário de arquivos de log de transações ({2}) dentro dos bancos de dados." S1="%CheckPointGen%" S2="%MinReqLogNum%"/>
								</Object>
							</Object>
							<Object Type="If" Name="SkipRSG" Key1="not ('%IsRSG%'='True')">
								<Object Type="Control" SubType="Label" Position="Below" FontStyle="Bold" Width="FullWidth" Text="Nome do grupo de armazenamento: %SGName%"/>
								<Object Type="Control" SubType="Label" Position="Below" Text="Caminho do Log: %LogPath%"/>

								<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="Espaço em disco disponível para log (GB): %FreeSpace%"/>
								<Object Type="If" Name="DiskSpace1" Key1="%FreeSpace% &lt; 0.5">
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" ForeColor="Red" Text="Sem espaço em disco (menos de 500 MB)"/>
									<Rule Name="fFreeSpaceLessThan500M" Query="@S1 &lt; 0.5" S1="%FreeSpace%" Text="O espaço restante na unidade de log é inferior a 500 MB." Error="Error"/>
								</Object>
								<Object Type="If" Name="DiskSpace2" Key1="(%FreeSpace% &lt; 3) and (%FreeSpace% &gt; 0.5)">
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="Menos de 3 GB de espaço livre restantes"/>
									<Rule Name="fFreeSpaceLessThan3G" Query="@S1 &lt; 3" S1="%FreeSpace%" Text="O espaço restante na unidade de log é inferior a 3 GB." GUID="620c733e-ce53-43ca-bd34-d2242de77795" Error="Warning"/>
								</Object>

								<Object Type="If" Name="NotBadLogPath" Key1="(%BadLogPath%=0) and (%LogGenRate% &gt; 0)" Display="Hide">
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="Logs (GB): %TotalLogSize%"/>
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="Taxa média de geração de logs diária: %LogGenRate%"/>
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="Número de dias estimado para execução do servidor Exchange para que o espaço da unidade de log disponível atualmente se esgote: %AvailLogSpace%"/>
									<Object Type="If" Name="DiskSpace3" Key1="((%LogGenRate%*%LogFileSize%*7) div (1024*1024*1024)) &gt; %FreeSpace%">
										<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" ForeColor="Red" Text="Menos de 7 dias de espaço em log restante."/>
										<Rule Name="fLessThanOneWeekLogSpace" Query="((@S1 * @S3 * 7) div (1024*1024*1024)) &gt; @S2" Title="Menos de 7 dias de espaço em log restante." Text="Restam {2} GB de espaço livre na unidade do log para o grupo de armazenamento ({4}). Essa quantidade de espaço livre não é suficiente para este grupo de armazenamento ser executado por mais 7 dias." S1="%LogGenRate%" S2="%FreeSpace%" S3="%LogFileSize%" S4="%SGName%" GUID="4e212b48-fdf8-485d-bf72-15a7763c43ab" Error="Error"/>
									</Object>
									<Object Type="If" Name="LogGeneration" Key1="%IsE12%=0 and %HighestLogNumber% &gt; 950000 and %HighestLogNumber% &lt;= 1020000">
										<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="A geração do log de transações atual está se aproximando do valor máximo. Estimamos %DaysLeftForLogGen% dias até que o valor máximo seja atingido."/>
									</Object>
									<Object Type="If" Name="LogGeneration" Key1="%IsE12%=0 and %HighestLogNumber% &gt; 1020000">
										<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" ForeColor="Red" Text="A geração do log de transações atual está se aproximando do valor máximo. Estimamos %DaysLeftForLogGen% dias até que o valor máximo seja atingido."/>
									</Object>
								</Object>
								<Object Type="If" Name="CircularLog" Key1="%CircularLog%=1" Display="Hide">
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="Log circular habilitado"/>
								</Object>
								<Object Type="If" Name="MountCount" Key1="%MountCount% &gt; 0" Display="Hide">
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="%MountCount% bancos de dados estão montados"/>
								</Object>
								<Object Type="If" Name="UnMountCount" Key1="%UnmountCount% &gt; 0" Display="Hide">
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="%UnmountCount% bancos de dados estão desmontados"/>
								</Object>
								<Object Type="If" Name="DirtyDBCount" Key1="%DirtyDBCount% &gt; 0" Display="Hide">
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="%DirtyDBCount% bancos de dados estão no estado de 'Desligamento Anormal'"/>
								</Object>
								<Object Type="If" Name="BadDBOrLogPath" Key1="(%BadDBCount% &gt; 0) or (%BadLogPath% &gt; 0)" Display="Hide">
									<Object Type="Control" SubType="Label" Position="Below" LineSpace="0" Text="Erro ao acessar o caminho do log ou os bancos de dados"/>
								</Object>
								<Object Type="If" Name="CheckpointGenLessthanMinRegNum" Key1="%MinReqLogNum% &gt; 0 and %CheckPointGen% &gt; %MinReqLogNum%">
									<Object Type="If" Name="HasDirtyDB" Key1="%DirtyDBCount% &gt; 0">
										<Object Type="Control" SubType="Label" Position="Below" ForeColor="Red" Text="O número de geração dentro do arquivo de ponto de verificação ({1}) é maior que o número mínimo necessário de arquivos de log de transações dentro dos bancos de dados ({2}). Você deve remover o arquivo de ponto de verificação para recuperar os bancos de dados de desligamento anormal." S1="%CheckPointGen%" S2="%MinReqLogNum%"/>
									</Object>
									<Object Type="If" Name="NoDirtyDB" Key1="%DirtyDBCount%=0">
										<Object Type="Control" SubType="Label" Position="Below" Text="O número de geração dentro do arquivo de ponto de verificação ({1}) é maior que o número mínimo necessário de arquivos de log de transações dentro dos bancos de dados ({2})." S1="%CheckPointGen%" S2="%MinReqLogNum%"/>
									</Object>
								</Object>

								<Object Type="Group">
									<Rule Name="szSGMovable" Query="if((@S1=0 and @S2=0 and @S3=0 and @S4=0 and @S5=0), $szSGNamePack)" S1="%IsLCR%" S2="%IsSCR%" S3="%BadLogPath%" S4="%CircularLog%" S5="%BadDBCount%"/>
								</Object>
							</Object>
						</Object>
						<Rule Name="szMovableSGs" Query="join('', $szSGMovable)">
							<Variable Name="INFO[LogMove][MovableSGList]" Scope="Children"/>
						</Rule>
						<Rule Name="szMovableSGCount" Query="count($szSGMovable)">
							<Variable Name="INFO[LogMove][MovableSGCount]" Scope="Children"/>
						</Rule>
					</Object>

					<Object Type="If" Name="CCRClustered" Key1="'%CCRClustered%'='1'" Display="Hide">
						<Object Type="Control" SubType="Label" Position="LeftBelow" LineSpace="2" Text="Este servidor está usando CCR (replicação contínua em cluster). Esta ferramenta não oferece suporte para a execução de movimentos de log em um servidor em ambiente de CCR." ForeColor="Red"/>
					</Object>

					<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
					<Object Type="If" Name="NextLabel" Key1="'%CCRClustered%'='0'" Display="Hide">
						<Object Type="If" Name="IsNotSymptom" Key1="'%IsSymptom%'='0'">
							<Object Type="Control" SubType="Link" Name="LogDriveSpaceWizard" Position="NextTo" Percent="30" Text="Selecionar um grupo de armazenamento para movimentação do log" NextStep="SelectLogMoveSGStep"/>
						</Object>
						<Object Type="If" Name="IsSymptom" Key1="'%IsSymptom%'='1'">
							<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar" NextStep="PrepareLogMoveStep">
								<Rule Name="szLogMoveSGName" Query="@S1" S1="%SelectedSG%">
									<Variable Name="INFO[LogMove][SGName]" Scope="Children"/>
								</Rule>
							</Object>
						</Object>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectLogMoveSGStep" Title="Selecionar um Grupo de Armazenamento para Movimentação do Log" Display="Hide">
		<Object Type="Panel">
			<Object Type="If" Key1="true()" Display="HideAll">
				<Setting Key1="'1'" SQM="99;Set"/>
			</Object>
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][MovableSGList]%" Substitution="SGList" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][MovableSGCount]%" Substitution="SGCount" Display="Hide"/>
				<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecionar um Grupo de Armazenamento para Movimentação do Log"/>
				<Object Type="Control" SubType="Label" Name="ServerLabel" Position="Below" LineSpace="2" Text="Nome do servidor: %Server%"/>

				<Object Type="If" Name="SGAvailable" Key1="%SGCount% &gt; 0">
					<Object Type="Control" SubType="Label" Name="Label1" Position="Below" LineSpace="2" Text="Alguns dos arquivos de log de transações podem ser movidos para outro local sem desmontar os bancos de dados ou afetar as operações atuais. Essa ferramenta determinará quais arquivos podem ser removidos com segurança e os copiará para o local especificado."/>
					<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="2" Text="Se você restaurar um backup mais antigo do que esses arquivos de log, será solicitado que esses arquivos coloquem o backup restaurado em um estado atual."/>

					<Object Type="If" Name="IsE12" Key1="%IsE12%=1">
						<Object Type="Control" SubType="Label" Name="Label3" Position="Below" LineSpace="2" Text="Se o grupo de armazenamento não tiver arquivos de log ou se ele estiver habilitado para CCR (replicação contínua em cluster), SCR (replicação contínua em espera) ou LCR (replicação contínua local), ele não será listado a seguir. "/>
					</Object>
					<Object Type="If" Name="IsNotE12" Key1="%IsE12%=0">
						<Object Type="Control" SubType="Label" Name="Label31" Position="Below" LineSpace="2" Text="Se o grupo de armazenamento não possuir arquivos de log, ele não será listado a seguir. "/>
					</Object>

					<Object Type="Control" SubType="Label" Name="ListBoxLabel" Position="Below" LineSpace="2" Text="Grupo(s) de armazenamento disponível(veis)"/>
					<Object Type="Control" SubType="ListBox" Name="ListBox" Position="LeftBelow" LineSpace="0" Default="%SGList%">
						<Setting Key1="SelectedValue">
							<Rule Name="szSelectedSG" Query="$.">
								<Variable Name="INFO[LogMove][SGName]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>
				</Object>
				
				<Object Type="If" Name="NoSGAvailable" Key1="%SGCount%=0">
					<Object Type="Control" SubType="Label" Name="NoSGAvailableLabel" Position="Below" Text="Não existem grupos de armazenamento disponíveis para a movimentação de log. Isso pode ser causado pelas seguintes razões: 1) arquivos de banco de dados danificados ou ausentes, 2) arquivos de log de transações insuficientes para a movimentação do log, 3) o log circular está habilitado, 4) a CCR (replicação contínua em cluster), a SCR (replicação contínua em espera) ou a LCR (replicação contínua local) está habilitada."/>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="If" Name="SGAvailableLink" Key1="%SGCount% &gt; 0">
					<Object Type="Control" SubType="Link" Name="PrepareLogMoveLink" Position="NextTo" Percent="30" Text="Confirmar opções para movimentação de log" NextStep="PrepareLogMoveStep"/>
				</Object>
				<Object Type="If" Name="SGAvailableLink" Key1="%SGCount%=0">
					<Object Type="Control" SubType="Link" Name="TaskCenterLink" Position="LeftBelow" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
				</Object>
			</Object>
		</Object>
	</Object>
	
	
	<Object Type="Step" Name="PrepareLogMoveStep" Title="Preparar Ação para Movimentação de Log" Display="Hide">
		<Object Type="Action">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][BASENAME]%" Substitution="LogPrefix" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][LogFileList]%" Substitution="FileList" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][SGName]%" Substitution="SGName" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][SelectableDBs]" Substitution="DBList" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][LowestLogNumber]%" Substitution="LowestLogNumber" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][HighestLogNumber]%" Substitution="HighestLogNumber" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][CheckPointGen]%" Substitution="CheckPointGen" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][BadCheckPointFile]%" Substitution="BadCheckPointFile" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][CheckPointGenName]%" Substitution="CheckPointGenName" Display="Hide"/>
				<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>
				<Object Type="Variable" Name="MinRequireLog" Key1="Scalar" Display="Hide">
					<Setting Key1="%INFO[%SGName%][BKIncGenLowList]%" Substitution="MinNonZeroBkIncLog" Format="MinNonZero" Display="Hide">
						<Rule Name="iMinBkIncLog" Query="$.">
							<Variable Name="INFO[LogMove][MinBkIncLog]" Scope="Children"/>
						</Rule>
					</Setting>
					<Setting Key1="%INFO[%SGName%][BKIncGenLowList]%" Substitution="MaxBkIncLog" Format="Max" Display="Hide">
						<Rule Name="iMaxBkIncLog" Query="$.">
							<Variable Name="INFO[LogMove][MaxBkIncLog]" Scope="Children"/>
						</Rule>
					</Setting>

					<Setting Key1="%INFO[%SGName%][LogFileSize]%" Substitution="LogFileSize"/>
					<Setting Key1="%INFO[%SGName%][MinRequiredLogList]%" Substitution="MaxLog" Format="Max"/>
					<Setting Key1="%INFO[%SGName%][MinRequiredLogList]%" Substitution="MinLog" Format="Min"/>
					<Setting Key1="%INFO[%SGName%][MinRequiredLogList]%" Substitution="MinNonZeroLog" Format="MinNonZero">
						<Rule Name="iMinRemovableLog" Query="if((@S1=0 and @S2=0), @S3, if(@S4 &gt; @S3, @S3, 0))" S1="%MinLog%" S2="%MaxLog%" S3="%LowestLogNumber%" S4="%MinNonZeroLog%">
							<Variable Name="INFO[LogMove][MinRemovableLog]" Scope="Children"/>
						</Rule>
						<Rule Name="szMinRemovableLog" Query="if(not ($iMinRemovableLog=0), create-logname(@S1, $iMinRemovableLog, @S2))" S1="%LogPrefix%" S2="%IsE12%">
							<Variable Name="INFO[LogMove][MinRemovableLogName]" Scope="Children"/>
						</Rule>
						<Rule Name="iMaxRemovableLog1" Query="if((@S1=0 and @S2=0), @S3, if(@S4 &gt; @S5, @S4 -1, 0))" S1="%MinLog%" S2="%MaxLog%" S3="%HighestLogNumber%" S4="%MinNonZeroLog%" S5="%LowestLogNumber%"/>
						<Rule Name="iMaxRemovableLog" Query="if(($iMaxRemovableLog1 &gt; 0), if(@S3=0, if(($iMaxRemovableLog1 &gt;= @S2), @S2 -1, $iMaxRemovableLog1), $iMaxRemovableLog1), 0)" S2="%CheckPointGen%" S3="%BadCheckPointFile%">
							<Variable Name="INFO[LogMove][MaxRemovableLog]" Scope="Children"/>
						</Rule>
						<Rule Name="szMaxRemovableLog" Query="if(not ($iMaxRemovableLog=0), create-logname(@S1, $iMaxRemovableLog, @S2))" S1="%LogPrefix%" S2="%IsE12%">
							<Variable Name="INFO[LogMove][MaxRemovableLogName]" Scope="Children"/>
						</Rule>
						<Rule Name="iRemovableLogNumber" Query="if((($iMaxRemovableLog &gt; 0) and ($iMinRemovableLog &gt; 0) and ($iMaxRemovableLog &gt;= $iMinRemovableLog)), ($iMaxRemovableLog -$iMinRemovableLog + 1), 0)">
							<Variable Name="INFO[LogMove][RemovableLogNumber]" Scope="Children"/>
						</Rule>
						<Rule Name="iRemovableLogSize" Query="if($iRemovableLogNumber,roundto(($iRemovableLogNumber * @S1 div (1024*1024*1024)), 3),0)" S1="%LogFileSize%">
							<Variable Name="INFO[LogMove][RemovableLogSize]" Scope="Children"/>
						</Rule>
					</Setting>

					<Rule Name="fDispatch" Query="true()" NextStep="ConfirmLogMoveStep"/>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="ConfirmLogMoveStep" Title="Confirmar Opções para Movimentação de Log" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][SGName]%" Substitution="SGNAME" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][MinRemovableLog]%" Substitution="MinRemovableLog" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][MinRemovableLogName]%" Substitution="MinRemovableLogName" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][MaxRemovableLog]%" Substitution="MaxRemovableLog" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][MaxRemovableLogName]%" Substitution="MaxRemovableLogName" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][MinBkIncLog]%" Substitution="MinBkIncLog" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][MaxBkIncLog]%" Substitution="MaxBkIncLog" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][RemovableLogNumber]%" Substitution="RemovableLogNumber" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][RemovableLogSize]%" Substitution="RemovableLogSize" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][LogPath]%" Substitution="LogPath" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][LogFileSize]%" Substitution="LogFileSize" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][CheckPointGen]%" Substitution="CheckPointGen" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][BadCheckPointFile]%" Substitution="BadCheckPointFile" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][CheckPointGenName]%" Substitution="CheckPointGenName" Display="Hide"/>
				<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>
				<Setting Key1="%EventDisplayStepID%" Substitution="EventDisplayStepID" Display="Hide"/>

				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Confirmar Configuração para Movimentação de Log"/>
				<Object Type="Control" SubType="Label" Name="Label1" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento selecionado: %SGNAME%"/>
				<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="0" Text="Caminho do log do grupo de armazenamento selecionado: %LogPath%"/>
				<Object Type="If" Name="VerifyCheckPointFile" Key1="'%BadCheckPointFile%'='0'">
					<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="0" Text="Nome do Arquivo de Log para Ponto de Verificação Atual: %CheckPointGenName%"/>
				</Object>

				<Object Type="If" Name="MinLogNumber" Key1="%MinRemovableLog% &gt; 0" Display="Hide">
					<Object Type="Control" SubType="Label" Name="Label3" Position="Below" Text="O Menor Log Removível: %MinRemovableLogName%"/>
				</Object>

				<Object Type="If" Name="MinLogNumber" Key1="%MaxRemovableLog% &gt; 0" Display="Hide">
					<Object Type="Control" SubType="Label" Name="Label4" Position="Below" LineSpace="0" Text="O Maior Log Removível: %MaxRemovableLogName%"/>
				</Object>

				<Object Type="Control" SubType="Label" Name="Label6" Position="Below" LineSpace="0" Text="Número de Logs Removíveis: %RemovableLogNumber%"/>
				<Object Type="Control" SubType="Label" Name="Label7" Position="Below" LineSpace="0" Text="Espaço Recuperável (GB): %RemovableLogSize% "/>

				<Object Type="If" Name="ifLabel" Key1="not (%MinBkIncLog%=0 and %MaxBkIncLog%=0)" Display="Hide">
					<Object Type="Control" SubType="Label" Name="Label8" Position="Below" Text="Aviso: Esses arquivos de log de transações são necessários para futuros backups incrementais ou diferenciais."/>
					<Object Type="Control" SubType="Label" Name="Label9" Position="Below" LineSpace="0" Text="Número de Log Mínimo: %MinBkIncLog%"/>
					<Object Type="Control" SubType="Label" Name="Label9" Position="Below" LineSpace="0" Text="Número de Log Máximo: %MaxBkIncLog%"/>
				</Object>

				<Object Type="If" Name="NonZeroRemovableLogs" Key1="%RemovableLogNumber% &gt; 0" Display="Hide">
					<!-- Select a new path -->
					<Object Type="Control" SubType="Label" Name="LogDirectoryLabel" Position="LeftBelow" LineSpace="2" Text="Selecione um local de backup: "/>
					<Object Type="Control" SubType="FileDialog" Text="Procurar..." Title="Selecionar o Diretório de Backup de Log" DialogType="OpenFolder" Name="LogPath" Position="NextTo" Percent="30" Width="300" Flags="ReadOnly=True|AllowCreate=True">
						<Setting Key1="NewLogPath" Substitution="NewLogPath">
							<Rule Name="fLogPathEmpty" Query="$.=''" Text="O diretório de log especificado está vazio. Especifique um diretório de log válido." Error="Error" NextStep="DisplayLogMoveStatusStep">
								<Rule Name="szBadTitle" Query="string(@Title)" Title="O diretório de log especificado está vazio. Especifique um diretório de log válido.">
									<Variable Name="INFO[LogMove][Result][Title]" Scope="Children"/>
								</Rule>
							</Rule>
							<Rule Name="szLogPathSetVar" Query="$.">
								<Variable Name="INFO[LogMove][NewLogPath]" Scope="Children"/>
							</Rule>
							<Rule Name="iLogFileSize" Query="@S1" S1="%LogFileSize%">
								<Variable Name="INFO[LogMove][LogFileSize]" Scope="Children"/>
							</Rule>
							<Rule Name="szPreviousStepName" Query="'ConfirmLogMoveStep'">
								<Variable Name="PreviousStepName" Scope="Children"/>
							</Rule>
						</Setting>
						<Event Type="Changed">
							<Action Type="Enable" ControlName="Next" Query="not (control-value('LogPath')='')"/>
						</Event>
					</Object>
				</Object>

				<Object Type="If" Name="WarningLabel" Key1="%RemovableLogNumber% &gt; 0">
					<Object Type="Control" SubType="Label" Name="Label10" Position="LeftBelow" Text="Se você copiar e remover esses arquivos de log, deverá executar um backup Normal (completo) de todos os bancos de dados no grupo de armazenamento antes de fazer um backup Diferencial ou Incremental."/>
				</Object>
				<Object Type="If" Name="WarningLabel2" Key1="%RemovableLogNumber%=0">
					<Object Type="Control" SubType="Label" Name="Label11" Position="LeftBelow" Text="Nenhum arquivo de log de transações disponível."/>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="If" Name="MoveLogs" Key1="%RemovableLogNumber% &gt; 0" Display="Hide">
					<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Flags="Enabled=False" Text="Executar ação de movimentação de log">
						<Rule Name="fDispatch" Query="not ($fLogPathEmpty)" NextStep="LogMoveSpaceCheckStep" AlwaysEvaluate="True"/>
					</Object>
				</Object>
				<Object Type="If" Name="NoMovableLogs" Key1="%RemovableLogNumber%=0">
					<Object Type="If" Name="IsSymptom" Key1="'%IsSymptom%'='0'">
						<Object Type="Control" SubType="Link" Name="TaskCenter" Position="NextTo" Percent="30" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
					</Object>
					<Object Type="If" Name="IsSymptom" Key1="'%IsSymptom%'='1'">
						<Object Type="Control" SubType="Link" Name="Goto" Position="NextTo" Percent="30" Text="Voltar à página de exibição de eventos" NextStep="%EventDisplayStepID%"/>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="LogMoveSpaceCheckStep" Title="Verificação de Espaço para Movimentação de Log" Display="Left">
		<Object Type="Action" Display="Hide">
			<Object Type="Variable" Name="Disk Free Space Check" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[LogMove][MinRemovableLog]%" Substitution="MinValue" Display="Hide">
					<Rule Name="iMin" Query="$."/>
				</Setting>
				<Setting Key1="%INFO[LogMove][MaxRemovableLog]%" Substitution="MaxValue" Display="Hide">
					<Rule Name="iMax" Query="$."/>
				</Setting>
				<Setting Key1="%INFO[LogMove][NewLogPath]%" Substitution="NewLogPath" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][LogFileSize]%" Substitution="LogFileSize" Display="Hide"/>
				<Object Type="Command" Key2="cmd" Key3="/C dir /-C &quot;%NewLogPath%&quot;" SecurityContext="EXLOGON">
					<Rule Name="fException" Query="../Exception/@Message" Title="Erro ao recuperar espaço em disco no novo caminho do log" Text="Erro ao recuperar espaço em disco no novo caminho do log {0}. A mensagem de erro é: {1}." S0="%NewLogPath%" P1="../Exception/@Message" Error="Error"/>
					<Rule Name="szPreviousStepName" Query="'LogMoveSpaceCheckStep'">
						<Variable Name="PreviousStepName" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle" Query="string(@Title)" Title="Ocorreu um erro com o novo caminho de log">
						<Variable Name="INFO[LogMove][Result][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="fFailToAccess" Query="not ($szDiskSpace)" Title="Erro ao recuperar espaço em disco no novo caminho do log" Text="Erro ao recuperar espaço em disco no novo caminho do log ({1})" S1="%NewLogPath%" Error="Error" AlwaysEvaluate="True"/>
					<Rule Name="fNotEnoughDiskSpace" Query="$szDiskSpace and $fNotEnoughSpace" Title="Espaço insuficiente em disco no novo caminho do log" Text="Não há espaço em disco suficiente no novo caminho do log ({1})." S1="%NewLogPath%" Error="Error" AlwaysEvaluate="True"/>
					<Rule Name="fFailure" Query="$fException or $fFailToAccess or $fNotEnoughDiskSpace or $fNotEmpty" NextStep="DisplayLogMoveStatusStep" AlwaysEvaluate="True"/>
					<Rule Name="fSuccess" Query="not ($fFailure)" NextStep="LogMoveActionStep" AlwaysEvaluate="True"/>

					<Setting Key1="RegexExecute" Key2="((\d+)([^\d\n]+))\Z" Key3="stdout"/>
					<Setting Key1="RegexExtract" Key2="0" Key3="0" Key4="0" Format="(\d+)\s([\S\s]*)----$1" Substitution="FreeSpace">
						<Rule Name="szDiskSpace" Query="roundto((@S1 div (1024*1024*1024)), 3)" S1="%FreeSpace%"/>
						<Rule Name="fNotEnoughSpace" Query="((($iMax -$iMin) * @S1) div (1024*1024*1024)) &gt; $szDiskSpace" S1="%LogFileSize%"/>
					</Setting>
					<!-- Check Empty Path -->
					<Object Type="File" Key2="%NewLogPath%" SecurityContext="EXLOGON">
						<Setting Key1="Files" Key2="*.*" Retrieve="CountOnly">
							<Rule Name="fNotEmpty" Query="$. &gt; 0" Title="O caminho não está vazio" Text="O caminho de backup ({1}) não está vazio." S1="%NewLogPath%" Error="Error"/>
						</Setting>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="LogMoveActionStep" Title="Ação para Movimentação de Log" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%INFO[LogMove][SGName]%" Substitution="SGName" Display="Hide"/>
			<Setting Key1="%INFO[LogMove][NewLogPath]%" Substitution="NewLogPath" Display="Hide"/>
			<Object Type="Progress" Title="Copiando e Removendo Logs" Text="Aguarde enquanto a ferramenta copia os logs de %SGName% para %NewLogPath%.">
				<Object Type="Variable" Name="Variable Info" Key1="Scalar" Display="Hide">
					<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
					<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
					<Setting Key1="%LocalMachineName%" Substitution="LocalMachineName" Display="Hide"/>
					<Setting Key1="%INFO[LogMove][SGName]%" Substitution="SGName" Display="Hide"/>
					<Setting Key1="%INFO[LogMove][NewLogPath]%" Substitution="NewLogPath" Display="Hide"/>
					<Setting Key1="%INFO[%INFO[LogMove][SGName]%][LogPath]%" Substitution="LogPath" Display="Hide"/>
					<Setting Key1="%INFO[%INFO[LogMove][SGName]%][RLogPath]%" Substitution="RLogPath" Display="Hide"/>
					<Setting Key1="%INFO[%INFO[LogMove][SGName]%][BASENAME]%" Substitution="LogPrefix" Display="Hide"/>
					<Setting Key1="%INFO[LogMove][FilePattern]%" Substitution="FilePattern" Display="Hide"/>
					<Setting Key1="%INFO[%INFO[LogMove][SGName]%][LogFileList]%" Substitution="FileList" Display="Hide"/>
					<Setting Key1="%INFO[LogMove][MinRemovableLog]%" Substitution="MinMovableLog" Display="Hide"/>
					<Setting Key1="%INFO[LogMove][MaxRemovableLog]%" Substitution="MaxMovableLog" Display="Hide"/>
					<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1000" Text="Inicie a cópia e remoção dos arquivos de log de transações de{1} para {2} no servidor {3}." S1="%NewLogPath%" S2="%SGName%" S3="%Server%"/>
					<Object Type="If" Name="CheckMachineName" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
						<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1000" Text="Inicie a cópia e remoção dos arquivos de log de transações de {1} para {2} no servidor {3}." S1="%NewLogPath%" S2="%SGName%" S3="%Server%"/>
					</Object>

					<Object Type="File" Key2="%RLogPath%" TrackProgress="TrackProgress" SecurityContext="EXLOGON">
						<Rule Name="fErrorAccessLogDirectory" Query="count(../Exception) &gt;0" Title="Erro ao acessar o diretório de log" Text="Erro ao acessar o diretório de log {0}. Mensagem de erro: {1}." S0="%LogPath%" P1="../Exception/@Message" Error="Error" GUID="4bfee6b4-1c51-472a-ac92-efd14fdecb1f"/>
						<Setting Key1="Files" Key2="%FilePattern%" Substitution="LogFiles" SubstitutionFormat="$----;"/>
						<Object Type="FileOp" Name="Copy Operation" Key1="Initial">
							<Object Type="Variable" Name="LogFileVariable" Key1="Unpack" Key2="%FileList%">
								<Setting Key1="__VALUE" Substitution="FileName" Format=".(.*\\)(.*)$----$2"/>
								<Setting Key1="__VALUE" Substitution="LogFile"/>
								<Object Type="LogInfo" Key2="%LogFile%" Key3="ExDRA">
									<Setting Key1="GenerationInDecimal" Substitution="GenNumber"/>
									<Object Type="If" Name="LogMove" Key1="%GenNumber% &gt;= %MinMovableLog% and %GenNumber% &lt;= %MaxMovableLog%">
										<Object Type="Cache" Name="AllFileList" Key1="AddValue" Key2="AllFileList" Key3="%LogFile%"/>
										<Object Type="FileOp" Name="CopyLog" Key1="Copy" Key2="%LogFile%" Key3="%NewLogPath%\%FileName%">
											<Rule Name="fMoveException" Query="count(../Exception) &gt;0" Title="Erro ao Mover Arquivo de Log" Text="Erro ao Mover Arquivo de Log {0} para {2}. Mensagem de erro: {1}." S0="%LogFile%" P1="../Exception/@Message" S2="%NewLogPath%" Error="Error"/>
											<Setting Key1="__VALUE" Substitution="CopyResult">
												<Rule Name="szMessageOK" Query="if($.='True', string(@Text))" Text="Arquivo de log %LogFile% copiado com êxito para %NewLogPath%." S1="%LogFile%" S2="%NewLogPath%"/>
											</Setting>
											<Object Type="If" Name="CheckCopyResult" Key1="'%CopyResult%'='True'" Display="Hide">
												<Object Type="Cache" Name="FileList" Key1="AddValue" Key2="FileList" Key3="%LogFile%"/>
											</Object>
											<Object Type="SaveLogNow" Name="ForceLogSave"/>
										</Object>
									</Object>
								</Object>
							</Object>
						</Object>

						<Object Type="Cache" Name="AllFileList" Key1="DumpValue" Key2="AllFileList" Key4=",">
							<Setting Key1="__VALUE" Substitution="AllFileList"/>
							<Object Type="Cache" Name="FileList" Key1="DumpValue" Key2="FileList" Key4=",">
								<Setting Key1="__VALUE" Substitution="FileList"/>
								<Object Type="If" Name="Remove Operation" Key1="'%AllFileList%'='%FileList%'">
									<Object Type="Cache" Name="FileList" Key1="Dump" Key2="FileList">
										<Setting Key1="__VALUE" Substitution="LogFileName"/>
										<Object Type="FileOp" Key1="Remove" Key2="%LogFileName%">
											<Rule Name="fRemoveException" Query="count(../Exception) &gt;0" Title="Erro ao Remover Arquivo de Log" Text="Erro ao remover arquivo de log ({2}). Mensagem de erro: {1}." P1="../Exception/@Message" S2="%LogFileName%" Error="Error"/>
											<Rule Name="szMessageRemoveOK" Query="if(not ($fRemoveException), string(@Text))" Text="Arquivo de log copiado e removido com êxito (%LogFileName%)." S2="%LogFileName%" Error="Information"/>
										</Object>
									</Object>
								</Object>
							</Object>
						</Object>

						<Rule Name="szTitleFail" Query="string(@Title)" Title="Falha ao copiar os arquivos de log para o novo local ou ao remover os logs"/>
						<Rule Name="szTitleOK" Query="string(@Title)" Title="Êxito ao copiar os arquivos de log para o novo local e remover os logs"/>
						<Rule Name="szTitle" Query="if(((count($fMoveException)=0) and (count($fRemoveException)=0)),$szTitleOK,$szTitleFail)" AlwaysEvaluate="True">
							<Variable Name="INFO[LogMove][Result][Title]" Scope="Children"/>
						</Rule>

						<Rule Name="fDispatch" Query="true()" NextStep="DisplayLogMoveStatusStep">
							<Rule Name="szPreviousStep" Query="'LogMoveActionStep'">
								<Variable Name="PreviousStepName" Scope="Children"/>
							</Rule>
						</Rule>
					</Object>
					<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalize a cópia e remoção dos arquivos de log de transações de {1} para {2} no servidor {3}." S1="%NewLogPath%" S2="%SGName%" S3="%Server%"/>
					<Object Type="If" Name="CheckMachineName2" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
						<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalize a cópia e remoção dos arquivos de log de transações de{1} para {2} no servidor {3}." S1="%NewLogPath%" S2="%SGName%" S3="%Server%"/>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="DisplayLogMoveStatusStep" Title="Exibir Status de Movimentação de Log" Display="Hide">
		<Object Type="Panel">
			<Object Type="Variable" Name="VariableInfo" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][SGName]%" Substitution="SGName" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][Result][Title]%" Substitution="Title" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][NewLogPath]%" Substitution="NewLogPath" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[LogMove][SGName]%][LogPath]%" Substitution="LogPath" Display="Hide"/>
				<Setting Key1="%PreviousStepName%" Substitution="PreviousStepName" Display="Hide"/>
				<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>
				<Setting Key1="%EventDisplayStepID%" Substitution="EventDisplayStepID" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="%Title%"/>
				<Object Type="Control" SubType="Label" Name="Label1" Position="Below" LineSpace="2" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento: %SGName%"/>
				<Object Type="Control" SubType="Label" Name="Label3" Position="Below" LineSpace="0" Text="Caminho do log do grupo de armazenamento: %LogPath%"/>
				<Object Type="Control" SubType="Label" Name="Label4" Position="Below" LineSpace="0" Text="Novo local do log: %NewLogPath%"/>

				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" Width="FullWidth" Height="400">
					<Report Title="Erros" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Error']"/>
					<Report Title="Informações" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Information']"/>
				</Object>

				<Object Type="If" Name="IsSymptom" Key1="'%IsSymptom%'='0'">
					<Object Type="Control" SubType="Link" Name="TaskCenter" Position="Below" LineSpace="2" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
				</Object>
				<Object Type="If" Name="IsSymptom" Key1="'%IsSymptom%'='1'">
					<Object Type="Control" SubType="Link" Name="Goto" Position="Below" LineSpace="2" Text="Voltar à página de exibição de eventos" NextStep="%EventDisplayStepID%"/>
				</Object>

			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectOSGStep" Title="Selecionar Etapa de Grupo de Armazenamento Original" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%SG%" Substitution="InputSG" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[AllSGs]%" Substitution="AllSGs" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecione o Grupo de Armazenamento a Ser Vinculado ao Grupo de Armazenamento de Recuperação"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="ListBox" Name="ListBox" Position="Below" Width="450" Text="Grupos de armazenamento disponíveis" Default="%AllSGs%">
					<Setting Key1="SelectedSG">
						<Rule Name="szSG" Query="if(not ($.=''),string($.),(if(not ('@S0'=''),string(@S0))))" S0="%InputSG%" Text="O grupo de armazenamento selecionado é: {1}." P1="$.">
							<Variable Name="SelectedSG" Scope="Local"/>
						</Rule>
					</Setting>
				</Object>
				<Object Type="Control" SubType="Label" Name="Info" Position="LeftBelow" LineSpace="2" Text="O grupo de armazenamento de recuperação está vinculado a um grupo de armazenamento existente. Apenas bancos de dados do grupo de armazenamento vinculado podem ser montados no grupo de armazenamento de recuperação."/>
				<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="Below" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar">
					<Rule Name="fCreateRSGStep" Query="$szSG" NextStep="GenerateTempDataStep"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="GenerateTempDataStep" Title="Gerar Dados Temp" Display="Left">
		<Object Type="Action">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[%SelectedSG%][MDBNameList]%" Substitution="MDBNameList" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][LogPath]%" Substitution="OSGLogPath" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][SysPath]%" Substitution="OSGSysPath" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SGName" Display="Hide"/>

				<Object Type="WMI" Key1="" Key3="Win32_OperatingSystem" SecurityContext="EXLOGON">
					<Setting Key1="LocalDateTime" Substitution="dPrettyDateTime" SubstitutionFormat="(.*?)(\..*)----$1"/>
					<Object Type="Group" Name="SetVariables">
						<Rule Name="szNSGLogPath" Query="concat(@S0, '\RSG', @S1)" S0="%OSGLogPath%" S1="%dPrettyDateTime%">
							<Variable Name="INFO[RSG][LogPath]" Scope="Children"/>
						</Rule>
						<Rule Name="szNSGSysPath" Query="concat(@S0, '\RSG', @S1)" S0="%OSGSysPath%" S1="%dPrettyDateTime%">
							<Variable Name="INFO[RSG][SysPath]" Scope="Children"/>
						</Rule>
					</Object>
					<Object Type="Variable" Name="GetVariables" Key1="Unpack" Key2="%MDBNameList%">
						<Setting Key1="__VALUE" Substitution="DBName"/>
						<Object Type="Variable" Name="GetDBVariables" Key1="Scalar" Display="Hide">
							<Setting Key1="%INFO[%SGName%][%DBName%][MDBPATH]%" Substitution="Path" Display="Hide">
								<Rule Name="szDBPathName" Query="replace($., '\\[^\\]*$', '')"/>
								<Rule Name="szDBFileName" Query="replace($., '.*\\', '')"/>
								<Rule Name="szDBNewPath" Query="concat($szDBPathName, '\RSG', @S1, '\', $szDBFileName)" S1="%dPrettyDateTime%">
									<Variable Name="INFO[NDB][%DBName%][Path]" Scope="Children"/>
								</Rule>
							</Setting>
						</Object>
					</Object>
				</Object>
				<Rule Name="fDispatch" Query="true()" NextStep="CreateRSGStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="CreateRSGStep" Title="Criar Etapa RSG" Display="Left">
		<Object Type="Panel">
			<Object Type="If" Key1="true()" Display="HideAll">
				<Setting Key1="'1'" SQM="102;Set"/>
			</Object>
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[%SelectedSG%][LogPath]%" Substitution="OSGLogPath" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][SysPath]%" Substitution="OSGSysPath" Display="Hide"/>
				<Setting Key1="%RSG%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][LogPath]%" Substitution="RSGLogPath" Display="Hide"/>
				<Setting Key1="%INFO[RSG][SysPath]%" Substitution="RSGSysPath" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][MDBNameList]%" Substitution="MDBNameList" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Criar o Grupo de Armazenamento de Recuperação"/>
				<Object Type="Control" SubType="Label" Name="ServerName" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="LinkedOSG" Position="Below" LineSpace="0" Text="Grupo de armazenamento vinculado: %SelectedSG%"/>

				<!-- Get Recovery Storage Group Name  -->
				<Object Type="Control" SubType="Label" Name="RSGNameLabel" Position="Below" LineSpace="2" Width="225" Text="Nome do grupo de armazenamento de recuperação: " FontStyle="Bold"/>
				<Object Type="Control" SubType="TextBox" Name="RSGName" Position="NextTo" Width="375" Default="%RSGName%">
					<Setting Key1="RSGName">
						<Rule Name="fRSGNameEmpty" Query="not ($.)" Text="Esvaziar nome do grupo de armazenamento de recuperação." Error="Error"/>
						<Rule Name="szRSGName" Query="$.">
							<Variable Name="INFO[RSG][Name]" Scope="Local"/>
						</Rule>
					</Setting>
				</Object>

				<!-- Transaction Log Path  -->
				<Object Type="Control" SubType="Label" Name="LogFolderLabel" Position="At(RSGNameLabel),After(RSGNameLabel)" Width="225" Text="Pasta do arquivo de log de transações" FontStyle="Bold"/>
				<Object Type="Control" SubType="Label" Name="OSGLogLabel" Position="Below" Width="225" Text="Caminho original do log do grupo de armazenamento (Enn.log): "/>
				<Object Type="Control" SubType="TextBox" Name="OSGLogLabel1" Position="At(RSGName)," Width="375" Flags="ReadOnly=True" Default="%OSGLogPath%"/>
				<Object Type="Control" SubType="Label" Name="RSGLogLabel" Position="LeftBelow" LineSpace="0" Width="225" Text="Caminho do log do grupo de armazenamento de recuperação (R00.log):"/>
				<Object Type="Control" SubType="FileDialog" Name="RSGLogPath" Position="At(RSGName)," Width="375" Title="Selecionar o caminho de log do grupo de armazenamento de recuperação" Text="Procurar..." DialogType="OpenFolder" Default="%RSGLogPath%" Flags="ReadOnly=True|AllowCreate=True">
					<Setting Key1="LogPath">
						<Rule Name="szRSGLogPath" Query="$.">
							<Variable Name="INFO[RSG][LogPath]" Scope="Children"/>
						</Rule>
					</Setting>
				</Object>

				<!-- System Folder and CheckPoint File folder  -->
				<Object Type="Control" SubType="Label" Name="SysFolderLabel" Position="At(RSGLogLabel),After(RSGLogLabel)" LineSpace="2" Width="225" Text="Pasta do sistema e pasta de arquivos do ponto de verificação" FontStyle="Bold"/>
				<Object Type="Control" SubType="Label" Name="OSGSysFolderLabel" Position="Below" Width="225" Text="Caminho original do grupo de armazenamento (Enn.chk): "/>
				<Object Type="Control" SubType="TextBox" Name="OSGSysFolderLabel1" Position="At(RSGName)," Width="375" Flags="ReadOnly=True" Default="%OSGSysPath%"/>
				<Object Type="Control" SubType="Label" Name="RSGSysFolderLabel" Position="LeftBelow" LineSpace="0" Width="225" Text="Caminho do grupo de armazenamento de recuperação (R00.chk):"/>
				<Object Type="Control" SubType="FileDialog" Name="RSGSysPath" Position="At(RSGName)," Width="375" Title="Selecionar o caminho do sistema do grupo de armazenamento de recuperação" Text="Procurar..." DialogType="OpenFolder" Default="%RSGSysPath%" Flags="ReadOnly=True|AllowCreate=True">
					<Setting Key1="SysPath">
						<Rule Name="szRSGSysPath" Query="$.">
							<Variable Name="INFO[RSG][SysPath]" Scope="Children"/>
						</Rule>
					</Setting>
				</Object>

				<!-- Database Folders and file names  -->
				<Object Type="Control" SubType="Label" Name="DataFolderLabel" Position="At(RSGSysFolderLabel),After(RSGSysFolderLabel)" Width="225" Text="Nomes das pastas e arquivos do banco de dados" FontStyle="Bold"/>

				<Object Type="Variable" Name="GetDBNames" Key1="Unpack" Key2="%MDBNameList%">
					<Setting Key1="__VALUE" Substitution="DBName"/>
					<Object Type="Variable" Name="MDBVariables" Key1="Scalar" Display="Hide">
						<Setting Key1="%INFO[%SelectedSG%][%DBName%][MDBPATH]%" Substitution="DBPath" Display="Hide"/>
						<Setting Key1="%INFO[NDB][%DBName%][Path]%" Substitution="RDBPath" Display="Hide"/>
						<Object Type="Control" SubType="Label" Name="DBLabel" Position="LeftBelow" Width="225" Text="Nome do banco de dados: "/>
						<Object Type="Control" SubType="TextBox" Name="DBName" Position="At(RSGName)," Width="375" Flags="ReadOnly=True" Default="%DBName%"/>
						<Object Type="Control" SubType="Label" Name="DBPathLabel" Position="LeftBelow" LineSpace="0" Width="225" Text="Caminho do banco de dados: "/>
						<Object Type="Control" SubType="TextBox" Name="DBPath" Position="At(RSGName)," Width="375" Flags="ReadOnly=True" Default="%DBPath%"/>
						<Object Type="Control" SubType="Label" Name="RDBPathLabel" Position="LeftBelow" LineSpace="0" Width="225" Text="Caminho do banco de dados de recuperação: "/>
						<Object Type="Control" SubType="FileDialog" Name="RDBPath[%DBName%]" Position="At(RSGName)," Width="375" Title="Selecionar novo caminho de banco de dados" Text="Procurar..." DialogType="OpenFile" FileFilter="EDB Files(*.edb)|*.edb|All Files(*.*)|*.*" Default="%RDBPath%" Flags="ReadOnly=True|AllowCreate=True">
							<Setting Key1="Value">
								<Rule Name="szRDBPath" Query="$.">
									<Variable Name="INFO[NDB][%DBName%][Path]" Scope="Children"/>
								</Rule>
							</Setting>
						</Object>
					</Object>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Criar o grupo de armazenamento de recuperação" NextStep="CreateRSGActionStep"/>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="CreateRSGActionStep" Title="Criando Grupo de Armazenamento de Recuperação" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][SysPath]%" Substitution="RSGSysPath" Display="Hide"/>
			<Setting Key1="%INFO[RSG][LogPath]%" Substitution="RSGLogPath" Display="Hide"/>
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
			<Setting Key1="%INFO[%SelectedSG%][MDBNameList]%" Substitution="MDBNameList" Display="Hide"/>
			<Object Type="Progress" SubType="NoCancel" Title="Criando Grupo de Armazenamento de Recuperação" Text="Aguarde enquanto a ferramenta cria o grupo de armazenamento de recuperação no %Server%.">
				<Object Type="MonadCommand" Name="Identity" Key1="new-storagegroup -DomainController %DC% -Server %EXSERVER% -LogFolderPath &quot;%RSGLogPath%&quot; -Name &quot;%RSGName%&quot; -SystemFolderPath &quot;%RSGSysPath%&quot; -Recovery" SecurityContext="EXLOGON">
					<Rule Name="fRSGCreationException" Query="count(../Exception) &gt;0" Title="Erro encontrado ao tentar criar o grupo de armazenamento de recuperação" Text="Erro encontrado ao tentar criar o grupo de armazenamento de recuperação ({1}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%RSGName%" Error="Error"/>
					<Rule Name="fRSGMsg" Query="not ($fRSGCreationException)" Title="O grupo de armazenamento de recuperação foi criado com êxito" Text="O grupo de armazenamento de recuperação ({1}) foi criado com êxito." S1="%RSGName%" Error="Information" AlwaysEvaluate="True"/>
					<Setting Key1="__VALUES"/>

					<Object Type="Variable" Name="UnpackDBNames" Key1="Unpack" Key2="%MDBNameList%">
						<Setting Key1="__VALUE" Substitution="DBName"/>
						<Object Type="Variable" Name="DBInfo" Key1="Scalar" Display="Hide">
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][GUID]%" Substitution="DBGUID" Display="Hide"/>
							<Setting Key1="%INFO[NDB][%DBName%][Path]%" Substitution="DBPath" Display="Hide"/>
							<Object Type="MonadCommand" Name="Identity" Key1="new-mailboxdatabase -DomainController %DC% -mailboxdatabasetorecover %DBGUID% -storagegroup &quot;%EXSERVER%\%RSGName%&quot; -EDBFilePath &quot;%DBPath%&quot;">
								<Rule Name="fMonadExceptionOnDB" Query="count(../Exception) &gt;0" Title="Erro encontrado ao tentar adicionar o banco de dados ao grupo de armazenamento de recuperação" Text="Erro encontrado ao tentar adicionar o banco de dados ({1}) ao grupo de armazenamento de recuperação ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%DBName%" S2="%RSGName%" Error="Error"/>
								<Rule Name="szDBMsg" Query="not ($fMonadExceptionOnDB)" Title="O banco de dados ({1}) foi adicionado ao grupo de armazenamento de recuperação" Text="O banco de dados ({1}) foi adicionado ao grupo de armazenamento de recuperação ({2}) com êxito." S1="%DBName%" S2="%RSGName%" Error="Information" AlwaysEvaluate="True"/>
								<Setting Key1="__VALUES"/>
							</Object>
						</Object>
					</Object>

				</Object>

				<Rule Name="fReportRSGCreationStep" Query="true()" NextStep="DisplayRSGCreationStep" AlwaysEvaluate="True">
					<Rule Name="szPreviousStepName" Query="'CreateRSGActionStep'">
						<Variable Name="PreviousStepName" Scope="Children"/>
					</Rule>
				</Rule>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="DisplayRSGCreationStep" Title="Exibir Resultado da Criação de RSG" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[%SelectedSG%][LogPath]%" Substitution="OSGLogPath" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][SysPath]%" Substitution="OSGSysPath" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][LogPath]%" Substitution="RSGLogPath" Display="Hide"/>
				<Setting Key1="%INFO[RSG][SysPath]%" Substitution="RSGSysPath" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][MDBNameList]%" Substitution="MDBNameList" Display="Hide"/>
				<Setting Key1="%PreviousStepName%" Substitution="PreviousStepName" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Criar o Resultado do Grupo de Armazenamento de Recuperação"/>
				<Object Type="Control" SubType="Label" Name="ServerName" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="LinkedOSG" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento vinculado: %SelectedSG%"/>
				<Object Type="Control" SubType="Label" Name="RSGName" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento de recuperação: %RSGName%"/>

				<Object Type="Control" SubType="Label" Name="Info" Position="Below" LineSpace="2" FontStyle="Bold" Text="Exibir Resultado"/>

				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" Width="FullWidth" Height="300">
					<Report Title="Resultados" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error]"/>
				</Object>

				<Object Type="Control" SubType="Label" Name="Info" Position="LeftBelow" LineSpace="2" Text="Agora, você pode mover, copiar ou restaurar bancos de dados ou arquivos de log de transações nos caminhos do grupo de armazenamento de recuperação. Quando você estiver preparado para montar bancos de dados no grupo de armazenamento de recuperação, vá para o centro de tarefas ou inicie esse analisador novamente. Se o controlador de domínio que você especificou for diferente do controlador de domínio que o servidor Exchange está usando, talvez seja necessário aguardar até que a alteração seja replicada."/>

				<Object Type="Control" SubType="ShowHide" Name="ShowHideRSGInfo" Position="Below" Text="Exibir Criar Informações do Grupo de Armazenamento de Recuperação, Ocultar Criar Informações do Grupo de Armazenamento de Informações">

					<!-- Transaction Log Path  -->
					<Object Type="Control" SubType="Label" Name="LogFolderLabel" Position="Top" LineSpace="2" FontStyle="Bold" Text="Pasta do arquivo de log de transações"/>
					<Object Type="Control" SubType="Label" Name="OSGLogLabel" Position="Below" LineSpace="0" Text="Caminho original do log do grupo de armazenamento (Enn.log): "/>
					<Object Type="Control" SubType="TextBox" Name="OSGLogLabel1" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%OSGLogPath%"/>
					<Object Type="Control" SubType="Label" Name="RSGLogLabel" Position="LeftBelow" LineSpace="0" Text="Caminho do log do grupo de armazenamento de recuperação (R00.log):"/>
					<Object Type="Control" SubType="TextBox" Name="RSGLogPath" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%RSGLogPath%"/>

					<!-- System Folder and CheckPoint File folder  -->
					<Object Type="Control" SubType="Label" Name="SysFolderLabel" Position="LeftBelow" LineSpace="2" FontStyle="Bold" Text="Pasta do sistema e pasta de arquivos do ponto de verificação"/>
					<Object Type="Control" SubType="Label" Name="OSGSysFolderLabel" Position="Below" LineSpace="0" Text="Caminho original do grupo de armazenamento (Enn.chk): "/>
					<Object Type="Control" SubType="TextBox" Name="OSGSysFolderLabel1" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%OSGSysPath%"/>
					<Object Type="Control" SubType="Label" Name="RSGSysFolderLabel" Position="LeftBelow" LineSpace="0" Text="Caminho do grupo de armazenamento de recuperação (R00.chk):"/>
					<Object Type="Control" SubType="TextBox" Name="RSGSysPath" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%RSGSysPath%"/>

					<!-- Database Folders and file names  -->
					<Object Type="Control" SubType="Label" Name="DataFolderLabel" Position="LeftBelow" FontStyle="Bold" Text="Nomes das pastas e arquivos do banco de dados"/>

					<Object Type="Variable" Name="UnpackMDBName" Key1="Unpack" Key2="%MDBNameList%">
						<Setting Key1="__VALUE" Substitution="DBName"/>
						<Object Type="Variable" Name="GetDBVariables" Key1="Scalar" Display="Hide">
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][MDBPATH]%" Substitution="DBPath" Display="Hide"/>
							<Setting Key1="%INFO[NDB][%DBName%][Path]%" Substitution="RSGDBPath" Display="Hide"/>
							<Object Type="Control" SubType="Label" Name="DBLabel" Position="LeftBelow" Text="Nome de banco de dados original: "/>
							<Object Type="Control" SubType="TextBox" Name="DBName" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%DBName%"/>
							<Object Type="Control" SubType="Label" Name="DBPathLabel" Position="LeftBelow" LineSpace="0" Text="Caminho de banco de dados original: "/>
							<Object Type="Control" SubType="TextBox" Name="DBPath" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%DBPath%"/>
							<Object Type="Control" SubType="Label" Name="RDBPathLabel" Position="LeftBelow" LineSpace="0" Text="Caminho do banco de dados de recuperação: "/>
							<Object Type="Control" SubType="TextBox" Name="RDBPath" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%RSGDBPath%"/>
						</Object>
					</Object>
				</Object>

				<Object Type="Control" SubType="Link" Name="Next" Position="LeftBelow" LineSpace="2" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="MountDismountDatabaseStep" Title="Montar ou Desmontar bancos de dados no Grupo de Armazenamento de Recuperação" Display="Left">
		<Object Type="Panel">
			<Object Type="If" Key1="true()" Display="HideAll">
				<Setting Key1="'1'" SQM="104;Set"/>
			</Object>
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Mode%" Substitution="InputMode" Display="Hide"/>
				<Setting Key1="%DB%" Substitution="InputDB" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][DBMountCount]%" Substitution="MountCount" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][MOUNTED]%" Substitution="Mounted" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][DBUnMountCount]%" Substitution="UnmountCount" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][SelectableDBs]%" Substitution="UnMounted" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][UnSelectableDBs]%" Substitution="UnSelectable" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Montar ou Desmontar Banco de Dados"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="SG" Position="Below" LineSpace="0" Text="Grupo de armazenamento selecionado: %RSGName%"/>

				<Object Type="If" Name="Mounted" Key1="%MountCount% &gt;0">
					<Object Type="Control" SubType="Label" Name="Mounted" Position="Below" Text="Estes bancos de dados estão montados:"/>
					<Object Type="Control" SubType="ListView" Name="MountedListView" Position="Below" Text="Caixas de Correio Montadas" Height="150" Width="600" Title="Banco de Dados Montado" SelectionMode="True" Flags="DefaultSelection=False" Default="%Mounted%">
						<Setting Key1="Pack">
							<Rule Name="szDBMount" Query="if(not ($.=''),string($.))"/>
						</Setting>
					</Object>

					<Object Type="Control" SubType="Link" Name="UnMountDBs" Position="Below" Text="Desmontar bancos de dados selecionados" NextStep="UnMountMDBStep">
						<Rule Name="UnMountMDB" Query="$szDBMount">
							<Variable Name="INFO[RSG][SelectedMountedMDB]" Scope="Children"/>
						</Rule>
					</Object>
				</Object>

				<Object Type="If" Name="Dismounted" Key1="%UnmountCount% &gt;0">
					<Object Type="Control" SubType="Label" Name="Dismounted" Position="Below" Text="Estes bancos de dados estão desmontados:"/>
					<Object Type="Control" SubType="ListView" Name="UnMountedListView" Position="Below" Text="Caixas de Correio Desmontadas" Height="150" Width="600" Title="Banco de Dados Desmontado" SelectionMode="True" Flags="DefaultSelection=False" Default="%UnMounted%">
						<Setting Key1="Pack" Substitution="SelectedDB">
							<Rule Name="szDB" Query="if(not ($.=''),string($.))"/>
						</Setting>
					</Object>

					<Object Type="Control" SubType="Link" Name="MountDBs" Position="Below" Text="Montar bancos de dados selecionados" NextStep="MountMDBStep">
						<Rule Name="MountDB" Query="$szDB">
							<Variable Name="INFO[RSG][SelectedUnMountedMDB]" Scope="Children"/>
						</Rule>
					</Object>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="Below" LineSpace="0" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>

			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="MountAllMDBStep" Title="Etapa Montar Todos os Bancos de Dados" Display="Left">
		<Object Type="Action">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[%INFO[RSG][Name]%][SelectableDBs]%" Substitution="Mountable" Display="Hide"/>
				<Object Type="Group" Name="Group">
					<Rule Name="szSetupValue" Query="@S0" S0="%Mountable%">
						<Variable Name="INFO[RSG][SelectedUnMountedMDB]" Scope="Children"/>
					</Rule>
					<Rule Name="fDispatchToMount" Query="true()" NextStep="MountMDBStep"/>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="UnMountAllMDBStep" Title="Etapa Desmontar Todos os Bancos de Dados" Display="Left">
		<Object Type="Action">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[%INFO[RSG][Name]%][UnSelectableDBs]%" Substitution="UnMountable" Display="Hide"/>
				<Object Type="Group" Name="Group">
					<Rule Name="szSetupValue" Query="@S0" S0="%UnMountable%">
						<Variable Name="INFO[RSG][SelectedMountedMDB]" Scope="Children"/>
					</Rule>
					<Rule Name="fDispatchToMount" Query="true()" NextStep="UnMountMDBStep"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="MountMDBStep" Title="Montar Bancos de Dados Desmontados" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][SelectedUnMountedMDB]%" Substitution="UnmountMDB" Display="Hide"/>
			<Object Type="Progress" SubType="NoCancel" Title="Montando Bancos de Dados" Text="Aguarde enquanto a ferramenta monta bancos de dados no %Server%.">
				<Object Type="Variable" Name="MountDBs" Key1="Unpack" Key2="%UnmountMDB%" SecurityContext="EXLOGON">
					<Setting Key1="__VALUE" Substitution="DBName"/>
					<Object Type="MonadCommand" Key1="set-mailboxdatabase -Identity &quot;%EXSERVER%\%RSGName%\%DBName%&quot; -DomainController %DC% -AllowFileRestore:$True"/>
					<Object Type="MonadCommand" Key1="mount-database -Identity &quot;%EXSERVER%\%RSGName%\%DBName%&quot; -DomainController %DC%">
						<Rule Name="fMonadException" Query="../Exception" Title="Erro encontrado ao tentar montar o banco de dados" Text="Erro encontrado ao tentar montar o banco de dados ({1}) no grupo de armazenamento de recuperação ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%DBName%" S2="%RSGName%" Error="Error"/>
						<Rule Name="szMountMsg" Query="if(not ($fMonadException), string(@Text))" Text="Banco de dados (%DBName%) montado com êxito." S1="%DBName%" Error="Information" AlwaysEvaluate="True"/>
						<Setting Key1="__THIS"/>
					</Object>
				</Object>
				<Rule Name="fDispatchToStatusReport" Query="true()" NextStep="MDBStatusReportStep">
					<Rule Name="szPreviousStepName" Query="'MountMDBStep'">
						<Variable Name="PreviousStepName" Scope="Children"/>
					</Rule>
				</Rule>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="UnMountMDBStep" Title="Desmontar Bancos de Dados de Caixa de Correio Montados" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][SelectedMountedMDB]%" Substitution="MountMDB" Display="Hide"/>
			<Object Type="Progress" SubType="NoCancel" Title="Desmontando Bancos de Dados" Text="Aguarde enquanto a ferramenta desmonta bancos de dados no %Server%.">
				<Object Type="Variable" Name="UnMountDBs" Key1="Unpack" Key2="%MountMDB%" SecurityContext="EXLOGON">
					<Setting Key1="__VALUE" Substitution="DBName"/>
					<Object Type="MonadCommand" Key1="dismount-database -Identity &quot;%EXSERVER%\%RSGName%\%DBName%&quot; -DomainController %DC% -confirm:$false">
						<Rule Name="fMonadException" Query="../Exception" Title="Erro encontrado ao tentar desmontar o banco de dados" Text="Erro encontrado ao tentar desmontar o banco de dados ({1}) no grupo de armazenamento de recuperação ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%DBName%" S2="%RSGName%" Error="Error"/>
						<Rule Name="szUnMountMsg" Query="if(not ($fMonadException), string(@Text))" Text="Banco de dados (%DBName%) desmontado com êxito." S1="%DBName%" Error="Information" AlwaysEvaluate="True"/>
						<Setting Key1="__THIS"/>
					</Object>
				</Object>
				<Rule Name="fDispatchToStatusReport" Query="true()" NextStep="MDBStatusReportStep">
					<Rule Name="szPreviousStepName" Query="'UnMountMDBStep'">
						<Variable Name="PreviousStepName" Scope="Children"/>
					</Rule>
				</Rule>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="MDBStatusReportStep" Title="Montar ou Desmontar Relatório do Banco de Dados" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="Variable Info" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%PreviousStepName%" Substitution="PreviousStepName" Display="Hide"/>
				<Setting Key1="%INFO[Mount][Message]%" Substitution="Messages" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Montar ou Desmontar Relatório dos Bancos de Dados"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="SG" Position="Below" LineSpace="0" Text="Grupo de armazenamento selecionado: %RSGName%"/>

				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" Width="FullWidth" Height="400">
					<Report Title="Erros" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Error']"/>
					<Report Title="Informações" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Information']"/>
				</Object>

				<Object Type="Control" SubType="Link" Name="Next" Position="LeftBelow" LineSpace="2" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="RemoveRSGStep" Title="Remover o Grupo de Armazenamento de Recuperação" Display="Left">
		<Object Type="Panel">
			<Object Type="If" Key1="true()" Display="HideAll">
				<Setting Key1="'1'" SQM="103;Set"/>
			</Object>
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][DBMountCount]%" Substitution="MountCount" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][MOUNTED]%" Substitution="Mounted" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][DBUnMountCount]%" Substitution="UnMountCount" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][SelectableDBs]%" Substitution="Selectable" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Remover o Grupo de Armazenamento de Recuperação"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" LineSpace="2" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="Storage Group Name" Position="Below" Text="Nome do grupo de armazenamento de recuperação: %RSGName%"/>

				<Object Type="If" Name="MountedCondition" Key1="%MountCount% &gt;0">
					<Object Type="Control" SubType="Label" Name="Mounted" Position="Below" Text="Estes bancos de dados estão montados:"/>
					<Object Type="Control" SubType="ListBox" Name="MountedListBox" Position="Below" Width="300" Default="%Mounted%" SelectionMode="None"/>
					<Object Type="Control" SubType="Label" Name="Info" Position="LeftBelow" LineSpace="2" Text="O grupo de armazenamento de recuperação não pode ser removido se houver bancos de dados montados. Volte ao centro de tarefas, selecione a tarefa 'Montar ou desmontar bancos de dados no grupo de armazenamento de recuperação' para desmontar todos os bancos de dados e, então, tente novamente. "/>
				</Object>

				<Object Type="If" Name="DismountedCondition" Key1="%UnMountCount% &gt;0">
					<Object Type="Control" SubType="Label" Name="Dismounted" Position="Below" Text="Estes bancos de dados estão desmontados:"/>
					<Object Type="Control" SubType="ListBox" Name="SelectableListBox" Position="Below" Width="300" Default="%Selectable%" SelectionMode="None"/>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="If" Name="RemoveRSG" Key1="%MountCount%=0">
					<Object Type="Control" SubType="Link" Name="Remove RSG" Position="NextTo" Percent="30" Text="Remova o grupo de armazenamento de recuperação" NextStep="RemoveRSGActionStep"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="RemoveRSGActionStep" Title="Removendo Grupo de Armazenamento de Recuperação" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%LocalMachineName%" Substitution="LocalMachineName" Display="Hide"/>
			<Setting Key1="%INFO[%INFO[RSG][Name]%][AllMDBs]%" Substitution="AllMDBs" Display="Hide"/>
			<Object Type="Progress" SubType="NoCancel" Title="Removendo Grupo de Armazenamento de Recuperação" Text="Aguarde enquanto a ferramenta remove o grupo de armazenamento de recuperação no %Server%.">
				<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a remoção do grupo de armazenamento de recuperação no servidor {1}." S1="%Server%"/>
				<Object Type="If" Name="CheckMachineName" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
					<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a remoção do grupo de armazenamento de recuperação no servidor {1}." S1="%Server%"/>
				</Object>

				<Object Type="Variable" Name="RemoveMountMDBs" Key1="Unpack" Key2="%AllMDBs%" SecurityContext="EXLOGON">
					<Setting Key1="__VALUE" Substitution="DBName"/>
					<Object Type="MonadCommand" Key1="remove-mailboxdatabase -Identity &quot;%EXSERVER%\%RSGName%\%DBName%&quot; -DomainController %DC%">
						<Rule Name="fMonadException" Query="../Exception" Title="Erro encontrado ao tentar remover o banco de dados" Text="Erro encontrado ao tentar remover o banco de dados ({1}) do grupo de armazenamento de recuperação ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%DBName%" S2="%RSGName%" Error="Error"/>
						<Rule Name="szRemoveDBMsg" Query="not ($fMonadException)" Title="O banco de dados ({1}) foi removido com êxito do grupo de armazenamento de recuperação" Text="O banco de dados ({1}) foi removido com êxito do grupo de armazenamento de recuperação ({2})." S1="%DBName%" S2="%RSGName%" Error="Information" AlwaysEvaluate="True"/>
						<Setting Key1="__VALUES"/>
					</Object>
				</Object>
				<Object Type="MonadCommand" Key1="remove-storagegroup -Identity &quot;%EXSERVER%\%RSGName%&quot; -DomainController %DC%" SecurityContext="EXLOGON">
					<Rule Name="fMonadExceptionRSG" Query="../Exception" Title="Erro encontrado ao tentar remover o grupo de armazenamento de recuperação" Text="Erro encontrado ao tentar remover o grupo de armazenamento de recuperação ({1}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%RSGName%" Error="Error"/>
					<Rule Name="szRemoveRSGMsg" Query="not ($fMonadExceptionRSG)" Title="O grupo de armazenamento de recuperação foi removido com êxito" Text="O grupo de armazenamento de recuperação ({1}) foi removido com êxito" S1="%RSGName%" Error="Information" AlwaysEvaluate="True"/>
					<Setting Key1="__VALUES"/>
				</Object>
				<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a remoção do grupo de armazenamento de recuperação no servidor {1}." S1="%Server%"/>
				<Object Type="If" Name="CheckMachineName2" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
					<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a remoção do grupo de armazenamento de recuperação no servidor {1}." S1="%Server%"/>
				</Object>
				<Rule Name="fDispatchToDisplayRemoveResultStep" Query="true()" NextStep="DisplayRemoveResultStep">
					<Rule Name="szPreviousStep" Query="'RemoveRSGActionStep'">
						<Variable Name="INFO[PreviousStepName]" Scope="Children"/>
					</Rule>
				</Rule>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="DisplayRemoveResultStep" Title="Exibir Resultado de Remoção de RSG" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][LogPath]%" Substitution="RSGLogPath" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][SysPath]%" Substitution="RSGSysPath" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][MDBNameList]%" Substitution="MDBNameList" Display="Hide"/>
				<Setting Key1="%INFO[PreviousStepName]%" Substitution="PreviousStepName" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Remover Resultado do Grupo de Armazenamento de Recuperação"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="SG" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento de recuperação: %RSGName%"/>

				<Object Type="Control" SubType="Label" Name="ResultLable" Position="LeftBelow" LineSpace="2" Text="Exibir Resultado:"/>
				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" Width="FullWidth" Height="300">
					<Report Title="Resultados" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error]"/>
				</Object>


				<Object Type="Control" SubType="Label" Name="Info" Position="LeftBelow" LineSpace="2" Text="O grupo de armazenamento de recuperação foi removido. Os arquivos e pastas associados a esse grupo de armazenamento de recuperação permanecem no sistema de arquivos. Você pode copiar esses arquivos e pastas para um local de backup ou excluí-los. Se o controlador de domínio que você especificou for diferente do controlador de domínio que o servidor Exchange está usando, talvez seja necessário aguardar até que a alteração seja replicada."/>

				<Object Type="Control" SubType="ShowHide" Name="ShowHideRSGInfo" Position="Below" Text="Exibir Informações do Grupo de Armazenamento de Recuperação Removido, Ocultar Informações do Grupo de Armazenamento de Recuperação Removido">

					<!-- Transaction Log Path  -->
					<Object Type="Control" SubType="Label" Name="LogFolderLabel" Position="Top" LineSpace="2" FontStyle="Bold" Text="Pasta do arquivo de log de transações"/>
					<Object Type="Control" SubType="Label" Name="RSGLogLabel" Position="LeftBelow" LineSpace="0" Text="Caminho do log do grupo de armazenamento de recuperação (R00.log):"/>
					<Object Type="Control" SubType="TextBox" Name="RSGLogPath" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%RSGLogPath%"/>

					<!-- System Folder and CheckPoint File folder  -->
					<Object Type="Control" SubType="Label" Name="SysFolderLabel" Position="LeftBelow" LineSpace="2" FontStyle="Bold" Text="Pasta do sistema e pasta de arquivos do ponto de verificação"/>
					<Object Type="Control" SubType="Label" Name="RSGSysFolderLabel" Position="LeftBelow" LineSpace="0" Text="Caminho do grupo de armazenamento de recuperação (R00.chk):"/>
					<Object Type="Control" SubType="TextBox" Name="RSGSysPath" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%RSGSysPath%"/>

					<!-- Database Folders and file names  -->
					<Object Type="Control" SubType="Label" Name="DataFolderLabel" Position="LeftBelow" FontStyle="Bold" Text="Nomes das pastas e arquivos do banco de dados"/>

					<Object Type="Variable" Name="GetVariables" Key1="Unpack" Key2="%MDBNameList%">
						<Setting Key1="__VALUE" Substitution="DBName"/>
						<Object Type="Variable" Name="GetDBVariable" Key1="Scalar" Display="Hide">
							<Setting Key1="%INFO[%RSGName%][%DBName%][MDBPATH]%" Substitution="DBPath" Display="Hide"/>
							<Object Type="Control" SubType="Label" Name="DBLabel" Position="LeftBelow" Text="Nome do banco de dados: "/>
							<Object Type="Control" SubType="TextBox" Name="DBName" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%DBName%"/>
							<Object Type="Control" SubType="Label" Name="DBPathLabel" Position="LeftBelow" LineSpace="0" Text="Caminho do banco de dados: "/>
							<Object Type="Control" SubType="TextBox" Name="DBPath" Position="NextTo" Percent="30" Width="500" Flags="ReadOnly=True" Default="%DBPath%"/>
						</Object>
					</Object>
				</Object>

				<Object Type="Control" SubType="Link" Name="Next" Position="LeftBelow" LineSpace="2" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SwapDatabaseStep" Title="Selecionar Opção de Troca de Banco de Dados" Display="Left">
		<Object Type="Action">
			<Rule Name="SetSwapOption" Query="string('1')" NextStep="SelectDatabaseForSwapOrMergeStep">
				<Variable Name="INFO[IsSwapOption]" Scope="Children"/>
			</Rule>
		</Object>
	</Object>

	<Object Type="Step" Name="MergeDatabaseStep" Title="Definir opção de mesclagem de banco de dados" Display="Left">
		<Object Type="Action">
			<Object Type="Group" Name="Prepare Select Options">
				<Object Type="Group" Name="Match Option">
					<Rule Name="szMatchOption1" Query="string(@Title)" Title="Nome para exibição">
						<Variable Name="OPT[MatchOption][1]" Scope="Global"/>
					</Rule>
					<Rule Name="szMatchOption2" Query="string(@Title)" Title="GUID da Caixa de Correio">
						<Variable Name="OPT[MatchOption][2]" Scope="Global"/>
					</Rule>
					<Rule Name="szMatchOption3" Query="string(@Title)" Title="Nome Distinto Herdado do Exchange">
						<Variable Name="OPT[MatchOption][3]" Scope="Global"/>
					</Rule>
				</Object>

				<Object Type="Group" Name="Sort Option">
					<Rule Name="szSortOption1" Query="string(@Title)" Title="Nome para exibição">
						<Variable Name="OPT[SortOption][1]" Scope="Global"/>
					</Rule>
					<Rule Name="szSortOption2" Query="string(@Title)" Title="GUID da Caixa de Correio">
						<Variable Name="OPT[SortOption][2]" Scope="Global"/>
					</Rule>
					<Rule Name="szSortOption3" Query="string(@Title)" Title="Nome Distinto Herdado do Exchange">
						<Variable Name="OPT[SortOption][3]" Scope="Global"/>
					</Rule>
				</Object>

				<Rule Name="iBadItemLimit" Query="string('0')">
					<Variable Name="INFO[Merge][BadItemLimit]" Scope="Children"/>
					<Variable Name="INFO[IsSwapOption]" Scope="Children"/>
				</Rule>
				<Rule Name="fDispatch" Query="true()" NextStep="SelectDatabaseForSwapOrMergeStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectDatabaseForSwapOrMergeStep" Title="Selecionar Banco de Dados" Display="Left">
		<Object Type="Panel">
			<Object Type="If" Key1="true()" Display="HideAll">
				<Setting Key1="'1'" SQM="105;Set"/>
			</Object>
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][LinkedSGtoRSG]%" Substitution="OrigSG" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][LinkedSGtoRSG]%][LCR]%" Substitution="IsLCR" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][LinkedSGtoRSG]%][SCR]%" Substitution="IsSCR" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][DBMountCount]%" Substitution="MountCount" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][MOUNTED]%" Substitution="Mounted" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][DBUnMountCount]%" Substitution="UnmountCount" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][SelectableDBs]%" Substitution="UnMounted" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][UnSelectableDBs]%" Substitution="UnSelectable" Display="Hide"/>
				<Setting Key1="%CCRClustered%" Substitution="CCRClustered" Display="Hide"/>
				<Setting Key1="%INFO[IsSwapOption]%" Substitution="IsSwapOption" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecione um Banco de Dados Montado no Grupo de Armazenamento de Recuperação"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="RSG" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento de recuperação: %RSGName%"/>
				<Object Type="Control" SubType="Label" Name="OriginalSG" Position="Below" LineSpace="0" Text="Grupo de armazenamento vinculado: %OrigSG%"/>

				<Object Type="If" Name="SwapLabel" Key1="'%IsSwapOption%'='1' and ('%IsLCR%'='1' or '%IsSCR%'='1' or '%CCRClustered%'='1')">
					<Object Type="Control" SubType="Label" Name="ReplProblemLabel" Position="LeftBelow" LineSpace="2" Text="O Grupo de Armazenamento &quot;{0}&quot;, que está vinculado ao Grupo de Armazenamento de Recuperação, está habilitado para LCR (replicação contínua local), CCR (replicação contínua em cluster) ou SCR (replicação contínua em espera). Como resultado, nenhum banco de dados nesse Grupo de Armazenamento pode ser trocado." S0="%OrigSG%" ForeColor="Red"/>
				</Object>

				<Object Type="If" Name="" Key1="not('%IsSwapOption%'='1') or ('%IsLCR%'='0' and '%IsSCR%'='0' and '%CCRClustered%'='0')">
					<Object Type="If" Name="Mounted" Key1="%MountCount% &gt;0">
						<Object Type="If" Name="SwapLabel" Key1="'%IsSwapOption%'='1'">
							<Object Type="RichTextBox" Name="Warning" Position="Below" Width="FullWidth" LineSpace="2">
								<Setting Text="OBSERVAÇÃO IMPORTANTE:" Key2="FontStyle=Bold" Key3="1"/>
								<Setting Text="Se você estiver mesclando dados de caixa de correio como parte de uma estratégia de recuperação de 'sinal de linha', há tarefas administrativas adicionais que você deve executar após a conclusão da mesclagem. Consulte o seguinte artigo da Base de Dados de Conhecimento da Microsoft em http://go.microsoft.com/fwlink/?linkid=3052&amp;kbid=282496." Key2="Type=NoLineFeed" Key3="2"/>
							</Object>
						</Object>
						<Object Type="Control" SubType="Label" Name="Mounted" Position="Below" FontStyle="Bold" LineSpace="2" Text="Bancos de dados montados no grupo de armazenamento de recuperação"/>
						<Object Type="Control" SubType="ListBox" Name="MountedListBox" Position="Below" Width="300" Default="%Mounted%">
							<Setting Key1="Value">
								<Rule Name="szDBMount" Query="if(not ($.=''),string($.))">
									<Variable Name="INFO[RSG][SelectedDB]" Scope="Children"/>
								</Rule>
							</Setting>
						</Object>
						<Object Type="If" Name="SwapCase" Key1="'%IsSwapOption%'='1'">
							<Object Type="Control" SubType="Label" Name="SwapCaseLabel" Position="LeftBelow" Text="Selecione um banco de dados de origem para troca."/>
						</Object>
						<Object Type="If" Name="MergeCase" Key1="not ('%IsSwapOption%'='1')">
							<Object Type="Control" SubType="Label" Name="MergeCaseLabel" Position="LeftBelow" Text="Selecione um banco de dados de origem para mesclar ou copiar conteúdos de caixa de correio. Você selecionará outras opções e os destinos de mesclagem ou cópia posteriormente."/>
						</Object>
					</Object>

					<Object Type="If" Name="Dismounted" Key1="%UnmountCount% &gt;0">
						<Object Type="Control" SubType="Label" Name="Dismounted" Position="Below" FontStyle="Bold" Text="Bancos de dados desmontados no grupo de armazenamento de recuperação"/>
						<Object Type="Control" SubType="ListBox" Name="DismountedListBox" Position="Below" Width="300" Text="Lista de Bancos de Dados Desmontados" Default="%UnMounted%" SelectionMode="None"/>
						<Object Type="If" Name="SwapLabel" Key1="'%IsSwapOption%'='1'">
							<Object Type="Control" SubType="Label" Name="Label1" Position="LeftBelow" Text="Se o banco de dados que você deseja trocar não estiver sendo executado, clique em 'Anterior' a seguir para voltar e montar o banco de dados."/>
						</Object>
						<Object Type="If" Name="SwapLabel" Key1="not ('%IsSwapOption%'='1')">
							<Object Type="Control" SubType="Label" Name="Label1" Position="LeftBelow" Text="Se o banco de dados que você quiser usar como origem de cópia ou mesclagem não estiver em execução, clique em 'Anterior' abaixo para voltar e montar o banco de dados."/>
						</Object>
					</Object>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="Below" Text="Anterior"/>

				<Object Type="If" Name="Mounted" Key1="%MountCount% &gt;0">
					<Object Type="If" Name="SwapOptionLabel" Key1="'%IsSwapOption%'='1' and '%IsLCR%'='0' and '%IsSCR%'='0' and '%CCRClustered%'='0'">
						<Object Type="Control" SubType="Link" Name="SwapLink" Position="NextTo" Percent="30" Text="Coletar informações da troca" NextStep="GatherSwapInfoStep"/>
					</Object>
					<Object Type="If" Name="MergeOptionLabel" Key1="not ('%IsSwapOption%'='1')">
						<Object Type="Control" SubType="Link" Name="MergeLink" Position="NextTo" Percent="30" Text="Coletar informações de mesclagem" NextStep="SelectMergeOptionStep"/>
					</Object>
				</Object>
				<Object Type="If" Name="NoMounted" Key1="%MountCount%=0">
					<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="GatherSwapInfoStep" Title="Coletar informações do Banco de Dados para Troca" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][SelectedDB]%" Substitution="SelectedDB" Display="Hide"/>
			<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%" Substitution="OrigMDB" Display="Hide"/>
			<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%" Substitution="OrigSG" Display="Hide"/>
			<Object Type="Progress" Title="Coletar Informações Detalhadas do Banco de Dados" Text="Aguarde enquanto a ferramenta coleta informações detalhadas do banco de dados no %Server%.">
				<Object Type="Group" Name="Gather database information" SecurityContext="EXLOGON">
					<Object Type="MonadCommand" Name="Identity" Key1="get-mailboxstatistics -database &quot;%EXSERVER%\%RSGName%\%SelectedDB%&quot;">
						<Rule Name="fRDBException" Query="count(../Exception) &gt;0" Title="Erro ao recuperar informações do banco de dados" Text="Erro ao recuperar informações estatísticas do banco de dados ({0}/{1}) de {2}. A mensagem de erro é: {3}." S0="%RSGName%" S1="%SelectedDB%" S2="%Server%" P3="../Exception/@Message" Error="Error"/>
						<Setting Key1="ItemCount">
							<Rule Name="iRDBTotalItemCount" Query="$."/>
						</Setting>
						<Setting Key1="TotalItemSize" Format="B----">
							<Rule Name="iRDBTotalItemSize" Query="$."/>
						</Setting>
					</Object>
					<Rule Name="iRDBCount" Query="if($iRDBTotalItemCount, sum($iRDBTotalItemCount), 0)" AlwaysEvaluate="True">
						<Variable Name="INFO[Swap][RDB][Count]" Scope="Children"/>
					</Rule>
					<Rule Name="iRDBSize" Query="if($iRDBTotalItemSize, sum($iRDBTotalItemSize), 0)" AlwaysEvaluate="True">
						<Variable Name="INFO[Swap][RDB][Size]" Scope="Children"/>
					</Rule>
					<Object Type="MonadCommand" Name="Identity" Key1="get-mailboxstatistics -database &quot;%EXSERVER%\%OrigSG%\%OrigMDB%&quot;">
						<Rule Name="fODBException" Query="count(../Exception) &gt;0" Title="Erro ao recuperar informações do banco de dados" Text="Erro ao recuperar informações estatísticas do banco de dados ({0}/{1}) de {2}. A mensagem de erro é: {3}." S0="%OrigSG%" S1="%OrigMDB%" S2="%Server%" P3="../Exception/@Message" Error="Error"/>
						<Setting Key1="ItemCount">
							<Rule Name="iODBTotalItemCount" Query="$."/>
						</Setting>
						<Setting Key1="TotalItemSize" Format="B----">
							<Rule Name="iODBTotalItemSize" Query="$."/>
						</Setting>
					</Object>
					<Rule Name="iODBCount" Query="sum($iODBTotalItemCount)">
						<Variable Name="INFO[Swap][ODB][Count]" Scope="Children"/>
					</Rule>
					<Rule Name="iODBSize" Query="sum($iODBTotalItemSize)">
						<Variable Name="INFO[Swap][ODB][Size]" Scope="Children"/>
					</Rule>
				</Object>

				<Rule Name="fDispatch" Query="not ($fRDBException or $fODBException)" NextStep="SelectSwapOptionStep" AlwaysEvaluate="True"/>
				<Rule Name="fDispatch1" Query="$fRDBException or $fODBException" NextStep="ReportErrorStep" AlwaysEvaluate="True">
					<Rule Name="szPreviousStep" Query="'GatherSwapInfoStep'">
						<Variable Name="INFO[PreviousStepName]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle" Query="string(@Title)" Title="Falha ao coletar informações do banco de dados para mesclagem ou cópia">
						<Variable Name="INFO[Title]" Scope="Children"/>
					</Rule>
				</Rule>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="ReportErrorStep" Title="Etapa Relatar Erro" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="Display Fail result" Key1="Scalar" Display="Hide">
				<Setting Key1="%INFO[PreviousStepName]%" Substitution="PreviousStepName" Display="Hide"/>
				<Setting Key1="%INFO[Title]%" Substitution="Title" Display="Hide"/>
				<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>
				<Setting Key1="%EventDisplayStepID%" Substitution="EventDisplayStepID" Display="Hide"/>

				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="%Title%"/>

				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" Width="FullWidth" Height="450">
					<Report Title="Erros" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Error']"/>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="If" Name="IsNotSymptom" Key1="'%IsSymptom%'='0'">
					<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
				</Object>
				<Object Type="If" Name="IsSymptom" Key1="'%IsSymptom%'='1'">
					<Object Type="Control" SubType="Link" Name="Goto" Position="NextTo" Percent="30" Text="Voltar à página de exibição de eventos" NextStep="%EventDisplayStepID%"/>
				</Object>

			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectSwapOptionStep" Title="Selecionar Opção de Troca" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][SelectedDB]%" Substitution="SelectedDB" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][%INFO[RSG][SelectedDB]%][MDBPATH]%" Substitution="SelectedDBPath" Display="Hide"/>
				<Setting Key1="%INFO[Swap][RDB][Count]%" Substitution="RDBCount" Display="Hide"/>
				<Setting Key1="%INFO[Swap][RDB][Size]%" Substitution="RDBSize" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%" Substitution="OrigMDB" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%" Substitution="OrigSG" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%][%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%][MDBPATH]%" Substitution="OrigMDBPath" Display="Hide"/>
				<Setting Key1="%INFO[Swap][ODB][Count]%" Substitution="ODBCount" Display="Hide"/>
				<Setting Key1="%INFO[Swap][ODB][Size]%" Substitution="ODBSize" Display="Hide"/>
				<Setting Key1="%OPT[SortOption]%" Substitution="SortOption" Display="Hide"/>
				<Setting Key1="%OPT[MatchOption]%" Substitution="MatchOption" Display="Hide"/>
				<Setting Key1="%INFO[Merge][BadItemLimit]%" Substitution="BadItemLimit" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecionar Opção de Troca de Banco de Dados"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>

				<Object Type="Control" SubType="Label" Name="RSGName" Position="Below" FontStyle="Bold" Text="Nome do grupo de armazenamento de recuperação: %RSGName%"/>
				<Object Type="Control" SubType="Label" Name="SelectedDB" Position="Below" LineSpace="0" Text="Banco de dados selecionado no grupo de armazenamento de recuperação: %SelectedDB%"/>
				<Object Type="Control" SubType="Label" Name="RDBPathLabel" Position="Below" LineSpace="0" Text="Caminho do banco de dados do grupo de armazenamento de recuperação: %SelectedDBPath%"/>
				<Object Type="Control" SubType="Label" Name="RDBItemCountLabel" Position="Below" LineSpace="0" Text="Contagem total de itens do banco de dados do grupo de armazenamento de recuperação: %RDBCount%"/>
				<Object Type="Control" SubType="Label" Name="RDBItemSizeLabel" Position="Below" LineSpace="0" Text="Tamanho total dos itens do banco de dados do grupo de armazenamento de recuperação (Bytes): %RDBSize%"/>


				<Object Type="Control" SubType="Label" Name="LinkedSG" Position="Below" FontStyle="Bold" Text="Nome do grupo de armazenamento vinculado: %OrigSG%"/>
				<Object Type="Control" SubType="Label" Name="OrigMDB" Position="Below" LineSpace="0" Text="Nome original do banco de dados vinculado: %OrigMDB%"/>
				<Object Type="Control" SubType="Label" Name="ODBPathLabel" Position="Below" LineSpace="0" Text="Caminho original do banco de dados vinculado: %OrigMDBPath%"/>
				<Object Type="Control" SubType="Label" Name="ODBItemCountLabel" Position="Below" LineSpace="0" Text="Contagem total dos itens do banco de dados original: %ODBCount%"/>
				<Object Type="Control" SubType="Label" Name="ODBItemSizeLabel" Position="Below" LineSpace="0" Text="Tamanho total dos itens do banco de dados original (Bytes): %ODBSize%"/>

				<Object Type="Control" SubType="Label" Name="SwapLabel" Position="Below" LineSpace="2" Text="OBSERVAÇÃO: Se você selecionar o link 'Executar ação de troca' abaixo, os bancos de dados original e de recuperação serão desmontados, seus caminhos de arquivo de banco de dados serão trocados e os dois bancos de dados serão montados. Isso interromperá brevemente o serviço de email para usuários cujas caixas de correio estiverem localizadas no banco de dados original."/>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="PerformSwapOption" Position="NextTo" Percent="30" Text="Executar ação de troca" NextStep="PerformSwapOptionStep"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="LeftBelow" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="PerformSwapOptionStep" Title="Etapa Trocar Configurações do Banco de Dados" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%LocalMachineName%" Substitution="LocalMachineName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][SelectedDB]%" Substitution="RDBName" Display="Hide"/>
			<Setting Key1="%INFO[%INFO[RSG][Name]%][%INFO[RSG][SelectedDB]%][MDBPATH]%" Substitution="RDBPath" Display="Hide"/>
			<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%" Substitution="ODBName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%" Substitution="OSGName" Display="Hide"/>
			<Setting Key1="%INFO[%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%][%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%][MDBPATH]%" Substitution="ODBPath" Display="Hide"/>
			<Object Type="Progress" SubType="NoCancel" Title="Trocar Configurações do Banco de Dados" Text="Aguarde enquanto a ferramenta troca a configuração do banco de dados de %RSGName%\%RDBName% e %OSGName%\%ODBName%.">
				<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a troca de configurações de bancos de dados entre o banco de dados ({1}\{2}) e o banco de dados ({3}\{4}) no servidor {5}." S1="%OSGName%" S2="%ODBName%" S3="%RSGName%" S4="%RDBName%" S5="%Server%"/>
				<Object Type="If" Name="CheckMachineName" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
					<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a troca de configurações de bancos de dados entre o banco de dados ({1}\{2}) e o banco de dados ({3}\{4}) no servidor {5}." S1="%OSGName%" S2="%ODBName%" S3="%RSGName%" S4="%RDBName%" S5="%Server%"/>
				</Object>

				<Object Type="Group" Name="Perform Swap" SecurityContext="EXLOGON">
					<Object Type="MonadCommand" Key1="dismount-database -Identity &quot;%EXSERVER%\%RSGName%\%RDBName%&quot; -DomainController %DC% -confirm:$false">
						<Rule Name="szDismountRDB" Query="../Exception/@Message" Title="Erro encontrado ao tentar desmontar o banco de dados" Text="Erro encontrado ao tentar desmontar o banco de dados ({1}) no grupo de armazenamento de recuperação ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%RDBName%" S2="%RSGName%" Error="Error"/>
					</Object>
					<Object Type="SaveLogNow" Name="SaveLogForDismountRDB"/>
					<Object Type="MonadCommand" Key1="dismount-database -Identity &quot;%EXSERVER%\%OSGName%\%ODBName%&quot; -DomainController %DC% -confirm:$false">
						<Rule Name="szDismountODB" Query="../Exception/@Message" Title="Erro encontrado ao tentar desmontar o banco de dados" Text="Erro encontrado ao tentar desmontar o banco de dados ({1}) no grupo de armazenamento ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%ODBName%" S2="%OSGName%" Error="Error"/>
					</Object>
					<Object Type="SaveLogNow" Name="SaveLogForDismountODB"/>
					<Object Type="MonadCommand" Key1="move-databasepath -Identity &quot;%EXSERVER%\%RSGName%\%RDBName%&quot; -DomainController %DC% -EDBFilePath &quot;%ODBPath%&quot; -ConfigurationOnly:$true -force">
						<Rule Name="szMoveRDB" Query="../Exception/@Message" Title="Erro encontrado ao tentar mover o banco de dados" Text="Erro encontrado ao tentar mover o banco de dados ({1}) no grupo de armazenamento de recuperação ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%RDBName%" S2="%RSGName%" Error="Error"/>
					</Object>
					<Object Type="SaveLogNow" Name="SaveLogForMoveRDB"/>
					<Object Type="MonadCommand" Key1="move-databasepath -Identity &quot;%EXSERVER%\%OSGName%\%ODBName%&quot; -DomainController %DC% -EDBFilePath &quot;%RDBPath%&quot; -ConfigurationOnly:$true -force">
						<Rule Name="szMoveODB" Query="../Exception/@Message" Title="Erro encontrado ao tentar mover o banco de dados" Text="Erro encontrado ao tentar mover o banco de dados ({1}) no grupo de armazenamento ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%ODBName%" S2="%OSGName%" Error="Error"/>
					</Object>
					<Object Type="SaveLogNow" Name="SaveLogForMoveODB"/>
					<Object Type="MonadCommand" Key1="set-mailboxdatabase -Identity &quot;%EXSERVER%\%OSGName%\%ODBName%&quot; -DomainController %DC% -AllowFileRestore:$True">
						<Rule Name="szSetODBFlag" Query="../Exception/@Message" Title="Erro encontrado ao tentar configurar o sinalizador do banco de dados" Text="Erro encontrado ao tentar configurar o sinalizador 'O banco de dados pode ser substituído por restauração' no banco de dados ({1}) do grupo de armazenamento ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%ODBName%" S2="%OSGName%" Error="Error"/>
					</Object>
					<Object Type="SaveLogNow" Name="SaveLogForSetODBFlag"/>
					<Object Type="MonadCommand" Key1="set-mailboxdatabase -Identity &quot;%EXSERVER%\%RSGName%\%RDBName%&quot; -DomainController %DC% -AllowFileRestore:$True">
						<Rule Name="szSetRDBFlag" Query="../Exception/@Message" Title="Erro encontrado ao tentar configurar o sinalizador do banco de dados" Text="Erro encontrado ao tentar configurar o sinalizador 'O banco de dados pode ser substituído por restauração' no banco de dados ({1}) do grupo de armazenamento ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%RDBName%" S2="%RSGName%" Error="Error"/>
					</Object>
					<Object Type="SaveLogNow" Name="SaveLogForSetRDBFlag"/>
					<Object Type="MonadCommand" Key1="mount-database -Identity &quot;%EXSERVER%\%OSGName%\%ODBName%&quot; -DomainController %DC%">
						<Rule Name="szMountODB" Query="../Exception/@Message" Title="Erro encontrado ao tentar montar o banco de dados" Text="Erro encontrado ao tentar montar o banco de dados ({1}) no grupo de armazenamento ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%ODBName%" S2="%OSGName%" Error="Error"/>
					</Object>
					<Object Type="SaveLogNow" Name="SaveLogForMountODB"/>
					<Object Type="MonadCommand" Key1="mount-database -Identity &quot;%EXSERVER%\%RSGName%\%RDBName%&quot; -DomainController %DC%">
						<Rule Name="szMountRDB" Query="../Exception/@Message" Title="Erro encontrado ao tentar montar o banco de dados" Text="Erro encontrado ao tentar montar o banco de dados ({1}) no grupo de armazenamento ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%RDBName%" S2="%RSGName%" Error="Error"/>
					</Object>
					<Object Type="SaveLogNow" Name="SaveLogForMountRDB"/>
					<Rule Name="szExceptionMessage" Query="if($szDismountRDB or $szDismountODB or $szMoveRDB or $szMoveODB or $szSetODBFlag or $szSetRDBFlag or $szMountODB or $szMountRDB, concat($szDismountRDB, $szDismountODB, $szMoveRDB, $szMoveODB, $szSetODBFlag, $szSetRDBFlag, $szMountODB, $szMountRDB))" AlwaysEvaluate="True"/>
					<Rule Name="szMsgError" Query="$szDismountRDB or $szDismountODB or $szMoveRDB or $szMoveODB or $szSetODBFlag or $szSetRDBFlag or $szMountODB or $szMountRDB" Title="Falha ao trocar bancos de dados" Text="Falha ao trocar bancos de dados de {2}\{3} e {4}\{5}. Mensagem de erro: {1}." P1="$szExceptionMessage" S2="%RSGName%" S3="%RDBName%" S4="%OSGName%" S5="%ODBName%" Error="Error" AlwaysEvaluate="True"/>
					<Rule Name="szMsgSuccess" Query="not ($szMsgError)" Title="Os bancos de dados foram trocados com êxito" Text="Os bancos de dados foram trocados com êxito entre {1}\{2} e {3}\{4}." S1="%RSGName%" S2="%RDBName%" S3="%OSGName%" S4="%ODBName%" Error="Information" AlwaysEvaluate="True"/>
					<Rule Name="fDispatch" Query="true()" NextStep="DisplaySwapResultStep">
						<Rule Name="szPreviousStepName" Query="'PerformSwapOptionStep'">
							<Variable Name="PreviousStepName" Scope="Children"/>
						</Rule>
					</Rule>
				</Object>
				<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a troca de configurações de bancos de dados entre o banco de dados ({1}\{2}) e o banco de dados ({3}\{4}) no servidor {5}." S1="%OSGName%" S2="%ODBName%" S3="%RSGName%" S4="%RDBName%" S5="%Server%"/>
				<Object Type="If" Name="CheckMachineName2" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
					<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a troca de configurações de bancos de dados entre o banco de dados ({1}\{2}) e o banco de dados ({3}\{4}) no servidor {5}." S1="%OSGName%" S2="%ODBName%" S3="%RSGName%" S4="%RDBName%" S5="%Server%"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="DisplaySwapResultStep" Title="Etapa Exibir Resultado da Troca" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][SelectedDB]%" Substitution="SelectedDB" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%" Substitution="ODBName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%" Substitution="OSGName" Display="Hide"/>
				<Setting Key1="%PreviousStepName%" Substitution="PreviousStepName" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultado da Troca de Bancos de Dados"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="RSG" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento de recuperação: %RSGName%"/>
				<Object Type="Control" SubType="Label" Name="LinkedSG" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento vinculado: %OSGName%"/>
				<Object Type="Control" SubType="Label" Name="SelectedDB" Position="Below" LineSpace="0" Text="Nome do banco de dados selecionado: %SelectedDB%"/>
				<Object Type="Control" SubType="Label" Name="LinkedDB" Position="Below" LineSpace="0" Text="Nome do banco de dados vinculado: %ODBName%"/>

				<Object Type="Control" SubType="Label" Name="SwapLabel" Position="Below" FontStyle="Bold" Text="Resultado da troca de bancos de dados:"/>

				<Object Type="IfResults" Name="SwapSuccessResults" Key1="count(//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Error']) = 0">
					<Object Type="Control" SubType="Label" Name="SuccessLabel" Position="LeftBelow" LineSpace="2" Text="As configurações para o banco de dados original e de recuperação foram trocadas com êxito e os bancos de dados foram remontados."/>
				</Object>

				<Object Type="IfResults" Name="SwapFailureResults" Key1="count(//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Error']) &gt; 0">
					<Object Type="Control" SubType="Label" Name="FailureLabel" Position="LeftBelow" LineSpace="2" ForeColor="Red" Text="Um erro foi encontrado ao trocar o banco de dados de recuperação pelo banco de dados original. Consulte o relatório abaixo para obter informações detalhadas."/>
				</Object>

				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" LineSpace="2" Width="FullWidth" Height="300">
					<Report Title="Resultados" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error]"/>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectMergeOptionStep" Title="Selecionar Opções de Mesclagem" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][SelectedDB]%" Substitution="SelectedDB" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][%INFO[RSG][SelectedDB]%][MDBPATH]%" Substitution="SelectedDBPath" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%" Substitution="OrigMDB" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%" Substitution="OrigSG" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%][%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%][MDBPATH]%" Substitution="OrigMDBPath" Display="Hide"/>
				<Setting Key1="%OPT[SortOption]%" Substitution="SortOption" Display="Hide"/>
				<Setting Key1="%OPT[MatchOption]%" Substitution="MatchOption" Display="Hide"/>
				<Setting Key1="%INFO[Merge][BadItemLimit]%" Substitution="BadItemLimit" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecionar Opções de Mesclagem"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>

				<Object Type="Control" SubType="Label" Name="RSGName" Position="Below" FontStyle="Bold" Text="Nome do grupo de armazenamento de recuperação: %RSGName%"/>
				<Object Type="Control" SubType="Label" Name="SelectedDB" Position="Below" LineSpace="0" Text="Banco de dados selecionado no grupo de armazenamento de recuperação: %SelectedDB%"/>
				<Object Type="Control" SubType="Label" Name="RDBPathLabel" Position="Below" LineSpace="0" Text="Caminho do banco de dados do grupo de armazenamento de recuperação: %SelectedDBPath%"/>


				<Object Type="Control" SubType="Label" Name="LinkedSG" Position="Below" FontStyle="Bold" Text="Nome do grupo de armazenamento vinculado: %OrigSG%"/>
				<Object Type="Control" SubType="Label" Name="OrigMDB" Position="Below" LineSpace="0" Text="Nome original do banco de dados vinculado: %OrigMDB%"/>
				<Object Type="Control" SubType="Label" Name="ODBPathLabel" Position="Below" LineSpace="0" Text="Caminho original do banco de dados vinculado: %OrigMDBPath%"/>

				<Object Type="Control" SubType="ShowHide" Name="ShowHideOptionInfo" Position="Below" Text="Exibir Opções Avançadas, Ocultar Opções Avançadas">

					<Object Type="Control" SubType="Label" Name="MatchOptionsLabel" Position="Below" LineSpace="2" FontStyle="Bold" Text="Corresponder opções"/>
					<Object Type="Control" SubType="ComboBox" Name="MatchOptions" Position="Below" SelectedIndex="1" Default="%MatchOption%">
						<Setting Key1="SelectedIndex">
							<Rule Name="szMatchOption" Query="$.">
								<Variable Name="INFO[Merge][MatchOption]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>

					<Object Type="Control" SubType="Label" Name="SortOptionsLabel" Position="Below" LineSpace="2" FontStyle="Bold" Text="Classificar opções"/>
					<Object Type="Control" SubType="ComboBox" Name="SortOptions" Position="Below" SelectedIndex="1" Default="%SortOption%">
						<Setting Key1="SelectedIndex">
							<Rule Name="szSortOption" Query="$.">
								<Variable Name="INFO[Merge][SortOption]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>

					<Object Type="Control" SubType="Label" Name="MatchAllOptions" Position="Below" LineSpace="2" FontStyle="Bold" Text="Corresponder todas as opções"/>
					<Object Type="Control" SubType="Label" Name="MatchAllLabel" Position="Below" LineSpace="0" Text="Se você marcar a caixa de seleção abaixo, a correspondência automática será desabilitada e todas as caixas de correio de origem corresponderão à caixa de correio definida por você."/>
					<Object Type="Control" SubType="CheckBox" Name="MatchAll" Position="Below" Text="Corresponder todas as caixas de correio de origem a uma única caixa de correio de destino">
						<Setting Key1="Value">
							<Rule Name="szMatchAllOption" Query="$.">
								<Variable Name="INFO[Merge][MatchAll]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>
					<Object Type="Control" SubType="Label" Name="MatchAllTextboxLabel" Position="Below" LineSpace="0" Text="Alias da única caixa de correio de destino:"/>
					<Object Type="Control" SubType="TextBox" Name="MatchAllTextBox" Position="NextTo" Percent="30">
						<Setting Key1="Value">
							<Rule Name="szMatchAllAlias" Query="$.">
								<Variable Name="INFO[Merge][MatchAlias]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>
					<Object Type="Control" SubType="Label" Name="TargetFolderLabel" Position="LeftBelow" LineSpace="0" Text="Pasta de destino:"/>
					<Object Type="Control" SubType="TextBox" Name="TargetFolderTextBox" Position="NextTo" Percent="30">
						<Setting Key1="Value">
							<Rule Name="szTargetFolder" Query="$.">
								<Variable Name="INFO[Merge][TargetFolder]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>

					<Object Type="Control" SubType="Label" Name="FilterLabel" Position="LeftBelow" FontStyle="Bold" Text="Opção de filtro: "/>
					<Object Type="Control" SubType="Label" Name="FilterInfo" Position="Below" LineSpace="0" Text="A data de início e de termino deve ser inserida de acordo com a localidade do Windows (isto é, mm/dd/aaaa para EUA)."/>
					<Object Type="Control" SubType="Label" Name="StartTime" Position="Below" Text="Data de início: "/>
					<Object Type="Control" SubType="TextBox" Name="StartTimeTextBox" Position="NextTo" Percent="30">
						<Setting Key1="Value">
							<Rule Name="szStartTime" Query="$.">
								<Variable Name="INFO[Merge][StartTime]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>
					<Object Type="Control" SubType="Label" Name="EndTime" Position="LeftBelow" LineSpace="0" Text="Data de término: "/>
					<Object Type="Control" SubType="TextBox" Name="EndTimeTextBox" Position="NextTo" Percent="30">
						<Setting Key1="Value">
							<Rule Name="szEndTime" Query="$.">
								<Variable Name="INFO[Merge][EndTime]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>
					<Object Type="Control" SubType="Label" Name="Subject" Position="LeftBelow" LineSpace="0" Text="Assunto: "/>
					<Object Type="Control" SubType="TextBox" Name="SubjectTextBox" Position="NextTo" Percent="30">
						<Setting Key1="Value">
							<Rule Name="szSubject" Query="$.">
								<Variable Name="INFO[Merge][Subject]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>

					<Object Type="Control" SubType="Label" Name="BadItemLimitLabel" Position="LeftBelow" FontStyle="Bold" Text="Limite de item incorreto"/>
					<Object Type="Control" SubType="Label" Name="MaxBadItemLimit" Position="Below" LineSpace="0" Text="Limite máximo de item incorreto: "/>
					<Object Type="Control" SubType="TextBox" Name="BadItemLimit" Position="NextTo" Percent="30" Default="%BadItemLimit%">
						<Setting Key1="Value">
							<Rule Name="iBadItemLimit" Query="if(not ($.=''), $., '0')">
								<Variable Name="INFO[Merge][BadItemLimit]" Scope="Local"/>
							</Rule>
						</Setting>
					</Object>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Executar tarefas de pré-mesclagem" NextStep="PerformPreMergeStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="PerformPreMergeStep" Title="Executar ações de pré-mesclagem" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][SelectedDB]%" Substitution="RDBName" Display="Hide"/>
			<Setting Key1="%INFO[%INFO[RSG][Name]%][%INFO[RSG][SelectedDB]%][MDBPATH]%" Substitution="RDBPath" Display="Hide"/>
			<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%" Substitution="ODBName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%" Substitution="OSGName" Display="Hide"/>
			<Setting Key1="%INFO[%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%][%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%][MDBPATH]%" Substitution="ODBPath" Display="Hide"/>
			<Setting Key1="%INFO[Merge][SortOption]%" Substitution="SortOption" Display="Hide"/>
			<Setting Key1="%INFO[Merge][MatchOption]%" Substitution="MatchOption" Display="Hide"/>
			<Setting Key1="%INFO[Merge][MatchAll]%" Substitution="MatchAll" Display="Hide"/>
			<Setting Key1="%INFO[Merge][MatchAllAlias]%" Substitution="MatchAlias" Display="Hide"/>
			<Object Type="Progress" Title="Executar Tarefas de Pré-mesclagem" Text="Aguarde enquanto a ferramenta executa tarefas de pré-mesclagem para %RSGName%\%RDBName% e %OSGName%\%ODBName%.">
				<Object Type="Group" Name="MatchingRecipients" SecurityContext="EXLOGON">
					<Object Type="MonadCommand" Name="Identity" Key1="get-mailboxstatistics -database &quot;%EXSERVER%\%RSGName%\%RDBName%&quot; | where {$_.ObjectClass -notmatch '(SystemAttendantMailbox|ExOleDbSystemMailbox)'}">
						<Rule Name="fRDBException" Query="count(../Exception) &gt;0" Title="Erro ao recuperar informações do banco de dados" Text="Erro ao recuperar informações estatísticas do banco de dados ({1}) de {2}. A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%ODBName%" S2="%Server%" Error="Error"/>
						<Setting Key1="MailboxGuid" Format="System.Guid" Substitution="Guid" SubstitutionFormat="System.Guid">
							<Rule Name="szRDBMailboxGuid" Query="$."/>
							<Rule Name="szRDBMailboxGuidPack" Query="pack($.)"/>
							<Rule Name="szRDBUser" Query="join('',$szRDBDisplayNamePack,$szRDBMailboxGuidPack,$szRDBLegacyDNPack)"/>
							<Rule Name="szRDBUserPack" Query="pack($szRDBUser)"/>
						</Setting>
						<Setting Key1="LegacyDN" Substitution="LegacyDN">
							<Rule Name="szRDBLegacyDN" Query="$."/>
							<Rule Name="szRDBLegacyDNPack" Query="pack($.)"/>
						</Setting>
						<Setting Key1="DisplayName" Substitution="DisplayName">
							<Rule Name="szRDBDisplayName" Query="$."/>
							<Rule Name="szRDBDisplayNamePack" Query="pack($.)"/>
						</Setting>
						<Object Type="If" Name="MatchDisplayName" Key1="%MatchOption%=0 and %MatchAll%=0">
							<Object Type="MonadCommand" Name="Identity" Key1="get-mailbox -Identity &quot;%DisplayName%&quot; -DomainController %DC%">
								<Rule Name="fMatchDisplayNameException" Query="count(../Exception) &gt; 0" Title="Erro ao fazer correspondência de usuário por nome de exibição" Text="Erro ao fazer correspondência do usuário ({1})." S1="%DisplayName%" Error="Warning"/>
								<Setting Key1="Identity">
									<Rule Name="fMatchDisplayName" Query="$."/>
								</Setting>
							</Object>
						</Object>
						<Object Type="If" Name="MatchGuid" Key1="%MatchOption%=1 and %MatchAll%=0">
							<Object Type="MonadCommand" Name="Identity" Key1="get-mailbox -Identity &quot;%Guid%&quot; -DomainController %DC%">
								<Rule Name="fMatchGUIDException" Query="count(../Exception) &gt; 0" Title="Erro ao fazer correspondência de usuário por GUID" Text="Erro ao fazer correspondência do usuário ({1}) pela GUID ({2})." S1="%DisplayName%" S2="%Guid%" Error="Warning"/>
								<Setting Key1="Identity">
									<Rule Name="fMatchGuid" Query="$."/>
								</Setting>
							</Object>
						</Object>
						<Object Type="If" Name="MatchLegacyDN" Key1="%MatchOption%=2 and %MatchAll%=0">
							<Object Type="MonadCommand" Name="Identity" Key1="get-mailbox -Identity &quot;%LegacyDN%&quot; -DomainController %DC%">
								<Rule Name="fMatchLegacyDNException" Query="count(../Exception) &gt; 0" Title="Erro ao fazer correspondência de usuário por Nome Distinto Herdado do Exchange" Text="Erro ao fazer correspondência do usuário ({1}) pelo Nome Distinto Herdado do Exchange ({2})." S1="%DisplayName%" S2="%LegacyDN%" Error="Warning"/>
								<Setting Key1="Identity">
									<Rule Name="fMatchLegacyDN" Query="$."/>
								</Setting>
							</Object>
						</Object>
					</Object>
					<Rule Name="szMatchList" Query="if(($fMatchGuid or $fMatchDisplayName or $fMatchLegacyDN or (@S1=1)), join('', $szRDBUserPack))" S1="%MatchAll%" AlwaysEvaluate="True"/>
					<Rule Name="szMatchListCount" Query="if(($fMatchGuid or $fMatchDisplayName or $fMatchLegacyDN or @S1=1), count($szRDBUserPack), 0)" S1="%MatchAll%" AlwaysEvaluate="True">
						<Variable Name="INFO[Merge][MatchListCount]" Scope="Children"/>
					</Rule>
					<Rule Name="szUnMatchList" Query="if((not ($fMatchGuid or $fMatchDisplayName or $fMatchLegacyDN) and @S1=0), join('', $szRDBUserPack))" S1="%MatchAll%" AlwaysEvaluate="True"/>
					<Rule Name="szUnMatchListCount" Query="if((not ($fMatchGuid or $fMatchDisplayName or $fMatchLegacyDN) and @S1=0), count($szRDBUserPack), 0)" S1="%MatchAll%" AlwaysEvaluate="True">
						<Variable Name="INFO[Merge][UnMatchListCount]" Scope="Children"/>
					</Rule>
					<Rule Name="szSortedMatchList" Query="if($szMatchList, sort($szMatchList, @S1))" S1="%SortOption%" AlwaysEvaluate="True">
						<Variable Name="INFO[Merge][MatchList]" Scope="Children"/>
					</Rule>
					<Rule Name="szSortedUnMatchList" Query="if($szUnMatchList, sort($szUnMatchList, @S1))" S1="%SortOption%" AlwaysEvaluate="True">
						<Variable Name="INFO[Merge][UnMatchList]" Scope="Children"/>
					</Rule>
					<Rule Name="szDefaultSelectionMode" Query="if((@S0=0), string('True'), string('False'))" S0="%MatchAll%" AlwaysEvaluate="True">
						<Variable Name="INFO[Merge][DefaultSelectionMode]" Scope="Children"/>
					</Rule>
				</Object>
				<!-- Prepare Filter String -->
				<Object Type="Variable" Name="GetMergeOptions" Key1="Scalar" Display="Hide">
					<Setting Key1="%INFO[Merge][StartTime]%" Display="Hide">
						<Rule Name="szStartTime" Query="if(not ($.=''), concat(' -StartDate ', $.))"/>
					</Setting>
					<Setting Key1="%INFO[Merge][EndTime]%" Display="Hide">
						<Rule Name="szEndTime" Query="if(not ($.=''), concat(' -EndDate ', $.))"/>
					</Setting>
					<Setting Key1="%INFO[Merge][Subject]%" Display="Hide">
						<Rule Name="szSubject" Query="if(not ($.=''), concat(' -SubjectKeywords &quot;', $., '&quot;'))"/>
					</Setting>
					<Setting Key1="%INFO[Merge][BadItemLimit]%" Display="Hide">
						<Rule Name="szBadItem" Query="if(not ($.=''), concat(' -BadItemLimit ', $.))"/>
					</Setting>
					<Rule Name="szOptionString" Query="concat($szStartTime, $szEndTime, $szSubject, $szBadItem)" AlwaysEvaluate="True">
						<Variable Name="INFO[Merge][OptionString]" Scope="Children"/>
					</Rule>
				</Object>
				<Rule Name="fDispatch" Query="true()" NextStep="DisplayMatchStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="DisplayMatchStep" Title="Etapa Exibir Correspondência" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][SelectedDB]%" Substitution="SelectedDB" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%" Substitution="ODBName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%" Substitution="OSGName" Display="Hide"/>
				<Setting Key1="%INFO[Merge][MatchOption]%" Substitution="MatchOption" Display="Hide"/>
				<Setting Key1="%INFO[Merge][MatchList]%" Substitution="MatchList" Display="Hide"/>
				<Setting Key1="%INFO[Merge][MatchListCount]%" Substitution="MatchCount" Display="Hide"/>
				<Setting Key1="%INFO[Merge][UnMatchList]%" Substitution="UnMatchList" Display="Hide"/>
				<Setting Key1="%INFO[Merge][UnMatchListCount]%" Substitution="UnMatchCount" Display="Hide"/>
				<Setting Key1="%INFO[Merge][MatchAll]%" Substitution="MatchAll" Display="Hide"/>
				<Setting Key1="%INFO[Merge][MatchAlias]%" Substitution="MatchAllAlias" Display="Hide"/>
				<Setting Key1="%INFO[Merge][TargetFolder]%" Substitution="MatchAllFolder" Display="Hide"/>
				<Setting Key1="%INFO[Merge][DefaultSelectionMode]%" Substitution="DefaultSelectionMode" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecione as Caixas de Correio para Copiar ou Mesclar"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="RSG" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento de recuperação: %RSGName%"/>
				<Object Type="Control" SubType="Label" Name="LinkedSG" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento vinculado: %OSGName%"/>
				<Object Type="Control" SubType="Label" Name="SelectedDB" Position="Below" LineSpace="0" Text="Nome do banco de dados selecionado: %SelectedDB%"/>
				<Object Type="Control" SubType="Label" Name="LinkedDB" Position="Below" LineSpace="0" Text="Nome do banco de dados vinculado: %ODBName%"/>

				<Object Type="If" Name="MatchAllOption" Key1="%MatchAll%=1">
					<Object Type="Control" SubType="Label" Name="MatchAllLabel" Position="Below" FontStyle="Bold" Text="Corresponder todas as opções:"/>
					<Object Type="Control" SubType="Label" Name="MatchAllAlias" Position="Below" LineSpace="0" Text="Corresponder todos os aliases: %MatchAllAlias%"/>
					<Object Type="Control" SubType="Label" Name="MatchAllTargetFolder" Position="Below" LineSpace="0" Text="Corresponder todas as pastas de destino: %MatchAllFolder%"/>
				</Object>

				<Object Type="If" Name="MatchCount" Key1="%MatchCount% &gt; 0">
					<Object Type="Control" SubType="Label" Name="matchMailboxes" Position="Below" FontStyle="Bold" Text="Caixas de correio correspondentes"/>
					<Object Type="Control" SubType="Label" Name="InvalidSelection" Position="NextTo" Percent="30" ForeColor="Red" Text="Verifique pelo menos uma das caixas de correio abaixo." Flags="Visible=False"/>
					<Object Type="Control" SubType="ListView" Name="matched" Position="LeftBelow" Text="Caixas de Correio Correspondentes" Height="300" Width="FullWidth" Title="Nome para Exibição,GUID da Caixa de Correio,Nome Distinto Herdado do Exchange" Default="%MatchList%" SelectionMode="True" Flags="DefaultSelection=%DefaultSelectionMode%">
						<Setting Key1="Pack">
							<Rule Name="SelectedData" Query="$.">
								<Variable Name="INFO[Merge][SelectedData]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>

					<Object Type="Control" SubType="Button" Name="SaveButton" Position="LeftBelow" Width="100" Text="Salvar">
						<Setting Key1="__VALUE"/>
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="matched" Query="ActionHandler('matched', 'SaveCSV')"/>
						</Event>
					</Object>
					<Object Type="Control" SubType="Button" Name="SelectAllButton" Position="NextTo" Scale="1" Width="100" Text="Selecionar Todos">
						<Setting Key1="__VALUE"/>
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="matched" Query="ActionHandler('matched', 'SelectAll')"/>
						</Event>
					</Object>
					<Object Type="Control" SubType="Button" Name="UnselectAllButton" Position="NextTo" Scale="1" Width="100" Text="Desmarcar Todos">
						<Setting Key1="__VALUE"/>
						<Event Type="Click">
							<Action Type="ExecuteQuery" ControlName="matched" Query="ActionHandler('matched', 'UnselectAll')"/>
						</Event>
					</Object>
				</Object>

				<Object Type="If" Name="NoMatchMailbox" Key1="%MatchCount%=0">
					<Object Type="Control" SubType="Label" Name="NoMatchMailboxLabel" Position="LeftBelow" Text="Nenhuma caixa de correio corresponde aos critérios de correspondência."/>
				</Object>

				<Object Type="If" Name="UnMatchCount" Key1="%UnMatchCount% &gt; 0">
					<Object Type="Control" SubType="Label" Name="UnmatchMailboxes" Position="Below" FontStyle="Bold" Text="Caixas de correio não correspondentes"/>
					<Object Type="Control" SubType="ListView" Name="Unmatched" Position="Below" Text="Caixas de Correio Não Correspondentes" Height="300" Width="FullWidth" Title="Nome para Exibição,GUID da Caixa de Correio,Nome Distinto Herdado do Exchange" Default="%UnMatchList%" SelectionMode="Disabled"/>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>

				<Object Type="If" Name="NextLink" Key1="%MatchCount% &gt; 0">
					<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Executar ações de mesclagem" NextStep="MergeActionStep">
						<Event Type="Click">
							<Action Type="Proceed" Query="control-value('matched') !=''"/>
							<Action Type="Visible" ControlName="InvalidSelection" Query="control-value('matched') =''"/>
						</Event>
					</Object>
				</Object>
				<Object Type="If" Name="TaskCenterLinkCase" Key1="%MatchCount%=0">
					<Object Type="Control" SubType="Link" Name="TaskCenterLink" Position="NextTo" Percent="30" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="MergeActionStep" Title="Etapa Executar Mesclagem ou Copiar Ação" Display="Left">
		<Object Type="Variable" Key1="Scalar" Display="Hide">
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%LocalMachineName%" Substitution="LocalMachineName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
			<Setting Key1="%INFO[RSG][SelectedDB]%" Substitution="RDBName" Display="Hide"/>
			<Setting Key1="%INFO[Merge][SelectedData]%" Substitution="MergeList" Display="Hide"/>
			<Setting Key1="%INFO[Merge][MatchAll]%" Substitution="MatchAll" Display="Hide"/>
			<Setting Key1="%INFO[Merge][MatchAlias]%" Substitution="MatchAlias" Display="Hide"/>
			<Setting Key1="%INFO[Merge][TargetFolder]%" Substitution="TargetFolder" Display="Hide"/>
			<Setting Key1="%INFO[Merge][BadItemLimit]%" Substitution="BadItemLimit" Display="Hide"/>
			<Setting Key1="%INFO[Merge][OptionString]%" Substitution="OptionString" Display="Hide"/>
			<Object Type="Progress" Title="Mesclar ou Copiar Caixas de Correio" Text="Aguarde enquanto a ferramenta mescla ou copia os dados da caixa de correio de %RSGName%\%RDBName%.">
				<Object Type="If" Name="MatchAllOption" Key1="%MatchAll%=1" SecurityContext="EXLOGON">
					<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a cópia do conteúdo da caixa de correio de{1}\{2} para {4} no servidor {3}." S1="%RSGName%" S2="%RDBName%" S3="%Server%" S4="%MatchAlias%"/>
					<Object Type="If" Name="CheckMachineName" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
						<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a cópia do conteúdo da caixa de correio de {1}\{2} para {4} no servidor {3}." S1="%RSGName%" S2="%RDBName%" S3="%Server%" S4="%MatchAlias%"/>
					</Object>

					<Object Type="Variable" Name="UnpackMergeAllList" Key1="Unpack" Key2="%MergeList%">
						<Setting Key1="__VALUE" Substitution="Data"/>
						<Object Type="If" Name="Unpack" Key1="true()">
							<Setting Key1="unpack('%Data%', 0)" Substitution="DisplayName" Display="Hide"/>
							<Setting Key1="unpack('%Data%', 1)" Substitution="Guid" Display="Hide"/>
							<Setting Key1="unpack('%Data%', 2)" Substitution="LegacyDN" Display="Hide"/>
							<Object Type="MonadCommand" Key1="restore-mailbox -Identity %MatchAlias% -rsgdatabase &quot;%EXSERVER%\%RSGName%\%RDBName%&quot; -rsgmailbox &quot;%LegacyDN%&quot; -TargetFolder %TargetFolder% %OptionString%" Timeout="14400">
								<Rule Name="fMatchAllRestoreException" Query="../Exception/@Message" Title="Erro ao mesclar caixa de correio no usuário ({1})" Text="Erro ao mesclar caixa de correio ({2}) no usuário ({1}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%MatchAlias%" S2="%LegacyDN%" Error="Error"/>
								<Setting Key1="StatusMessage" Substitution="StatusMessage"/>
								<Setting Key1="StatusCode">
									<Rule Name="fMergeMatchAllMessage" Query="not ($fMatchAllRestoreException)" Title="A Caixa de Correio ({2}) foi mesclada" Text="A mesclagem da caixa de correio ({2}) no usuário ({3}) foi executada com êxito. Código de Status: {1}. Mensagem de Status: {4}" P1="$." S2="%DisplayName%" S3="%MatchAlias%" S4="%StatusMessage%" Error="Information"/>
								</Setting>
							</Object>
							<Object Type="SaveLogNow" Name="SaveLogForMergeAllList"/>
						</Object>
					</Object>
					<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a cópia do conteúdo da caixa de correio de {1}\{2} para {4} no servidor ({3})." S1="%RSGName%" S2="%RDBName%" S3="%Server%" S4="%MatchAlias%"/>
					<Object Type="If" Name="CheckMachineName2" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
						<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a cópia do conteúdo da caixa de correio de {1}\{2} para {4} no servidor ({3})." S1="%RSGName%" S2="%RDBName%" S3="%Server%" S4="%MatchAlias%"/>
					</Object>
				</Object>
				<Object Type="If" Name="NotMatchAllOption" Key1="not (%MatchAll%=1)" SecurityContext="EXLOGON">
					<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a mesclagem do conteúdo da caixa de correio de {1}\{2} no servidor ({3})." S1="%RSGName%" S2="%RDBName%" S3="%Server%"/>
					<Object Type="If" Name="CheckMachineName3" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
						<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a mesclagem do conteúdo da caixa de correio de {1}\{2} no servidor ({3})." S1="%RSGName%" S2="%RDBName%" S3="%Server%"/>
					</Object>

					<Object Type="Variable" Name="UnpackMergeList" Key1="Unpack" Key2="%MergeList%">
						<Setting Key1="__VALUE" Substitution="Data"/>
						<Object Type="If" Name="Unpack" Key1="true()">
							<Setting Key1="unpack('%Data%', 0)" Substitution="DisplayName" Display="Hide"/>
							<Setting Key1="unpack('%Data%', 1)" Substitution="Guid" Display="Hide"/>
							<Setting Key1="unpack('%Data%', 2)" Substitution="LegacyDN" Display="Hide"/>
							<Object Type="MonadCommand" Key1="restore-mailbox -Identity &quot;%LegacyDN%&quot; -rsgdatabase &quot;%EXSERVER%\%RSGName%\%RDBName%&quot; %OptionString%" Timeout="14400">
								<Rule Name="fRestoreException" Query="../Exception/@Message" Title="Erro ao restaurar a caixa de correio" Text="Erro ao restaurar a caixa de correio ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S2="%LegacyDN%" Error="Error"/>
								<Setting Key1="StatusMessage" Substitution="StatusMessage"/>
								<Setting Key1="StatusCode">
									<Rule Name="fRestoreMailboxMessage" Query="$." Title="A caixa de correio ({2}) foi restaurada" Text="A caixa de correio ({2}) foi restaurada com êxito. Código de Status: {1}. Mensagem de Status: {3}" P1="$." S2="%DisplayName%" S3="%StatusMessage%" Error="Information"/>
								</Setting>
							</Object>
							<Object Type="SaveLogNow" Name="SaveLogForMergeAlias"/>
						</Object>
					</Object>
					<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a mesclagem do conteúdo da caixa de correio de {1}\{2} no servidor ({3})." S1="%RSGName%" S2="%RDBName%" S5="%Server%"/>
					<Object Type="If" Name="CheckMachineName4" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
						<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a mesclagem do conteúdo da caixa de correio de {1}\{2} no servidor ({3})." S1="%RSGName%" S2="%RDBName%" S5="%Server%"/>
					</Object>
				</Object>

				<Rule Name="fDisppatch" Query="true()" NextStep="DisplayMergeResultStep">
					<Rule Name="szPreviousStepName" Query="'MergeActionStep'">
						<Variable Name="PreviousStepName" Scope="Children"/>
					</Rule>
				</Rule>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="DisplayMergeResultStep" Title="Exibir Resultado da Mesclagem ou da Cópia" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="Get Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][SelectedDB]%" Substitution="SelectedDB" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigMDB]%" Substitution="ODBName" Display="Hide"/>
				<Setting Key1="%INFO[RSG][%INFO[RSG][SelectedDB]%][OrigSG]%" Substitution="OSGName" Display="Hide"/>
				<Setting Key1="%INFO[Merge][Message]%" Substitution="MergeResult" Display="Hide"/>
				<Setting Key1="%PreviousStepName%" Substitution="PreviousStepName" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Exibir Resultado da Mesclagem ou da Cópia da Caixa de Correio"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="RSG" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento de recuperação: %RSGName%"/>
				<Object Type="Control" SubType="Label" Name="SelectedDB" Position="Below" LineSpace="0" Text="Nome do banco de dados selecionado no grupo de armazenamento de recuperação: %SelectedDB%"/>
				<Object Type="Control" SubType="Label" Name="LinkedSG" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento vinculado: %OSGName%"/>
				<Object Type="Control" SubType="Label" Name="LinkedDB" Position="Below" LineSpace="0" Text="Nome do banco de dados de destino: %ODBName%"/>

				<Object Type="IfResults" Name="MergeSuccessResults" Key1="count(//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Error']) = 0">
					<Object Type="Control" SubType="Label" Name="SuccessLabel" Position="LeftBelow" LineSpace="2" Text="A ação de mesclagem ou de cópia foi concluída com êxito."/>
				</Object>

				<Object Type="IfResults" Name="MergeFailureResults" Key1="count(//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Error']) &gt; 0">
					<Object Type="Control" SubType="Label" Name="FailureLabel" Position="LeftBelow" LineSpace="2" ForeColor="Red" Text="Um erro foi encontrado ao mesclar ou copiar o conteúdo das caixas de correio do banco de dados de recuperação para o banco de dados vinculado. Consulte o relatório abaixo para obter informações detalhadas."/>
				</Object>

				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" LineSpace="2" Width="FullWidth" Height="400">
					<Report Title="Resultados da Mesclagem" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error='Error' or @Error='Information']"/>
				</Object>
			</Object>

			<Object Type="Control" SubType="Link" Name="MissionControlStep" Position="LeftBelow" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
		</Object>
	</Object>

	<Object Type="Step" Name="ResetLogOptionsStep" Title="Selecionar Opções de Redefinição do Log" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="GetVariables" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%INFO[AllSGs]%" Substitution="AllSGs" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecionar opções de redefinição de log"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor Exchange: %Server%"/>

				<Object Type="Control" SubType="ListBox" Name="ListBox" Position="Below" Width="450" Text="Grupos de armazenamento disponíveis" Default="%AllSGs%">
					<Setting Key1="SelectedSG">
						<Rule Name="szSG" Query="$.">
							<Variable Name="SelectedSG" Scope="Local"/>
						</Rule>
					</Setting>
				</Object>

				<!-- Select a new path -->
				<Object Type="Control" SubType="Label" Name="LogDirectoryLabel" Position="LeftBelow" LineSpace="2" Text="Selecione um local de backup: "/>
				<Object Type="Control" SubType="FileDialog" Text="Procurar..." Title="Selecionar um diretório de backup de log" DialogType="OpenFolder" Name="LogPath" Position="NextTo" Percent="30" Width="300" Flags="ReadOnly=True|AllowCreate=True">
					<Setting Key1="NewLogPath" Substitution="NewLogPath">
						<Rule Name="szLogPathSetVar" Query="$.">
							<Variable Name="INFO[LogMove][NewLogPath]" Scope="Children"/>
						</Rule>
					</Setting>
					<Event Type="Changed">
						<Action Type="Enable" ControlName="Next" Query="not (control-value('LogPath')='')"/>
					</Event>
				</Object>

				<Object Type="Control" SubType="Label" Name="WarningLabel" Position="LeftBelow" LineSpace="2" FontStyle="Bold" Text="Importante:"/>
				<Object Type="Control" SubType="Label" Name="WarningLabel1" Position="LeftBelow" LineSpace="0" Text="Essa ferramenta move os arquivos de log de um grupo de armazenamento para um local de backup seguro depois de verificar se todos os bancos de dados estão presentes e corretamente desanexados. Você precisa especificar uma pasta vazia para armazenar esses logs. Esse processo provoca uma 'redefinição' do fluxo de arquivo de log para o grupo de armazenamento."/>
				<Object Type="Control" SubType="Label" Name="WarningLabel2" Position="LeftBelow" LineSpace="1" Text="Você deve redefinir os arquivos de log quando o número de seqüência de log atual estiver próximo ou no limite de 0xFFFFF (1.048.575). Após a redefinição, um novo conjunto de arquivos de log com uma nova assinatura iniciará a contagem a partir de 1."/>
				<Object Type="Control" SubType="Label" Name="WarningLabel3" Position="LeftBelow" LineSpace="1" Text="Você deve preservar todos os arquivos de log em backup até fazer novos backups de cada banco de dados deste grupo de armazenamento. Os arquivos de log em backup serão necessários se você tiver de restaurar de um backup anterior.  Depois de concluir e verificar com êxito um backup de todos os bancos de dados desse grupo de armazenamento, você poderá excluir a pasta de backups e todos os logs contidos nela."/>

				<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="Below" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar" Flags="Enabled=False">
					<Rule Name="fDispatch" Query="not ($szSG='')" NextStep="VerifyResetLogOptionsStep"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="VerifyResetLogOptionsStep" Title="Verificar Opções de Redefinição do Log" Display="Hide">
		<Object Type="Action">
			<Object Type="If" Key1="true()" Display="HideAll">
				<Setting Key1="'1'" SQM="117;Set"/>
			</Object>
			<Object Type="Variable" Name="GetVariables" Key1="Scalar" Display="Hide">
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SGName" Display="Hide"/>
				<Setting Key1="%LogPattern%" Substitution="LogPattern" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][DBMountCount]%" Substitution="DBMountCount" Display="Hide">
					<Rule Name="fDBMounted" Query="not ($.=0)" Title="Bancos de Dados Montados Detectados" Text="Há {1} bancos de dados montados neste grupo de armazenamento ({2}). A ação de redefinição do número de geração de logs não pode ser concluída com um banco de dados montado." P1="$." S2="%SGName%" Error="Error"/>
				</Setting>
				<Setting Key1="%INFO[%SelectedSG%][DBUnMountCount]%" Substitution="DBUnmountCount" Display="Hide">
					<Rule Name="fNoUnmountedDB" Query="not ($fDBMounted) and $.=0" Title="Nenhum Banco de Dados Desmontado" Text="Não há banco de dados desmontado neste grupo de armazenamento ({2}). A ação de redefinição do número de geração de logs não pode ser concluída sem qualquer banco de dados configurado." S2="%SGName%" AlwaysEvaluate="True" Error="Error"/>
				</Setting>
				<Setting Key1="%INFO[%SelectedSG%][SelectableDBs]%" Substitution="DBList" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][RLogPath]%" Substitution="LogPath" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][BASENAME]%" Substitution="LogPrefix" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][LogFileSize]%" Substitution="LogFileSize" Display="Hide"/>
				<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][NewLogPath]%" Substitution="NewLogPath" Display="Hide"/>
				<Setting Key1="%DiskInfo[%INFO[%SelectedSG%][LongestDriveMatch]%][FreeSpace]%" Substitution="FreeSpace" Display="Hide"/>

				<Object Type="If" Name="Analysis" Key1="%DBUnmountCount% &gt; 0 and %DBMountCount%=0">
					<!-- Get LogFile List -->
					<Object Type="File" Key2="%LogPath%" SecurityContext="EXLOGON">
						<Rule Name="fErrorAccessLogDir" Query="../Exception/@Message" Text="Erro ao acessar o caminho do log {0}. A mensagem de erro é: {1}." S0="%LogPath%" P1="../Exception/@Message" Error="Error"/>
						<Setting Key1="Files" Key2="%LogPrefix%%LogPattern%">
							<Rule Name="iFileCount" Query="count($.)">
								<Variable Name="INFO[%SGName%][TotalLogNumber]" Scope="Children"/>
							</Rule>
							<Rule Name="szLogFileList" Query="pack($.)">
								<Variable Name="INFO[%SGName%][LogFileList]" Scope="Children"/>
							</Rule>
							<Rule Name="iTotalLogSize" Query="roundto((($iFileCount * @S1) div (1024*1024*1024)), 3)" S1="%LogFileSize%">
								<Variable Name="INFO[%SGName%][TotalLogSize]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>

					<!-- Check Database files -->
					<Object Type="Variable" Name="GetDBInfo" Key1="Unpack" Key2="%DBList%">
						<Setting Key1="__VALUE" Substitution="DBName"/>
						<Object Type="Variable" Name="Database Information" Key1="Scalar" Display="Hide">
							<Setting Key1="%INFO[%SGName%][%DBName%][RMDBPATH]%" Substitution="MDBPATH" Display="Hide"/>
							<Setting Key1="%INFO[%SGName%][%DBName%][RSLVPATH]%" Substitution="SLVPATH" Display="Hide"/>
							<Object Type="EseInfo" Key2="%MDBPATH%" Key3="EXDRA" Key4="%IsE12%" SecurityContext="EXLOGON">
								<Rule Name="fErrorAccessDatabase" Query="../Exception/@Message" Text="Erro ao acessar o arquivo de banco de dados {0}. A mensagem de erro é: {1}. Resolva este problema primeiro." S0="%MDBPATH%" P1="../Exception/@Message" Error="Error"/>
								<Setting Key1="DBState">
									<Rule Name="fNotCleanShutdown" Query="not ($.=3)" Title="O banco de dados não está no estado 'Desligamento Normal'" Text="O banco de dados ({0}) em {1} não está em um estado de 'Desligamento Normal'. Resolva este problema primeiro." S0="%MDBPATH%" S1="%SGName%" Error="Error"/>
								</Setting>
							</Object>
							<Object Type="EseInfo" Key2="%SLVPATH%" Key3="EXDRA" Key4="%IsE12%" SecurityContext="EXLOGON">
								<Rule Name="fErrorAccessSLV" Query="../Exception/@Message" Text="Erro ao acessar o arquivo de streaming {0}. A mensagem de erro é: {1}. Resolva este problema primeiro." S0="%SLVPATH%" P1="../Exception/@Message" Error="Error"/>
								<Setting Key1="DBState">
									<Rule Name="fNotCleanShutdownSLV" Query="not ($.=3)" Title="O arquivo de streaming não está no estado 'Desligamento Normal'" Text="O arquivo de streaming ({0}) em {1} não está em um estado de 'Desligamento Normal'. Resolva este problema primeiro." S0="%SLVPATH%" S1="%SGName%" Error="Error"/>
								</Setting>
							</Object>
						</Object>
					</Object>

					<!-- LogInfo to get log creation date -->
					<Object Type="LogInfo" Key2="%LogPath%\%LogPrefix%.log" Name="CheckEnnLog" SecurityContext="EXLOGON">
						<Rule Name="fExceptionEnnLog" Query="../Exception/@Message" Title="Erro ao acessar o Último Arquivo de Log" Text="Erro ao acessar {2}.log em {0}. A mensagem de erro é: {1}." S0="%LogPath%" P1="../Exception/@Message" S2="%LogPrefix%" Error="Error"/>
						<Setting Key1="GenerationInDecimal" Substitution="LogNumber">
							<Rule Name="iHighestLogNumber" Query="$.">
								<Variable Name="INFO[%SGName%][HighestLogNumber]" Scope="Children"/>
							</Rule>
						</Setting>
						<Setting Key1="Generation" Substitution="LogNumberInHex">
							<Rule Name="iHighestLogNumberInHex" Query="$.">
								<Variable Name="INFO[%SGName%][HighestLogNumberInHex]" Scope="Children"/>
							</Rule>
						</Setting>
						<Setting Key1="LogSignature.CreateTime" Substitution="LogCreateTime"/>
						<Object Type="WMI" Key1="%EXSERVER%" Key2="root\cimv2" Key3="Win32_OperatingSystem">
							<Rule Name="fExceptionWMI" Query="count(../Exception)" Title="Erro ao acessar tempo remoto" Text="Falha ao recuperar hora local no servidor remoto {2}. A mensagem de exceção é: {1}" P1="../Exception/@Message" S2="%Server%" Error="Error"/>
							<Setting Key1="LocalDateTime">
								<Rule Name="dCurrentTime" Query="date-parse(substring($.,1,14), 'yyyyMMddHHmmss')"/>
								<Rule Name="dTimeSpan" Query="get-days(date-difference($dCurrentTime, @S1))" S1="%LogCreateTime%"/>
								<Rule Name="dEstimateTime" Query="((1048575 - @S1) * $dTimeSpan) div @S1" S1="%LogNumber%"/>
								<Rule Name="dEstimateDays" Query="roundto($dEstimateTime, 0)">
									<Variable Name="INFO[DaysLeft]" Scope="Children"/>
								</Rule>
							</Setting>
						</Object>
					</Object>

					<!-- Check Path space -->
					<Object Type="Command" Key2="cmd" Key3="/C dir /-C &quot;%NewLogPath%&quot;" SecurityContext="EXLOGON">
						<Rule Name="fExceptionSpaceCheck" Query="../Exception/@Message" Title="Erro ao recuperar espaço em disco no novo caminho do log" Text="Erro ao recuperar espaço em disco no novo caminho do log {0}. A mensagem de erro é: {1}." S0="%NewLogPath%" P1="../Exception/@Message" Error="Error"/>
						<Setting Key1="RegexExecute" Key2="((\d+)([^\d\n]+))\Z" Key3="stdout"/>
						<Setting Key1="RegexExtract" Key2="0" Key3="0" Key4="0" Format="(\d+)\s([\S\s]*)----$1" Substitution="DiskSpace">
							<Rule Name="iDiskSpace" Query="roundto((@S1 div (1024*1024*1024)), 3)" S1="%DiskSpace%"/>
							<Rule Name="fNotEnoughSpace" Query="$iTotalLogSize &gt; $iDiskSpace" Title="Espaço em disco insuficiente" Text="O espaço em disco em {1} é {2} o que não é espaço suficiente ({3} necessários) para fazer backup de todos os logs." S1="%NewLogPath%" P2="$iDiskSpace" P3="$iTotalLogSize" Error="Error"/>
						</Setting>
					</Object>

					<!-- Check Empty Path -->
					<Object Type="File" Key2="%NewLogPath%" SecurityContext="EXLOGON">
						<Setting Key1="Files" Key2="*.*" Retrieve="CountOnly">
							<Rule Name="fNotEmpty" Query="$. &gt; 0" Title="O caminho de backup não está vazio" Text="O caminho de backup ({1}) não está vazio." S1="%NewLogPath%" Error="Error"/>
						</Setting>
					</Object>
				</Object>

				<Rule Name="fError" Query="$fErrorAccessLogDir or $fErrorAccessDatabase or $fErrorAccessSLV or $fDBMounted or $fNoUnmountedDB or $fNotCleanShutdown or $fNotCleanShutdownSLV or $fNotEnoughSpace or $fExceptionEnnLog or $fNotEmpty" NextStep="ReportErrorStep" AlwaysEvaluate="True">
					<Rule Name="szPreviousStep" Query="'VerifyResetLogOptionsStep'">
						<Variable Name="INFO[PreviousStepName]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle" Query="string(@Title)" Title="Erro ao verificar as opções de redefinição do log">
						<Variable Name="INFO[Title]" Scope="Children"/>
					</Rule>
				</Rule>
				<Rule Name="fDispatch" Query="not ($fError)" NextStep="ConfirmResetLogActionStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="ConfirmResetLogActionStep" Title="Confirmar Ação de Redefinição do Log" Display="Left">
		<Object Type="Panel">
			<!-- Display Information -->
			<Object Type="Variable" Name="GetVariables" Key1="Scalar" Display="Hide">
				<Setting Key1="%ServerName%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SGName" Display="Hide"/>
				<Setting Key1="%INFO[LogMove][NewLogPath]%" Substitution="NewLogPath" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][HighestLogNumber]%" Substitution="HighestLogNumber" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][HighestLogNumberInHex]%" Substitution="HighestLogNumberInHex" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][TotalLogNumber]%" Substitution="TotalLogNumber" Display="Hide"/>
				<Setting Key1="%INFO[DaysLeft]%" Substitution="DaysLeft" Display="Hide"/>

				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Confirmar a Redefinição das Opções de Geração de Logs"/>
				<Object Type="Control" SubType="Label" Name="ServerName" Position="LeftBelow" LineSpace="2" Text="Nome do servidor Exchange: %Server%"/>
				<Object Type="Control" SubType="Label" Name="SGName" Position="Below" LineSpace="0" Text="Grupo de armazenamento selecionado: %SGName%"/>
				<Object Type="Control" SubType="Label" Name="NewLogPath" Position="Below" LineSpace="0" Text="Caminho do log de backup: %NewLogPath%"/>

				<Object Type="Control" SubType="Label" Name="HighestLogNumber" Position="Below" LineSpace="2" Text="Número de log mais alto: %HighestLogNumber% (%HighestLogNumberInHex%) "/>
				<Object Type="Control" SubType="Label" Name="TotalLogNumber" Position="Below" LineSpace="0" Text="Número total de arquivos de log: %TotalLogNumber%"/>
				<Object Type="Control" SubType="Label" Name="DaysLeft" Position="Below" LineSpace="0" Text="Número estimado de dias antes do limite de seqüência de logs ser atingido: %DaysLeft%"/>
			</Object>

			<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="Below" Text="Anterior"/>
			<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar" NextStep="PerformResetLogActionStep"/>
		</Object>
	</Object>

	<Object Type="Step" Name="PerformResetLogActionStep" Title="Executar Ação de Redefinição do Log" Display="Left">
		<Object Type="Variable" Name="Variable Info" Key1="Scalar" Display="Hide">
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%LocalMachineName%" Substitution="LocalMachineName" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SGName" Display="Hide"/>
			<Setting Key1="%INFO[LogMove][NewLogPath]%" Substitution="NewLogPath" Display="Hide"/>
			<Setting Key1="%INFO[%SelectedSG%][LogPath]%" Substitution="LogPath" Display="Hide"/>
			<Setting Key1="%INFO[%SelectedSG%][RLogPath]%" Substitution="RLogPath" Display="Hide"/>
			<Setting Key1="%INFO[%SelectedSG%][BASENAME]%" Substitution="LogPrefix" Display="Hide"/>
			<Setting Key1="%INFO[%SelectedSG%][LogFileList]%" Substitution="FileList" Display="Hide"/>
			<Object Type="Progress" Title="Redefinir Número de Geração de Logs" Text="Aguarde enquanto esta ferramenta executa o backup dos logs antes de redefinir o número de geração de logs.">
				<!-- Copy Logs -->
				<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a cópia e remoção dos arquivos de log de transações de {1} para {2} para redefinir o número de geração de log no grupo de armazenamento ({3}) no servidor ({4})." S1="%LogPath%" S2="%NewLogPath%" S3="%SGName%" S4="%Server%"/>
				<Object Type="If" Name="CheckMachineName" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
					<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a cópia e remoção dos arquivos de log de transações de {1} para {2} para redefinir o número de geração de log no grupo de armazenamento ({3}) no servidor ({4})." S1="%LogPath%" S2="%NewLogPath%" S3="%SGName%" S4="%Server%"/>
				</Object>
				<Object Type="FileOp" Name="Copy Operation" Key1="Initial">
					<Object Type="Variable" Name="LogFileVariable" Key1="Unpack" Key2="%FileList%">
						<Setting Key1="__VALUE" Substitution="FileName" Format="..*\\(.*)$----$1"/>
						<Setting Key1="__VALUE" Substitution="LogFile"/>

						<Object Type="Cache" Name="AllFileList" Key1="AddValue" Key2="AllFileList" Key3="%LogFile%"/>
						<Object Type="FileOp" Name="CopyLog" Key1="Copy" Key2="%LogFile%" Key3="%NewLogPath%\%FileName%" SecurityContext="EXLOGON">
							<Rule Name="fMoveException" Query="count(../Exception) &gt;0" Title="Erro ao mover arquivo de log" Text="Erro ao mover arquivo de log {0} para {2}. Mensagem de erro: {1}." S0="%LogFile%" P1="../Exception/@Message" S2="%NewLogPath%" Error="Error"/>
							<Setting Key1="__VALUE" Substitution="CopyResult">
								<Rule Name="szMessageOK" Query="if($.='True', string(@Text))" Text="Arquivo de log %LogFile% copiado com êxito para %NewLogPath%. " S1="%LogFile%" S2="%NewLogPath%"/>
							</Setting>
							<Object Type="If" Name="CheckCopyResult" Key1="'%CopyResult%'='True'" Display="Hide">
								<Object Type="Cache" Name="FileList" Key1="AddValue" Key2="FileList" Key3="%LogFile%"/>
							</Object>
							<Object Type="SaveLogNow" Name="ForceLogSave"/>
						</Object>
					</Object>
				</Object>

				<!-- Remove Logs -->
				<Object Type="Cache" Name="AllFileList" Key1="DumpValue" Key2="AllFileList" Key4=",">
					<Setting Key1="__VALUE" Substitution="AllFileList"/>
					<Object Type="Cache" Name="FileList" Key1="DumpValue" Key2="FileList" Key4=",">
						<Setting Key1="__VALUE" Substitution="FileList"/>
						<Object Type="If" Name="Remove Operation" Key1="'%AllFileList%'='%FileList%'">
							<Object Type="Cache" Name="FileList" Key1="Dump" Key2="FileList">
								<Setting Key1="__VALUE" Substitution="LogFileName"/>
								<Object Type="FileOp" Key1="Remove" Key2="%LogFileName%" SecurityContext="EXLOGON">
									<Rule Name="fRemoveException" Query="count(../Exception) &gt;0" Title="Erro ao Remover Arquivo de Log" Text="Erro ao remover arquivo de log ({2}). Mensagem de erro: {1}." P1="../Exception/@Message" S2="%LogFileName%" Error="Error"/>
									<Rule Name="szMessageRemoveOK" Query="if(not ($fRemoveException), string(@Text))" Text="Arquivo de log copiado e removido com êxito (%LogFileName%)." S2="%LogFileName%" Error="Information"/>
								</Object>
							</Object>
						</Object>
					</Object>
				</Object>
				<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a cópia e remoção dos arquivos de log de transações de {1} para {2} para redefinir o número de geração de log no grupo de armazenamento ({3}) no servidor ({4})." S1="%LogPath%" S2="%NewLogPath%" S3="%SGName%" S4="%Server%"/>
				<Object Type="If" Name="CheckMachineName2" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
					<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a cópia e remoção dos arquivos de log de transações de {1} para {2} para redefinir o número de geração de log no grupo de armazenamento ({3}) no servidor ({4})." S1="%LogPath%" S2="%NewLogPath%" S3="%SGName%" S4="%Server%"/>
				</Object>

				<!-- Setup Display Variables -->
				<Object Type="Group" Name="SetVariables">
					<Rule Name="szSGName" Query="string(@S1)" S1="%SGName%">
						<Variable Name="INFO[LogMove][SGName]" Scope="Children"/>
					</Rule>
				</Object>

				<Rule Name="szTitleFail" Query="string(@Title)" Title="Falha ao copiar os arquivos de log para o novo local ou ao remover os logs"/>
				<Rule Name="szTitleOK" Query="string(@Title)" Title="Os arquivos de log foram copiados com êxito para o novo local e os logs foram removidos do caminho original"/>
				<Rule Name="szTitle" Query="if(((count($fMoveException)=0) and (count($fRemoveException)=0)),$szTitleOK,$szTitleFail)" AlwaysEvaluate="True">
					<Variable Name="INFO[LogMove][Result][Title]" Scope="Children"/>
				</Rule>

				<Rule Name="fDispatch" Query="true()" NextStep="DisplayLogMoveStatusStep">
					<Rule Name="szPreviousStep" Query="'PerformResetLogActionStep'">
						<Variable Name="PreviousStepName" Scope="Children"/>
					</Rule>
				</Rule>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectRepairOptionStep" Title="Selecionar Opção de Reparo" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="GetVariables" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[AllSGs]%" Substitution="AllSGs" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecionar Opções de Correção"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor Exchange: %Server%"/>

				<Object Type="Control" SubType="ListBox" Name="ListBox" Position="Below" Width="450" Text="Grupos de armazenamento disponíveis" Default="%AllSGs%">
					<Setting Key1="SelectedSG">
						<Rule Name="szSG" Query="$.">
							<Variable Name="SelectedSG" Scope="Local"/>
						</Rule>
					</Setting>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="Below" Text="Anterior"/>
				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar" NextStep="VerifyRepairOptionStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="VerifyRepairOptionStep" Title="Verificar Opção de Reparo" Display="Left">
		<Object Type="Action">
			<Object Type="Variable" Name="GetVariables" Key1="Scalar" Display="Hide">
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SGName" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][SelectableDBs]%" Substitution="DBList" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][DBUnMountCount]%" Substitution="DBUnmountCount" Display="Hide">
					<Rule Name="szNoDismountedDatabase" Query="$.=0" Title="Nenhum Banco de Dados Desmontado" Text="Nenhum banco de dados desmontado foi detectado no grupo de armazenamento ({1}).  Não é necessário corrigir este grupo de armazenamento." S1="%SGName%" Error="Error"/>
				</Setting>
				<Setting Key1="%DiskInfo[%INFO[%SelectedSG%][LongestDriveMatch]%][FreeSpace]%" Substitution="FreeSpace" Display="Hide"/>
				<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>

				<Object Type="If" Name="CheckDBUnmountCount" Key1="%DBUnmountCount% &gt; 0">
					<!-- GetCurrentTime -->
					<Object Type="WMI" Key1="%EXSERVER%" Key2="root\cimv2" Key3="Win32_OperatingSystem" SecurityContext="EXLOGON">
						<Rule Name="fException" Query="count(../Exception) &gt; 0" Title="Erro ao acessar tempo remoto" Text="Falha ao recuperar hora local no servidor remoto {2}. A mensagem de exceção é: {1}" P1="../Exception/@Message" S2="%Server%" Error="Error"/>
						<Rule Name="dDefaultTime" Query="if($fException, '19000101000000')">
							<Variable Name="INFO[LocalTime]" Scope="Children"/>
						</Rule>
						<Setting Key1="LocalDateTime">
							<Rule Name="dCurrentTime" Query="substring($.,1,14)">
								<Variable Name="INFO[LocalTime]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>

					<!-- Enumerate all DBs -->
					<Object Type="Variable" Name="EnumerateDBs" Key1="Unpack" Key2="%DBList%">
						<Setting Key1="__VALUE" Substitution="DBName" Display="Hide"/>
						<Object Type="Variable" Name="GetDBVariables" Key1="Scalar" Display="Hide">
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][RMDBPATH]%" Substitution="MDBPath" Display="Hide"/>
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][RSLVPATH]%" Substitution="SLVPath" Display="Hide"/>
							<!-- DB Exist -->
							<Object Type="EseInfo" Name="CheckDB" Key2="%MDBPath%" Key3="EXDRA" Key4="%IsE12%" SecurityContext="EXLOGON">
								<Rule Name="fErrorAccessMDB" Query="../Exception/@Message" Text="Erro ao acessar o arquivo de banco de dados {0}. A mensagem de erro é: {1}." S0="%MDBPath%" P1="../Exception/@Message" Error="Error"/>
								<Setting Key1="DBState"/>
							</Object>
							<!-- STM Exist -->
							<Object Type="If" Name="CheckSLVIfNotE12" Key1="%IsE12%=0">
								<Object Type="EseInfo" Name="CheckSLV" Key2="%SLVPath%" Key3="EXDRA" Key4="%IsE12%" SecurityContext="EXLOGON">
									<Rule Name="fErrorAccessSLV" Query="../Exception/@Message" Text="Erro ao acessar o arquivo de streaming {0}. A mensagem de erro é: {1}." S0="%SLVPath%" P1="../Exception/@Message" Error="Error"/>
									<Setting Key1="DBState"/>
								</Object>
							</Object>
							<!-- Check Disk Space -->
							<Object Type="WMI" Key1="%EXSERVER%" Key3="CIM_DataFile" Key4="name='%MDBPATH%'" SecurityContext="EXLOGON">
								<Setting Key1="FileSize">
									<Rule Name="fCheckSpace" Query="($. * 1.1) &gt; @S1" Title="Não há espaço em disco suficiente para corrigir {3}" Text="Não há espaço em disco suficiente na unidade que está hospedando o banco de dados ({3}). O espaço livre atual é {1} e o espaço em disco necessário é {2}." S1="%FreeSpace%" P2="$.*1.1" S3="%DBName%" Error="Error"/>
								</Setting>
							</Object>
							<Rule Name="fInvalidDB" Query="$fErrorAccessMDB or $fErrorAccessSLV or $fCheckSpace" AlwaysEvaluate="True"/>
							<Rule Name="szInvalidDBPack" Query="if($fInvalidDB, string(pack(@S1)))" S1="%DBName%" AlwaysEvaluate="True"/>
							<Rule Name="szValidDBPack" Query="if(not ($fInvalidDB), string(pack(@S1)))" S1="%DBName%" AlwaysEvaluate="True"/>
						</Object>
					</Object>
					<Rule Name="szValidDBList" Query="join('', $szValidDBPack)">
						<Variable Name="INFO[RepairTask][ValidDBList]" Scope="Children"/>
					</Rule>
					<Rule Name="iValidDBCount" Query="count($szValidDBPack)">
						<Variable Name="INFO[RepairTask][ValidDBCount]" Scope="Children"/>
					</Rule>
					<Rule Name="fNoValidDB" Query="$iValidDBCount=0" Title="Nenhum Banco de Dados Disponível para Reparo" Text="Não há banco de dados adequado para a correção." Error="Error"/>
					<Rule Name="szInvalidDBList" Query="join('', $szInvalidDBPack)">
						<Variable Name="INFO[RepairTask][InvalidDBList]" Scope="Children"/>
					</Rule>
					<Rule Name="dInvalidDBCount" Query="count($szInvalidDBPack)">
						<Variable Name="INFO[RepairTask][InvalidDBCount]" Scope="Children"/>
					</Rule>
				</Object>
				<Object Type="Group">
					<Rule Name="fError" Query="@S1=0 or $fNoValidDB" S1="%DBUnmountCount%" NextStep="ReportErrorStep" AlwaysEvaluate="True">
						<Rule Name="szPreviousStep" Query="'VerifyRepairOptionStep'">
							<Variable Name="INFO[PreviousStepName]" Scope="Children"/>
						</Rule>
						<Rule Name="szTitle" Query="string(@Title)" Title="Erro Detectado na Verificação da Opção de Reparo">
							<Variable Name="INFO[Title]" Scope="Children"/>
						</Rule>
					</Rule>
					<Rule Name="fDispatch" Query="not ($fError)" NextStep="SelectDBsForRepairStep"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectDBsForRepairStep" Title="Selecionar Bancos de Dados para Correção" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="GetVariables" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SGName" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][DBMountCount]%" Substitution="DBMountCount" Display="Hide"/>
				<Setting Key1="%INFO[%SelectedSG%][MOUNTED]%" Substitution="DBMountList" Display="Hide"/>
				<Setting Key1="%INFO[RepairTask][ValidDBCount]%" Substitution="ValidDBCount" Display="Hide"/>
				<Setting Key1="%INFO[RepairTask][ValidDBList]%" Substitution="ValidDBList" Display="Hide"/>
				<Setting Key1="%INFO[RepairTask][InvalidDBCount]%" Substitution="InvalidDBCount" Display="Hide"/>
				<Setting Key1="%INFO[RepairTask][InvalidDBList]%" Substitution="InvalidDBList" Display="Hide"/>

				<Object Type="Control" SubType="Title" Name="Tile" Position="Top" Text="Selecionar Bancos de Dados para Correção"/>
				<Object Type="Control" SubType="Label" Name="Label" Position="Below" LineSpace="2" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="Label" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento selecionado: %SGName%"/>

				<!-- Display Available Databases -->
				<Object Type="If" Name="DisplayAvailableDBs" Key1="%ValidDBCount% &gt; 0">
					<Object Type="Control" SubType="Label" Name="AvailableDBList" Position="Below" LineSpace="2" Text="Selecione um ou mais bancos de dados na lista a seguir para executar a tarefa de correção:"/>
					<Object Type="Control" SubType="Label" Name="InvalidSelection" Position="Below" LineSpace="0" Text="Selecione pelo menos um dos bancos de dados abaixo." ForeColor="Red" Flags="Visible=False"/>
					<Object Type="Control" SubType="ListView" Name="AvailableDBListView" Position="Below" LineSpace="0" Height="150" Width="600" Title="Nome do Banco de Dados Disponível" SelectionMode="True" Default="%ValidDBList%">
						<Setting Key1="Pack">
							<Rule Name="szPack" Query="$.">
								<Variable Name="INFO[RepairTask][DBList]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>
				</Object>
				<!-- Display Mounted Databases -->
				<Object Type="If" Name="DisplayMountedDBs" Key1="%DBMountCount% &gt; 0">
					<Object Type="Control" SubType="Label" Name="MountDBList" Position="Below" LineSpace="2" Text="Lista de bancos de dados montados:"/>
					<Object Type="Control" SubType="ListBox" Name="MountDBListBox" Position="Below" Width="300" Default="%DBMountList%" SelectionMode="None"/>
				</Object>

				<!-- Display Error Databases -->
				<Object Type="If" Name="DisplayInvalidDBs" Key1="%InvalidDBCount% &gt; 0">
					<Object Type="Control" SubType="Label" Name="InvalidDBList" Position="Below" LineSpace="2" Text="A seguir está uma lista de bancos de dados que não podem ser selecionados para correção. Isso pode ser causado devido a arquivos de banco de dados ausentes ou espaço insuficiente em disco para processá-los. "/>
					<Object Type="Control" SubType="Label" Name="InvalidDBList1" Position="Below" LineSpace="0" Text="Lista de bancos de dados inválidos:"/>
					<Object Type="Control" SubType="ListBox" Name="InvalidDBListBox" Position="Below" Width="300" Default="%InvalidDBList%" SelectionMode="None"/>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="Below" Text="Anterior"/>
				<Object Type="If" Name="DisplayNextLink" Key1="%ValidDBCount% &gt; 0">
					<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar" NextStep="RepairWarningStep">
						<Event Type="Click">
							<Action Type="Proceed" Query="control-value('AvailableDBListView') !=''"/>
							<Action Type="Visible" ControlName="InvalidSelection" Query="control-value('AvailableDBListView') =''"/>
						</Event>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="RepairWarningStep" Title="Aviso de Correção" Display="Left">
		<Object Type="Variable" Name="GetVariable" Key1="Scalar" Display="Hide">
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%SelectedSG%" Substitution="SelectedSG" Display="Hide"/>
			<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>
			<Setting Key1="IsE12" Substitution="IsE12" Display="Hide"/>
			<Setting Key1="%EventDisplayStepID%" Substitution="EventDisplayStepID" Display="Hide"/>

			<Object Type="Panel">
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" ForeColor="Red" Text="Aviso de Tarefa de Correção"/>
				<Object Type="Control" SubType="Label" Name="Label1" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="0" Text="Grupo de armazenamento selecionado: %SelectedSG%"/>

				<Object Type="Control" SubType="Label" Name="Label3" Position="Below" Text="Essa tarefa de correção só deve ser usada em um banco de dados danificado ou corrompido quando for impossível restaurar esse banco de dados do backup. Se você continuar, essa tarefa executará uma correção permanente (eseutil /p), uma desfragmentação (eseutil /d) e, finalmente, até 2 passos de um utilitário de correção de estrutura de banco de dados lógicos (isinteg -fix -test alltests) em uma tentativa de tornar o banco de dados novamente utilizável."/>
				<Object Type="Control" SubType="Label" Name="Label4" Position="Below" FontStyle="Bold" Text="O que você precisa saber antes de continuar:"/>
				<Object Type="Control" SubType="Label" Name="Label5" Position="Below" Text="99,9% das vezes, o dano ao banco de dados é causado por problemas com o subsistema da unidade de disco rígido subjacente. Os problemas de disco rígido devem ser investigados e corrigidos antes da execução deste procedimento. Procure tempos limites ou falhas de leitura/gravação anteriores do ESE (Mecanismo de Armazenamento Extensível) no log de eventos do Aplicativo, bem como eventos de leitura/gravação ou acessibilidade no log de eventos do sistema."/>
				<Object Type="Control" SubType="Label" Name="Label6" Position="Below" Text="Esse conjunto de tarefas de correção nem sempre obtém êxito."/>
				<Object Type="Control" SubType="Label" Name="Label7" Position="Below" Text="Recomendamos que um backup de banco(s) de dados em nível de arquivo e todos os arquivos de log para esse grupo de armazenamento sejam feitos antes da execução deste conjunto de tarefas de correção."/>
				<Object Type="Control" SubType="Label" Name="Label8" Position="Below" Text="Você precisará de espaço livre na unidade de banco de dados igual a 110% do tamanho do arquivo de banco de dados para que esse processo seja concluído com êxito. Se essa tarefa estiver sendo executada em vários bancos de dados, você precisará de 110% do maior arquivo de banco de dados.)"/>
				<Object Type="Control" SubType="Label" Name="Label9" Position="Below" Text="Se a correção obtiver êxito, todos os backups anteriores serão incompatíveis com os backups feitos após o processo de correção. Portanto, recomendamos que você faça um backup online completo e verificado de todos os bancos de dados nesse grupo de armazenamentos imediatamente após este procedimento."/>
				<Object Type="Control" SubType="label" Name="Label10" Position="Below" Text="Todos os backups futuros online devem ser agendados normalmente e um procedimento típico de restauração do Exchange pode ser usado, caso seja necessário."/>

				<Object Type="Control" SubType="Link" Name="Previous" Position="Below" LineSpace="2" Text="Anterior"/>

				<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Continue a Executar a Tarefa de Correção" NextStep="PerformRepairStep">
					<Event Type="Click">
						<Action Type="PopupProceed" Query="true()" Title="Você tem certeza de que está pronto para continuar essa tarefa de correção nos bancos de dados selecionados?"/>
					</Event>
				</Object>

				<Object Type="If" Name="IsNotSymptom" Key1="'%IsSymptom%'='0'">
					<Object Type="Control" SubType="Link" Name="TaskCenter" Position="LeftBelow" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
				</Object>
				<Object Type="If" Name="IsSymptom" Key1="'%IsSymptom%'='1'">
					<Object Type="Control" SubType="Link" Name="Goto" Position="LeftBelow" Text="Voltar à página de exibição de eventos" NextStep="%EventDisplayStepID%"/>
				</Object>

			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="PerformRepairStep" Title="Executar Ação de Reparo" Display="Left">
		<Object Type="If" Key1="true()" Display="HideAll">
			<Setting Key1="'1'" SQM="100;Set"/>
		</Object>
		<Object Type="Variable" Name="GetVariables" Key1="Scalar" Display="Hide">
			<Setting Key1="%SelectedSG%" Substitution="SGName" Display="Hide"/>
			<Setting Key1="%INFO[RepairTask][DBList]%" Substitution="DBList" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%LocalMachineName%" Substitution="LocalMachineName" Display="Hide"/>
			<Setting Key1="%IsE12%" Substitution="IsE12" Display="Hide"/>
			<Setting Key1="%INFO[%SelectedSG%][LogPath]%" Substitution="LogPath" Display="Hide"/>
			<Setting Key1="%INFO[%SelectedSG%][SysPath]%" Substitution="SystemPath" Display="Hide"/>
			<Setting Key1="%ExchBinDir%" Substitution="ExePath" Display="Hide"/>
			<Setting Key1="%INFO[LocalTime]%" Substitution="LocalTime" Display="Hide"/>
			<Object Type="Progress" SubType="NoCancel" Title="Executar Ações Relacionadas e de Reparo" Text="Aguarde enquanto essa ferramenta executa as ações relacionadas e de correção. Isso pode demorar um pouco para ser concluído." Status="Porcentagem Concluída: ">
				<!-- Load ESE.DLL -->
				<Object Type="LoadLibrary" Name="Load" Key1="%EXSERVER%" Key2="LoadLibrary" Key3="%ExePath%" Key4="ese.dll" SecurityContext="EXLOGON">
					<Rule Name="fLoadLibraryException" Query="count(../Exception) &gt; 0" Title="Erro ao carregar biblioteca" Text="Falha ao carregar a biblioteca (ese.dll) do caminho {2} em {3}. Mensagem de exceção é: {1}" P1="../Exception/@Message" S2="%ExePath%" S3="%EXSERVER%" Error="Error"/>
					<Object Type="Variable" Name="DBList" Key1="Unpack" Key2="%DBList%">
						<Setting Key1="__VALUE" Substitution="DBName" Display="Hide"/>
						<Object Type="Variable" Key1="Scalar" Class="%DBName%" GroupingClass="True">
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][MDBBASE]%" Substitution="Base" Display="Hide"/>
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][MDBPATH]%" Substitution="SourceDB" Display="Hide"/>
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][RMDBPATH]%" Substitution="MDBPath" Display="Hide"/>
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][SLVPATH]%" Substitution="SourceSLV" Display="Hide"/>
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][GUID]%" Substitution="DBGUID" Display="Hide"/>
							<Setting Key1="%INFO[%SelectedSG%][%DBName%][IsPublic]%" Substitution="IsPF" Display="Hide"/>

							<Object Type="If" Key1="true()" Name="ConstructParameters">
								<Setting Key1="concat('Base=', '%Base%')" Substitution="BaseString" Display="Hide"/>
								<Setting Key1="concat(',SourceDB=', '%SourceDB%')" Substitution="SourceDBString" Display="Hide"/>
								<Setting Key1="concat(',LogPath=', '%LogPath%')" Substitution="LogPathString" Display="Hide"/>
								<Setting Key1="concat(',SystemPath=', '%SystemPath%')" Substitution="SysPathString" Display="Hide"/>
								<Setting Key1="concat(',TempDB=','%LogPath%\Temp%LocalTime%.edb')" Substitution="TempDBString" Display="Hide"/>
								<Setting Key1="if(%IsE12%=1, '', concat(',SourceSLV=', '%SourceSLV%'))" Substitution="SourceSLVString" Display="Hide"/>
								<Setting Key1="if (%IsE12%=1, '', concat(',TempSLV=','%LogPath%\Temp%LocalTime%.stm'))" Substitution="TempSLVString" Display="Hide"/>
								<Setting Key1="if(%IsE12%=1, ',8KPage=1', '')" Substitution="8KPage" Display="Hide"/>
								<Setting Key1="if(%IsPF%=1, 'PFAllTests', 'MDBAllTests')" Substitution="TestCase" Display="Hide"/>

								<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a ação de reparo de banco de dados no grupo de armazenamento ({1}) no servidor ({2})." S1="%SGName%" S2="%Server%"/>
								<Object Type="If" Name="CheckMachineName" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
									<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1000" Text="Iniciar a ação de reparo de banco de dados no grupo de armazenamento ({1}) no servidor ({2})." S1="%SGName%" S2="%Server%"/>
								</Object>

								<!-- Repair -->
								<Object Type="ESE" Name="Repair" Key1="%EXSERVER%" Key2="Repair" Key3="%ExePath%" Key4="%BaseString%%SourceDBString%%SourceSLVString%%LogPathString%%SysPathString%%8KPage%" Text="Aguarde enquanto essa ferramenta executa uma ação de correção no banco de dados (%DBName%), no grupo de armazenamento (%SGName%). Isso pode demorar um pouco para ser concluído." WaitForCancelCompletion="True">
									<Rule Name="fRepairException" Query="count(../Exception) &gt; 0" Title="Erro ao executar a ação de correção ({3}) no banco de dados ({2})" Text="Erro ao executar uma ação de correção ({3}) no banco de dados ({2}); a mensagem de erro é: {1}" P1="../Exception/@Message" S2="%DBName%" S3="Eseutil.exe /p" Error="Error"/>
									<Setting Key1="Status" Substitution="RepairStatus">
										<Rule Name="szRepairSuccess" Query="$.=0" Title="O banco de dados ({2}) concluiu a ação de reparo do banco de dados com êxito" Text="{1} concluído com êxito no banco de dados ({2})." S1="Eseutil.exe /p" S2="%DBName%" Error="Information"/>
										<Rule Name="szRepairSuccessWithPositiveStatusCode" Query="$. &gt; 0" Title="O banco de dados ({2}) concluiu a ação de reparo do banco de dados com código de status positivo" Text="{3} concluiu uma ação no banco de dados ({2}) com o código de status igual a {1}." P1="$." S2="%DBName%" S3="Eseutil.exe /p" Error="Information"/>
										<Rule Name="szRepairFail" Query="$. &lt; 0" Title="Falha do banco de dados ({2}) na ação de reparo do banco de dados." Text="{3} falhou no banco de dados ({2}) com o código de status igual a {1}." P1="$." S2="%DBName%" S3="Eseutil.exe /p" Error="Error"/>
									</Setting>
									<!-- Need to check database consistency -->
									<Object Type="EseInfo" Key2="%MDBPath%" Key3="EXDRA" Key4="%IsE12%" SecurityContext="EXLOGON">
										<Rule Name="fDBStateException" Query="count(../Exception) &gt; 0" Title="Status de recuperação de erro no banco de dados ({2}) " Text="Erro ao recuperar status por meio de ({3}) no banco de dados ({2}); a mensagem de erro é: {1}" P1="../Exception/@Message" S2="%DBName%" S3="%MDBPath%" Error="Error"/>
										<Setting Key1="DBState" Substitution="DBState">
											<Rule Name="szNotCleanDB" Query="not ($.=3)" Title="O banco de dados ({2}) não fica no estado de 'Desligamento Normal' depois que a ação de reparo do banco de dados é concluída." Text="O banco de dados ({2}) não fica no estado de 'Desligamento Normal' depois que a ação de reparo do banco de dados é concluída. O código de status é {3}." S2="%DBName%" S3="%DBState%" Error="Error"/>
										</Setting>
										<Object Type="If" Name="RepairStatus" Key1="%RepairStatus% &gt;=0 and %DBState%=3">
											<!-- Defragment -->
											<Object Type="ESE" Name="Defragment" Key1="%EXSERVER%" Key2="Defragment" Key3="%ExePath%" Key4="%BaseString%%SourceDBString%%LogPathString%%SysPathString%%TempDBString%%SourceSLVString%%TempSLVString%%8KPage%" Text="Aguarde enquanto essa ferramenta executa uma desfragmentação no banco de dados (%DBName%), no grupo de armazenamento (%SGName%). Isso pode demorar um pouco para ser concluído.">
												<Rule Name="fDefragmentException" Query="count(../Exception) &gt; 0" Title="Erro ao desfragmentar o banco de dados" Text="Erro ao desfragmentar ({3}) o banco de dados ({2}). Mensagem de erro: {1}" P1="../Exception/@Message" S2="%DBName%" S3="Eseutil.exe /d" Error="Error"/>
												<Setting Key1="Status" Substitution="DefragStatus">
													<Rule Name="szErrorInDefragment" Query="not ($.=0)" Title="O banco de dados ({2}) concluiu a ação de desfragmentação com o código de status diferente de zero" Text="O banco de dados ({2}) concluiu a ação de desfragmentação ({4}) com o código de status igual a {3}" S2="%DBName%" S3="%DefragStatus%" S4="Eseutil.exe /d" Error="Error"/>
													<Rule Name="szDefragmentSuccess" Query="$.=0" Title="O banco de dados ({2}) concluiu a ação de desfragmentação com êxito" Text="O banco de dados ({2}) concluiu a ação de desfragmentação com êxito ({4})." S2="%DBName%" S4="Eseutil.exe /d" Error="Information"/>
												</Setting>
												<Object Type="If" Name="DefragStatus" Key1="%DefragStatus%=0">
													<!-- Isinteg -->
													<Object Type="Isinteg" Name="IsintegVerification1" Key1="%EXSERVER%" Key2="%DBGUID%" Key3="%TestCase%" Text="Aguarde enquanto essa ferramenta executa uma ação Isinteg no banco de dados (%DBName%), no grupo de armazenamento (%SGName%). Isso pode demorar um pouco para ser concluído.">
														<Rule Name="fIsintegException" Query="count(../Exception) &gt; 0" Title="Erro ao executar Isinteg pela primeira vez" Text="Erro ao executar Isinteg pela primeira vez ({3} {4} {5}) no banco de dados ({2}). Mensagem de erro: {1}" P1="../Exception/@Message" S2="%DBName%" S3="Isinteg -s" S4="%EXSERVER%" S5="-fix -test alltests" Error="Error"/>
														<Setting Key1="Status" Substitution="IsintegStatus1">
															<Rule Name="szFailIsinteg1" Query="not ($.=0)" Title="O banco de dados ({2}) concluiu a primeira execução de Isinteg com código de status diferente de zero" Text="O banco de dados ({2}) concluiu a primeira execução de Isinteg ({3} {4} {5}) com código de status igual a {1}." S1="%IsintegStatus1%" S2="%DBName%" S3="Isinteg -s" S4="%EXSERVER%" S5="-fix -test alltests" Error="Error"/>
														</Setting>
														<Setting Key1="Error" Substitution="ErrorNumber">
															<Rule Name="szInteg1SuccessWithError" Query="%IsintegStatus1%=0 and not ($.=0)" Title="O banco de dados ({2}) concluiu a primeira execução de Isinteg com erros" Text="O banco de dados ({2}) concluiu a primeira execução de Isinteg ({3} {4} {5}) com {1} erros." P1="$." S2="%DBName%" S3="Isinteg -s" S4="%EXSERVER%" S5="-fix -test alltests" Error="Error"/>
															<Rule Name="szInteg1Success" Query="%IsintegStatus1%=0 and ($.=0)" Title="O banco de dados ({2}) concluiu a primeira execução de Isinteg sem erro" Text="O banco de dados ({2}) concluiu a primeira execução de Isinteg ({3} {4} {5}) sem erros." S2="%DBName%" S3="Isinteg -s" S4="%EXSERVER%" S5="-fix -test alltests" Error="Information"/>
														</Setting>
														<Object Type="If" Name="Isinteg1" Key1="%IsintegStatus1%=0 and %ErrorNumber% &gt; 0">
															<!-- As PSS logic, we are going to try again in this case -->
															<Object Type="Isinteg" Name="IsintegVerification1" Key1="%EXSERVER%" Key2="%DBGUID%" Key3="%TestCase%" Text="Aguarde enquanto essa ferramenta executa uma ação de Isinteg pela segunda vez no banco de dados (%DBName%), no grupo de armazenamento (%SGName%). Isso pode demorar um pouco para ser concluído.">
																<Rule Name="fIsintegException2" Query="count(../Exception) &gt; 0" Title="Erro ao executar Isinteg pela segunda vez" Text="Erro ao executar Isinteg pela segunda vez ({3} {4} {5}) no banco de dados ({2}). Mensagem de erro: {1}." P1="../Exception/@Message" S2="%DBName%" S3="Isinteg -s" S4="%EXSERVER%" S5="-fix -test alltests" Error="Error"/>
																<Setting Key1="Status" Substitution="IsintegStatus2">
																	<Rule Name="szFailIsinteg2" Query="not ($.=0)" Title="O banco de dados ({2}) concluiu a segunda execução de Isinteg com código de status diferente de zero" Text="O banco de dados ({2}) concluiu a segunda execução de Isinteg ({3} {4} {5}) com código de status diferente de zero. O código de status é {1}." S1="%IsintegStatus2%" S2="%DBName%" S3="Isinteg -s" S4="%EXSERVER%" S5="-fix -test alltests" Error="Error"/>
																</Setting>
																<Setting Key1="ErrorNumber" Substitution="ErrorNumber2">
																	<Rule Name="szInteg2SuccessWithError" Query="%IsintegStatus2%=0 and not ($.=0)" Title="O banco de dados ({2}) concluiu a segunda execução de Isinteg ({3} {4} {5}) com alguns erros" Text="O banco de dados ({2}) concluiu a segunda execução de Isinteg com {1} erros." P1="$." S2="%DBName%" S3="Isinteg -s" S4="%EXSERVER%" S5="-fix -test alltests" Error="Error"/>
																	<Rule Name="szInteg2Success" Query="%IsintegStatus2%=0 and ($.=0)" Title="O banco de dados ({2}) concluiu a segunda execução de Isinteg sem erros" Text="O banco de dados ({2}) concluiu a segunda execução de Isinteg ({3} {4} {5}) sem erros." S2="%DBName%" S3="Isinteg -s" S4="%EXSERVER%" S5="-fix -test alltests" Error="Information"/>
																</Setting>
															</Object>
														</Object>
													</Object>
												</Object>
											</Object>
										</Object>
									</Object>
								</Object>
								<Object Type="EventReport" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a ação de reparo de banco de dados no grupo de armazenamento ({1}) no servidor ({2})." S1="%SGName%" S2="%Server%"/>
								<Object Type="If" Name="CheckMachineName2" Key1="not ('%EXSERVER%'='%LocalMachineName%')">
									<Object Type="EventReport" Key1="%EXSERVER%" Key2="ExTRA" Key3="Application" Key5="1001" Text="Finalizar a ação de reparo de banco de dados no grupo de armazenamento ({1}) no servidor ({2})." S1="%SGName%" S2="%Server%"/>
								</Object>
							</Object>
						</Object>
					</Object>
					<Object Type="LoadLibrary" Name="Unload" Key1="%EXSERVER%" Key2="FreeLibrary" Key3="%ExePath%" Key4="ese.dll"/>
				</Object>
			</Object>
			<Rule Name="fDispatch" Query="true()" NextStep="ReportResultStep">
				<Rule Name="szPreviousStep" Query="'PerformRepairStep'">
					<Variable Name="PreviousStepName" Scope="Children"/>
				</Rule>
				<Rule Name="szTitle" Query="string(@Title)" Title="Relatar Resultados da Correção">
					<Variable Name="INFO[Title]" Scope="Children"/>
				</Rule>
				<Rule Name="szLabel" Query="string(@Title)" Title="Se o regime de correção foi concluído com êxito, é EXTREMAMENTE importante que um backup online completo e bem verificado de todos os bancos de dados desse grupo de armazenamentos seja executado imediatamente.">
					<Variable Name="INFO[Label]" Scope="Children"/>
				</Rule>
			</Rule>
		</Object>
	</Object>

	<Object Type="Step" Name="ReportResultStep" Title="Resultados do Relatório" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="VariableInfo" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%SelectedSG%" Substitution="SGName" Display="Hide"/>
				<Setting Key1="%INFO[Title]%" Substitution="Title" Display="Hide"/>
				<Setting Key1="%INFO[Label]%" Substitution="Label" Display="Hide"/>
				<Setting Key1="%PreviousStepName%" Substitution="PreviousStepName" Display="Hide"/>
				<Setting Key1="%EventDisplayStepID%" Substitution="EventDisplayStepID" Display="Hide"/>
				<Setting Key1="%IsSymptom%" Substitution="IsSymptom" Display="Hide"/>

				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="%Title%"/>
				<Object Type="Control" SubType="Label" Name="Label1" Position="Below" LineSpace="2" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="0" Text="Nome do grupo de armazenamento: %SGName%"/>

				<Object Type="If" Key1="not ('%Label%'='')">
					<Object Type="Control" SubType="Label" Name="Label3" Position="Below" LineSpace="2" FontStyle="Bold" Text="%Label%"/>
				</Object>

				<Object Type="Control" SubType="Reports" Name="InterimReports" Position="LeftBelow" Width="FullWidth" Height="350">
					<Report Title="Resultados" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error]" ArrangeByText="ReportData"/>
				</Object>

				<Object Type="If" Name="IsNotSymptom" Key1="'%IsSymptom%'='0'">
					<Object Type="Control" SubType="Link" Name="TaskCenter" Position="Below" LineSpace="2" Text="Voltar ao centro de tarefas" NextStep="GetDBInfoFromADStep"/>
				</Object>
				<Object Type="If" Name="IsNotSymptom" Key1="'%IsSymptom%'='1'">
					<Object Type="Control" SubType="Link" Name="Goto" Position="Below" LineSpace="2" Text="Voltar à página de exibição de eventos" NextStep="%EventDisplayStepID%"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SetDatabaseFlagStep" Display="Hide">
		<Object Type="Action">
			<Object Type="Variable" Name="GetVariable" Key1="Scalar">
				<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="SGName" Display="Hide"/>
				<Setting Key1="%INFO[%INFO[RSG][Name]%][AllMDBs]%" Substitution="RSGDBs" Display="Hide"/>
				<Object Type="Variable" Name="enumerateDBs" Key1="Unpack" Key2="%RSGDBs%">
					<Setting Key1="__VALUE" Substitution="DBName"/>
					<Object Type="MonadCommand" Key1="get-mailboxdatabase -Identity &quot;%EXSERVER%\%SGName%\%DBName%&quot; -DomainController %DC%">
						<Setting Key1="AllowFileRestore">
							<Rule Name="szDBHasFlag" Query="if($.='True', pack(@S1))" S1="%DBName%"/>
							<Rule Name="szDBNeedFlag" Query="if($.='False', pack(@S1))" S1="%DBName%"/>
						</Setting>
					</Object>
				</Object>
				<Rule Name="dNeedCount" Query="count($szDBNeedFlag)" AlwaysEvaluate="True">
					<Variable Name="INFO[SetDBFlag][NeedCount]" Scope="Children"/>
				</Rule>
				<Rule Name="szNeedDBs" Query="join('', $szDBNeedFlag)" AlwaysEvaluate="True">
					<Variable Name="INFO[SetDBFlag][NeedDBs]" Scope="Children"/>
				</Rule>
				<Rule Name="dUnneedCount" Query="count($szDBHasFlag)" AlwaysEvaluate="True">
					<Variable Name="INFO[SetDBFlag][UnneedCount]" Scope="Children"/>
				</Rule>
				<Rule Name="szUnneedDBs" Query="join('', $szDBHasFlag)" AlwaysEvaluate="True">
					<Variable Name="INFO[SetDBFlag][UnneedDBs]" Scope="Children"/>
				</Rule>
			</Object>
			<Rule Name="fDispatch" Query="true()" NextStep="SelectDBForRestoreFlagStep"/>
		</Object>
	</Object>

	<Object Type="Step" Name="SelectDBForRestoreFlagStep" Title="Selecione os Bancos de Dados para Configurar o Sinalizador de Restauração" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Key1="Scalar" Display="Hide">
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[RSG][Name]%" Substitution="SelectedSG" Display="Hide"/>
				<Setting Key1="%INFO[SetDBFlag][UnneedCount]%" Substitution="UnneedCount" Display="Hide"/>
				<Setting Key1="%INFO[SetDBFlag][UnneedDBs]%" Substitution="UnneedDBs" Display="Hide"/>
				<Setting Key1="%INFO[SetDBFlag][NeedCount]%" Substitution="NeedCount" Display="Hide"/>
				<Setting Key1="%INFO[SetDBFlag][NeedDBs]%" Substitution="NeedDBs" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecione Um ou Mais Bancos de Dados na Lista a Seguir"/>
				<Object Type="Control" SubType="Label" Name="Server" Position="Below" Text="Nome do servidor: %Server%"/>
				<Object Type="Control" SubType="Label" Name="SG" Position="Below" LineSpace="0" Text="Grupo de armazenamento selecionado: %SelectedSG%"/>

				<Object Type="If" Name="NeedDBs" Key1="%NeedCount% &gt;0">
					<Object Type="Control" SubType="Label" Name="NeedDBsLabel" Position="Below" LineSpace="2" Text="Esses bancos de dados podem ser selecionados e configurados por meio do sinalizador 'O banco de dados pode ser substituído por restauração'."/>
					<Object Type="Control" SubType="Label" Name="InvalidSelection" Position="Below" LineSpace="0" ForeColor="Red" Text="Selecione pelo menos um dos bancos de dados abaixo." Flags="Visible=False"/>
					<Object Type="Control" SubType="ListView" Name="NeedDBsListView" Position="Below" LineSpace="0" Text="Lista de Bancos de Dados" Height="150" Width="500" Title="Lista de Bancos de Dados" SelectionMode="True" Flags="DefaultSelection=True" Default="%NeedDBs%">
						<Setting Key1="Pack">
							<Rule Name="fDBEmpty" Query="$.=''" Text="Não há bancos de dados selecionados para configurar o sinalizador 'O banco de dados pode ser substituído por restauração'."/>
							<Rule Name="szDB" Query="if(not ($.=''),string($.), '')">
								<Variable Name="SelectedDB" Scope="Local"/>
							</Rule>
						</Setting>
					</Object>
				</Object>

				<Object Type="If" Name="NoNeedDBCase" Key1="%NeedCount%=0">
					<Object Type="Control" SubType="Label" Name="NoNeedDBLabel" Position="LeftBelow" LineSpace="2" Text="Todos os bancos de dados têm o sinalizador 'O banco de dados pode ser substituído por restauração' definido no grupo de armazenamento de recuperação."/>
				</Object>

				<Object Type="If" Name="UnneedDBs" Key1="%UnneedCount% &gt;0">
					<Object Type="Control" SubType="Label" Name="UnneedDBsLabel" Position="Below" LineSpace="2" Text="O sinalizador 'O banco de dados pode ser substituído por restauração' já está configurado nesses bancos de dados."/>
					<Object Type="Control" SubType="ListBox" Name="UnneedDBsListBox" Position="Below" Height="150" Width="500" Default="%UnneedDBs%" SelectionMode="None"/>
				</Object>

				<Object Type="Control" SubType="Link" Name="Previous" Position="LeftBelow" LineSpace="2" Text="Anterior"/>
				<Object Type="If" Name="HaveNeedDBLabel" Key1="%NeedCount% &gt; 0">
					<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Avançar" NextStep="SetRestoreFlagStep">
						<Event Type="Click">
							<Action Type="Proceed" Query="control-value('NeedDBsListView') !=''"/>
							<Action Type="Visible" ControlName="InvalidSelection" Query="control-value('NeedDBsListView') =''"/>
						</Event>
					</Object>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="SetRestoreFlagStep" Title="Configure o Sinalizador Banco de Dados Substituído Por Restauração" Display="Left">
		<Object Type="If" Key1="true()" Display="HideAll">
			<Setting Key1="'1'" SQM="118;Set"/>
		</Object>
		<Object Type="Variable" Key1="Scalar">
			<Setting Key1="%DC%" Substitution="DC" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%INFO[RSG][Name]%" Substitution="RSGName" Display="Hide"/>
			<Setting Key1="%SelectedDB%" Substitution="DBList" Display="Hide"/>
			<Object Type="Progress" SubType="NoCancel" Title="Configure o Sinalizador 'O Banco de Dados Pode Ser Substituído por Restauração'" Text="Aguarde enquanto essa ferramenta configura o sinalizador 'O banco de dados pode ser substituído por restauração' no servidor %Server%.">
				<Object Type="Variable" Key1="Unpack" Key2="%DBList%">
					<Setting Key1="__VALUE" Substitution="DBName" Display="Hide"/>
					<Object Type="MonadCommand" Key1="set-mailboxdatabase -Identity &quot;%EXSERVER%\%RSGName%\%DBName%&quot; -DomainController %DC% -AllowFileRestore:$True">
						<Rule Name="szSetRDBFlagException" Query="../Exception/@Message" Title="Erro encontrado ao tentar configurar o sinalizador 'O banco de dados pode ser substituído por restauração'" Text="Erro encontrado ao tentar configurar o sinalizador 'O banco de dados pode ser substituído por restauração' no banco de dados ({1}) do grupo de armazenamento ({2}). A mensagem de erro é: {0}." P0="../Exception/@Message" S1="%DBName%" S2="%RSGName%" Error="Error"/>
						<Rule Name="szSetRDBFlag" Query="not ($szSetRDBFlagException)" Title="Configuração do sinalizador 'O banco de dados pode ser substituído por restauração' com êxito" Text="Configuração com êxito do sinalizador 'O banco de dados pode ser substituído por restauração' no banco de dados ({1}) do grupo de armazenamento ({2})." S1="%DBName%" S2="%RSGName%" Error="Information"/>
					</Object>
				</Object>
				<Rule Name="fDispatch" Query="true()" NextStep="ReportResultStep">
					<Rule Name="szPreviousStep" Query="'SetRestoreFlagStep'">
						<Variable Name="PreviousStepName" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle" Query="string(@Title)" Title="Relatório de Resultados de Configuração do Sinalizador ' O banco de dados pode ser substituído por restauração'">
						<Variable Name="INFO[Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szLabel" Query="''">
						<Variable Name="INFO[Label]" Scope="Children"/>
					</Rule>
					<Rule Name="szSelectedSG" Query="@S1" S1="%RSGName%">
						<Variable Name="SelectedSG" Scope="Children"/>
					</Rule>
				</Rule>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="SymptomStep" Title="Detecção de Sintoma com Base em Recuperação de Desastre" Display="Hide">
		<Object Type="If" Key1="true()" Display="HideAll">
			<Setting Key1="'1'" SQM="119;Set"/>
		</Object>
		<Object Type="Action">
			<Rule Name="szSymptomCase" Query="'1'" NextStep="ReadRegistryConfigurationStep">
				<Variable Name="IsSymptom" Scope="Global"/>
			</Rule>
		</Object>
	</Object>

	<Object Type="Step" Name="GatherEventLogDetectOptionStep" Title="Coletar Opção de Detecção de Logs de Eventos" Display="Left">
		<Object Type="Panel">
			<Object Type="Variable" Name="Select Minutes" Key1="Scalar">
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Selecionar Opção de Detecção de Log de Eventos"/>
				<Object Type="Control" SubType="Label" Name="Label" Position="Below" Text="Nome do servidor Exchange: %Server%"/>

				<Object Type="Control" SubType="Label" Name="TimeLabel" Position="Below" LineSpace="2" Text="Insira o número de minutos de eventos de banco de dados que você deseja detectar (0 indica todos): "/>
				<Object Type="Control" SubType="NumericInput" Name="InputMinutes" Position="NextTo" Width="75" MinValue="0" MaxValue="2147483647" Default="120">
					<Setting Key1="Value" Substitution="InputMinutes">
						<Rule Name="dMinutes" Query="$.">
							<Variable Name="INFO[FilterMinutes]" Scope="Children"/>
						</Rule>
						<Rule Name="szLocalTime" Query="'01/01/2000 00:00:00'">
							<Variable Name="INFO[LocalTime]" Scope="Children"/>
						</Rule>
					</Setting>
				</Object>
			</Object>
			<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="LeftBelow" Text="Anterior"/>
			<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Recuperar logs de eventos" NextStep="CalculateTimeFilterForDetectStep"/>
		</Object>
	</Object>

	<Object Type="Step" Name="CalculateTimeFilterForDetectStep" Title="Calcular Filtro de Tempo" Display="Hide">
		<Object Type="Action">
			<Object Type="Variable" Name="Get Variable" Key1="Scalar">
				<Setting Key1="%INFO[FilterMinutes]%" Substitution="InputMinutes" Display="Hide"/>
				<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%INFO[AllSGs]%" Substitution="AllSGs" Display="Hide"/>
				<Object Type="If" Name="WMICall" Key1="not (%InputMinutes%=0)">
					<Object Type="WMI" Name="RetrieveRemoteTime" Key1="%EXSERVER%" Key2="root\cimv2" Key3="Win32_OperatingSystem" SecurityContext="EXLOGON">
						<Rule Name="fException" Query="count(../Exception)" Title="Erro de consulta do WMI (Instrumentação de Gerenciamento do Windows)" Text="Erro ao recuperar a hora local no servidor remoto ({2}); a mensagem de erro é: {1}" P1="../Exception/@Message" S2="%Server%" Error="Error"/>
						<Setting Key1="LocalDateTime" Format="CIMDateTime">
							<Rule Name="dNewTime" Query="$.">
								<Variable Name="INFO[LocalTime]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>
				</Object>
				<Object Type="Variable" Name="EnumerateAllSGs" Key1="Unpack" Key2="%AllSGs%" Display="Hide">
					<Setting Key1="__VALUE" Substitution="SGName"/>
					<Object Type="Variable" Name="GetVariable" Key1="Scalar">
						<Setting Key1="%INFO[%SGName%][LogPathWithPrefix]%" Substitution="LogSubPath">
							<Rule Name="szSGName" Query="upper-case(@S1)" S1="%SGName%">
								<Variable Name="INFO[%LogSubPath%]" Scope="Children"/>
							</Rule>
						</Setting>
					</Object>
				</Object>
				<Rule Name="fDispatch" Query="true()" NextStep="RetrieveEventLogStep"/>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="RetrieveEventLogStep" Title="Recuperar Log de Eventos" Display="Left">
		<Object Type="Variable" Name="Get Variables" Key1="Scalar">
			<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%INFO[LocalTime]%" Substitution="LocalTime" Display="Hide"/>
			<Setting Key1="%INFO[FilterMinutes]%" Substitution="InputMinutes" Display="Hide"/>
			<Object Type="Progress" Title="Análise do log de aplicativos e do sistema de eventos conhecidos" Text="Aguarde enquanto essa ferramenta examina as entradas de logs de eventos para o intervalo de tempo especificado. Isso pode demorar um pouco para ser concluído." SecurityContext="EXLOGON">
				<Object Type="If" Name="CalculateTimeFilter" Key1="true()">
					<Setting Key1="date-add('%LocalTime%', get-timespan(-(%InputMinutes% * 60)))" Substitution="TimeFilter" SubstitutionFormat="(\d{2})/(\d{2})/(\d{4}).(\d{2}):(\d{2}):(\d{2})----$3$1$2$4$5$6.000000+000" Display="Hide"/>
					<Object Type="WMI" Key1="%EXSERVER%" Key2="root\cimv2" Key3="Win32_NTLogEvent" Key4="((SourceName='ESE' AND (EventCode='428' OR EventCode='454' OR EventCode='455')) OR (SourceName='MSExchangeIS' AND (EventCode='1003' OR EventCode='1088' OR EventCode='5000' OR EventCode='9518' OR EventCode='9519'))) AND LogFile = 'Application' AND TimeWritten &gt; '%TimeFilter%' " Sort="TimeWritten DESC" TrackProgress="TrackProgress">
						<Rule Name="szException" Query="../Exception" Title="Exceção na consulta de WMI (Instrumentação de Gerenciamento do Windows)" Text="Falha ao recuperar os logs de eventos de banco de dados no %Server%; a mensagem de exceção é: {1}" P1="../Exception/@Message" Error="Error"/>
						<Setting Key1="EventCode" Substitution="EventCode"/>
						<Setting Key1="InsertionStrings">
							<Rule Name="szEvent428" Query="if((@S1=428), pack(replace(upper-case($.[3]),':','')), '')" S1="%EventCode%"/>
							<Rule Name="szEvent454" Query="if((@S1=454) and ($.[4] = '-515'), pack(replace(upper-case($.[3]),':','')), '')" S1="%EventCode%"/>
							<Rule Name="szEvent455" Query="if((@S1=455) and ($.[5]='-1811 (0xfffff8ed)' or $.[5]='-1811'), pack(get-sublogpath(upper-case($.[4]))), '')" S1="%EventCode%"/>
							<Rule Name="szEvent482" Query="if ((@S1=482) and ($.[7] = '-1808 (0xfffff8f0)'), pack(replace(upper-case($.[3]),':','')), '')" S1="%EventCode%"/>
							<Rule Name="szEvent1003" Query="if(@S1=1003, pack(slice(upper-case($.[1]),'\',0)), '')" S1="%EventCode%"/>
							<Rule Name="szEvent1088" Query="if(@S1=1088, pack(slice(upper-case($.[3]),'\',0)), '')" S1="%EventCode%"/>
							<Rule Name="szEvent1159" Query="if((@S1=1159) and ($.[3]='0xfffffdf9'), pack(slice(upper-case($.[2]),'\',0)),'')" S1="%EventCode%"/>
							<Rule Name="szEvent5000" Query="if((@S1=5000) and ($.[1]='0x80040154' or $.[2]='0x80040154'), 1)" S1="%EventCode%"/>
							<Rule Name="szEvent5000a" Query="if((@S1=5000) and ($.[1]='0x3f5' or $.[2]='0x3f5'), 1)" S1="%EventCode%"/>
							<Rule Name="szEvent5000b" Query="if((@S1=5000) and ($.[1]='0x8004010f' or $.[2]='0x8004010f'), 1)" S1="%EventCode%"/>
							<Rule Name="szEvent5000c" Query="if((@S1=5000) and ($.[1]='0xc004038a' or $.[2]='0xc004038a'), 1)" S1="%EventCode%"/>
							<Rule Name="szEvent5000d" Query="if((@S1=5000) and ($.[1]='0x80004005' or $.[2]='0x80004005'), 1)" S1="%EventCode%"/>
							<Rule Name="szEvent9518a" Query="if((@S1=9518) and ($.[1]='0xfffffd9a'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9518b" Query="if((@S1=9518) and ($.[1]='0xfffffddc'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9518c" Query="if((@S1=9518) and ($.[1]='0xfffff764'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9518d" Query="if((@S1=9518) and ($.[1]='0xfffffea8'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9518e" Query="if((@S1=9518) and ($.[1]='0xfffff745'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9518f" Query="if((@S1=9518) and ($.[1]='0xfffffc01'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9518g" Query="if((@S1=9518) and ($.[1]='0xfffff743'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9518h" Query="if((@S1=9518) and ($.[1]='0xfffffb40'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9518i" Query="if((@S1=9518) and ($.[1]='0xfffffbc4'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9518j" Query="if((@S1=9518) and ($.[1]='0xfffffbf8'), pack(substring-after(upper-case($.[2]),'/CN=INFORMATIONSTORE/CN=')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9519a" Query="if((@S1=9519) and ($.[1]='0x3f3'), pack(slice(upper-case($.[2]),'\',0)), '')" S1="%EventCode%"/>
							<Rule Name="szEvent9519b" Query="if((@S1=9519) and ($.[1]='0xfffffa84'), pack(slice(upper-case($.[2]),'\',0)), '')" S1="%EventCode%"/>
							<Rule Name="szEvent9519c" Query="if((@S1=9519) and ($.[1]='0xfffffe07'), pack(slice(upper-case($.[2]),'\',0)), '')" S1="%EventCode%"/>
							<Rule Name="szEvent9519d" Query="if((@S1=9519) and ($.[1]='0xfffffb3a'), pack(slice(upper-case($.[2]),'\',0)), '')" S1="%EventCode%"/>
							<Rule Name="szEvent9519e" Query="if((@S1=9519) and ($.[1]='0xfffffbda'), pack(slice(upper-case($.[2]),'\',0)), '')" S1="%EventCode%"/>
							<Rule Name="szEvent9519f" Query="if((@S1=9519) and ($.[1]='0xfffff05b'), pack(slice(upper-case($.[2]),'\',0)), '')" S1="%EventCode%"/>
							<Rule Name="szEvent9519g" Query="if((@S1=9519) and ($.[1]='0x972'), pack(slice(upper-case($.[2]),'\',0)), '')" S1="%EventCode%"/>

							<!-- Gather necessary data -->
							<Rule Name="szEvent455Data" Query="if((@S1=455) and ($.[5]='-1811 (0xfffff8ed)' or $.[5]='-1811'), pack(upper-case($.[4])), '')" S1="%EventCode%"/>
							<Rule Name="szEvent482Data" Query="if ((@S1=482) and ($.[7] = '-1808 (0xfffff8f0)'), pack(concat(replace(upper-case($.[3]),':',''),'|',upper-case($.[4]))), '')" S1="%EventCode%"/>
							<Rule Name="szEvent1003Data" Query="if(@S1=1003, pack(replace(upper-case($.[1]),'\\','|')), '')" S1="%EventCode%"/>
							<Rule Name="szEvent1088Data" Query="if(@S1=1088, pack(replace(upper-case($.[3]),'\\','|')), '')" S1="%EventCode%"/>
							<Rule Name="szEvent1159Data" Query="if((@S1=1159) and ($.[3]='0xfffffdf9'), pack(replace(upper-case($.[2]),'\\','|')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9519aData" Query="if((@S1=9519) and ($.[1]='0x3f3'), pack(replace(upper-case($.[2]),'\\','|')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9519bData" Query="if((@S1=9519) and ($.[1]='0xfffffa84'), pack(replace(upper-case($.[2]),'\\','|')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9519cData" Query="if((@S1=9519) and ($.[1]='0xfffffe07'), pack(replace(upper-case($.[2]),'\\','|')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9519dData" Query="if((@S1=9519) and ($.[1]='0xfffffb3a'), pack(replace(upper-case($.[2]),'\\','|')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9519eData" Query="if((@S1=9519) and ($.[1]='0xfffffbda'), pack(replace(upper-case($.[2]),'\\','|')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9519fData" Query="if((@S1=9519) and ($.[1]='0xfffff05b'), pack(replace(upper-case($.[2]),'\\','|')),'')" S1="%EventCode%"/>
							<Rule Name="szEvent9519gData" Query="if((@S1=9519) and ($.[1]='0x972'), pack(replace(upper-case($.[2]),'\\','|')),'')" S1="%EventCode%"/>
						</Setting>
					</Object>

					<Rule Name="szAll454" Query="join-unique('', $szEvent454)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][1][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll454Data" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][1][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle454" Query="string(@Title)" Title="Arquivo de log de transações necessário ausente">
						<Variable Name="INFO[EventLog][1][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText454" Query="string(@Title)" Title="Um ou mais eventos 454 do ESE com erro -515 (0xfffffdfd) foram detectados no log de Aplicativos. Isso indica que um arquivo de log que não é o log de transações atual (e##.log) está ausente nesse grupo de armazenamento.">
						<Variable Name="INFO[EventLog][1][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID454" Query="'8d25487a-8f58-4b63-a3a6-a390d714a990'">
						<Variable Name="INFO[EventLog][1][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask454" Query="1">
						<Variable Name="INFO[EventLog][1][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll455" Query="join-unique('', $szEvent455)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][2][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll455Data" Query="join-unique('', $szEvent455Data)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][2][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle455" Query="string(@Title)" Title="Arquivo de log de transações atual (E##.log) ausente">
						<Variable Name="INFO[EventLog][2][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText455" Query="string(@Title)" Title="Um ou mais eventos 455 do ESE com erro -1811 (0xfffff8ed) foram detectados no log de Aplicativos. Isso indica que o arquivo de log de transações atual desse grupo de armazenamento está ausente, inacessível ou tem uma assinatura incompatível. Arquivo de log de transações atual: {1}. Observação: O log de transações atual pode ser nomeado exatamente como a ferramenta identificou ou no formato e##.log.">
						<Variable Name="INFO[EventLog][2][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID455" Query="'003577df-ed0d-432d-a54d-b7df8d724e42'">
						<Variable Name="INFO[EventLog][2][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask455" Query="1">
						<Variable Name="INFO[EventLog][2][Task]" Scope="Children"/>
					</Rule>

					<!-- 482 is disabled right now. It needs new article in future. -->
					<Rule Name="szAll482" Query="join-unique('', $szEvent482)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][3][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll482Data" Query="join-unique('', $szEvent482Data)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][3][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle482" Query="string(@Title)" Title="Não É Possível Gravar em Disco">
						<Variable Name="INFO[EventLog][3][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText482" Query="string(@Title)" Title="Um ou mais eventos 482 do ESE e o erro -1808 (0xfffff8f0) foram detectados no log de Aplicativos. Isso indica que o serviço de Armazenamento de Informações do Microsoft Exchange não pode gravar no disco rígido. Nome do arquivo: {1}.">
						<Variable Name="INFO[EventLog][3][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID482" Query="'0672fc6e-8a82-43d1-95e4-6fc93cf6cfc4'">
						<Variable Name="INFO[EventLog][3][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask482" Query="0">
						<Variable Name="INFO[EventLog][3][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll1088" Query="join-unique('', $szEvent1088)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][4][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll1088Data" Query="join-unique('', $szEvent1088Data)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][4][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle1088" Query="string(@Title)" Title="Nome distinto herdado incompatível (legacyExchangeDN)">
						<Variable Name="INFO[EventLog][4][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText1088" Query="string(@Title)" Title="Um ou mais eventos 1088 do MSExchangeIS foram detectados no log de Aplicativos. Isso indica que um ou mais bancos de dados nesse grupo de armazenamento têm nomes distintos herdados incompatíveis. Nome(s) do banco de dados: {1}.">
						<Variable Name="INFO[EventLog][4][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID1088" Query="'b6330015-3393-4369-8d2a-664a274a3659'">
						<Variable Name="INFO[EventLog][4][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask1088" Query="0">
						<Variable Name="INFO[EventLog][4][Task]" Scope="Children"/>
					</Rule>

					<!-- 1159 is dead. Will be removed in near future -->
					<Rule Name="szAll1159" Query="join-unique('', $szEvent1159)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][5][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll1159Data" Query="join-unique('', $szEvent1159Data)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][5][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle1159" Query="string(@Title)" Title="Número Máximo de Geração de Logs Atingido">
						<Variable Name="INFO[EventLog][5][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText1159" Query="string(@Title)" Title="Um ou mais eventos 1159 do MSExchangeIS com erro 0xfffffdf9 foram detectados no log de Aplicativos. Isso indica que o grupo de armazenamento está sem números de geração de log enquanto está executando alterações de banco de dados. Nomes dos bancos de dados: {1}.">
						<Variable Name="INFO[EventLog][5][Text]" Scope="Children"/>
					</Rule>
					<!-- Temp GUID -->
					<Rule Name="szGUID1159" Query="''">
						<Variable Name="INFO[EventLog][5][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask1159" Query="1">
						<Variable Name="INFO[EventLog][5][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll5000" Query="join-unique('', $szEvent5000)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][6][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll5000Data" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][6][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle5000" Query="string(@Title)" Title="Extensões de Serviço SMTP Ausentes ou Danificadas">
						<Variable Name="INFO[EventLog][6][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText5000" Query="string(@Title)" Title="Um ou mais eventos 5000 do MSExchangeIS com código de erro 0x80040154 foram detectados no log de Aplicativos. Isso indica que as extensões de serviço SMTP estão ausentes ou danificadas.">
						<Variable Name="INFO[EventLog][6][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID5000" Query="'bfe95294-01a8-4634-afb9-194ff2bd5883'">
						<Variable Name="INFO[EventLog][6][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask5000" Query="0">
						<Variable Name="INFO[EventLog][6][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll5000a" Query="join-unique('', $szEvent5000a)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][7][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll5000aData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][7][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle5000a" Query="string(@Title)" Title="Conta de Serviço Inválida Configurada para o Serviço de Armazenamento de Informações">
						<Variable Name="INFO[EventLog][7][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText5000a" Query="string(@Title)" Title="Um ou mais eventos 5000 do MSExchangeIS com código de erro 0x3f5 foram detectados no log de Aplicativos. Isso indica que o serviço de Armazenamento de Informações do Microsoft Exchange está iniciando com uma conta diferente daquela do Sistema Local ou que o controlador de domínio, o domínio ou a Diretiva de Segurança de Máquina Local não inclui a conta do Sistema Local na diretiva Gerar auditorias de segurança.">
						<Variable Name="INFO[EventLog][7][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID5000a" Query="'c833d0c7-88ad-425e-908a-8e9247cdcaa2'">
						<Variable Name="INFO[EventLog][7][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask5000a" Query="0">
						<Variable Name="INFO[EventLog][7][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll5000b" Query="join-unique('', $szEvent5000b)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][8][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll5000bData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][8][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle5000b" Query="string(@Title)" Title="Não é Possível Montar o Banco de Dados Devido a Permissões de Acesso Incorretas ou Caracteres Inválidos no Nome da Organização">
						<Variable Name="INFO[EventLog][8][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText5000b" Query="string(@Title)" Title="Um ou mais eventos 5000 do MSExchangeIS com código de erro 0x8004010f foram detectados no log de Aplicativos. Isso indica um ou mais dos seguintes problemas possíveis: permissões incorretas ou caracteres inválidos no nome da organização.">
						<Variable Name="INFO[EventLog][8][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID5000b" Query="'0108473a-17af-40f2-9b0c-a0983c8c36c8'">
						<Variable Name="INFO[EventLog][8][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask5000b" Query="0">
						<Variable Name="INFO[EventLog][8][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll5000c" Query="join-unique('', $szEvent5000c)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][9][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll5000cData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][9][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle5000c" Query="string(@Title)" Title="Não é possível montar o banco de dados devido a permissões incorretas ou grupo de roteamento excluído">
						<Variable Name="INFO[EventLog][9][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText5000c" Query="string(@Title)" Title="Um ou mais eventos 5000 do MSExchangeIS com código de erro 0xc004038a foram detectados no log de Aplicativos. Isso indica um ou mais dos seguintes problemas possíveis: permissões incorretas ou grupo de roteamento excluído.">
						<Variable Name="INFO[EventLog][9][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID5000c" Query="'9f359db2-7292-4d5d-9865-2f0ae2613938'">
						<Variable Name="INFO[EventLog][9][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask5000c" Query="0">
						<Variable Name="INFO[EventLog][9][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518a" Query="join-unique('', $szEvent9518a)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][10][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518aData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][10][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518a" Query="string(@Title)" Title="Arquivo de Ponto de Verificação Ausente com Mais de 1.008 Arquivos de Logs de Transações Precisando ser Repetidos">
						<Variable Name="INFO[EventLog][10][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518a" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com código de erro0xfffffd9a foram detectados no log de Aplicativos. Isso indica que o arquivo de ponto de verificação para esse grupo de armazenamento está ausente e há mais de 1.008 arquivos de log de transações que precisam ser repetidos.">
						<Variable Name="INFO[EventLog][10][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518a" Query="'fe421706-8609-4b97-a290-94e277e89e4d'">
						<Variable Name="INFO[EventLog][10][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518a" Query="0">
						<Variable Name="INFO[EventLog][10][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518b" Query="join-unique('', $szEvent9518b)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][11][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518bData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][11][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518b" Query="string(@Title)" Title="Foi Excedido o Número Máximo de Arquivos de Log de Transações Disponíveis para Este Grupo de Armazenamento">
						<Variable Name="INFO[EventLog][11][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518b" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com código de erro 0xfffffddc foram detectados no log de Aplicativos. Isso indica que o número máximo de arquivos de log de transações disponíveis para esse grupo de armazenamento foi excedido.">
						<Variable Name="INFO[EventLog][11][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518b" Query="'408f0275-7baf-40bb-a7ef-d419e04a8551'">
						<Variable Name="INFO[EventLog][11][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518b" Query="1">
						<Variable Name="INFO[EventLog][11][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9519a" Query="join-unique('', $szEvent9519a)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][12][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9519aData" Query="join-unique('', $szEvent9519aData)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][12][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9519a" Query="string(@Title)" Title="'Esse Banco de Dados Pode Ser Substituído por uma Restauração' não está Marcada">
						<Variable Name="INFO[EventLog][12][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9519a" Query="string(@Title)" Title="Um ou mais eventos 9519 do MSExchangeIS com código de erro 0x3f3 foram detectados no log de Aplicativos. Isso indica que uma restauração foi executada no banco de dados sem que a caixa de seleção 'Esse banco de dados pode ser substituído por uma restauração' estivesse marcada. Nome(s) do banco de dados: {1}.">
						<Variable Name="INFO[EventLog][12][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9519a" Query="'e4cdbb61-3a54-4b57-8bcc-4a008c3aa021'">
						<Variable Name="INFO[EventLog][12][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9519a" Query="0">
						<Variable Name="INFO[EventLog][12][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9519b" Query="join-unique('', $szEvent9519b)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][13][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9519bData" Query="join-unique('', $szEvent9519bData)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][13][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9519b" Query="string(@Title)" Title="Índices de Banco de Dados Ausentes ou Danificados Após Atualização de Service Pack">
						<Variable Name="INFO[EventLog][13][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9519b" Query="string(@Title)" Title="Um ou mais eventos 9519 do MSExchangeIS com código de erro 0xfffffa84 foram detectados no log de Aplicativos. Isso indica que os índices dos bancos de dados estão ausentes ou danificados. Nome(s) do banco de dados: {1}.">
						<Variable Name="INFO[EventLog][13][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9519b" Query="'6fbb3f0a-7dc0-49f8-b7d1-ea6b747c3648'">
						<Variable Name="INFO[EventLog][13][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9519b" Query="0">
						<Variable Name="INFO[EventLog][13][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9519c" Query="join-unique('', $szEvent9519c)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][14][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9519cData" Query="join-unique('', $szEvent9519cData)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][14][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9519c" Query="string(@Title)" Title="Não É Possível Montar Banco de Dados Devido à Execução do Backup">
						<Variable Name="INFO[EventLog][14][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9519c" Query="string(@Title)" Title="Um ou mais eventos 9519 do MSExchangeIS com código de erro 0xfffffe07 foram detectados no log de Aplicativos. Isso indica que um backup está sendo executado no momento em outro banco de dados desse grupo de armazenamento, impedindo que o banco de dados seja montado. Nomes dos bancos de dados: {1}.">
						<Variable Name="INFO[EventLog][14][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9519c" Query="'8fb7ddd5-dda6-4179-9f59-3c8a716c1e8d'">
						<Variable Name="INFO[EventLog][14][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9519c" Query="0">
						<Variable Name="INFO[EventLog][14][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9519d" Query="join-unique('', $szEvent9519d)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][15][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9519dData" Query="join-unique('', $szEvent9519dData)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][15][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9519d" Query="string(@Title)" Title="Vários Bancos de Dados Detectados com a Mesma Assinatura">
						<Variable Name="INFO[EventLog][15][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9519d" Query="string(@Title)" Title="Um ou mais eventos 9519 do MSExchangeIS com código de erro 0xfffffb3a foram detectados no log de Aplicativos. Isso indica que vários bancos de dados com a mesma assinatura estão em uso. Nome(s) do banco de dados: {1}.">
						<Variable Name="INFO[EventLog][15][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9519d" Query="'e360de07-ad07-4f78-ae74-084a6b93ae66'">
						<Variable Name="INFO[EventLog][15][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9519d" Query="0">
						<Variable Name="INFO[EventLog][15][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9519e" Query="join-unique('', $szEvent9519e)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][16][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9519eData" Query="join-unique('', $szEvent9519eData)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][16][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9519e" Query="string(@Title)" Title="O código de idioma do conjunto de caracteres de duplo byte padrão foi desinstalado">
						<Variable Name="INFO[EventLog][16][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9519e" Query="string(@Title)" Title="Um ou mais eventos 9519 do MSExchangeIS com código de erro 0xfffffbda foram detectados no log de Aplicativos. Isso indica que um código de idioma do Conjunto de Caracteres de Duplo Byte foi instalado como o código de idioma padrão do sistema e, em seguida, desinstalado. Nomes dos bancos de dados: {1}.">
						<Variable Name="INFO[EventLog][16][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9519e" Query="'2bff0eed-fb7a-41fc-9783-ee999671c416'">
						<Variable Name="INFO[EventLog][16][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9519e" Query="0">
						<Variable Name="INFO[EventLog][16][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9519f" Query="join-unique('', $szEvent9519f)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][17][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9519fData" Query="join-unique('', $szEvent9519fData)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][17][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9519f" Query="string(@Title)" Title="Compactação de Sistema de Arquivo Detectada na Unidade que Contém o Banco de Dados ou Arquivos de Log de Transações do Exchange">
						<Variable Name="INFO[EventLog][17][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9519f" Query="string(@Title)" Title="Um ou mais eventos 9519 do MSExchangeIS com código de erro 0xfffff05b foram detectados no log de Aplicativos. Isso indica que o banco de dados ou os arquivos de log de transações do Exchange estão localizados em uma unidade que tem a compactação de sistema de arquivo habilitada. Nome(s) do banco de dados: {1}.">
						<Variable Name="INFO[EventLog][17][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9519f" Query="'b4f0a8ca-dbd8-4492-90e4-59c788360966'">
						<Variable Name="INFO[EventLog][17][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9519f" Query="0">
						<Variable Name="INFO[EventLog][17][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll1003" Query="join-unique('', $szEvent1003)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][18][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll1003Data" Query="join-unique('', $szEvent1003Data)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][18][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle1003" Query="string(@Title)" Title="Espaço Livre Insuficiente Restante na Unidade de Banco de Dados do Exchange">
						<Variable Name="INFO[EventLog][18][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText1003" Query="string(@Title)" Title="Um ou mais eventos 1003 do MSExchangeIS foram detectados no log de Aplicativos. Isso indica que o banco de dados ou os bancos de dados afetados estão sem espaço em disco. Há várias estratégias que você pode usar para se recuperar desse problema. Nome(s) do banco de dados: {1}.">
						<Variable Name="INFO[EventLog][18][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID1003" Query="'b3cabdc3-da45-4547-8554-caa9fb96a147'">
						<Variable Name="INFO[EventLog][18][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask1003" Query="0">
						<Variable Name="INFO[EventLog][18][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518c" Query="join-unique('', $szEvent9518c)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][19][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518cData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][19][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518c" Query="string(@Title)" Title="Arquivo de Streaming Excluído ou Permissões Necessárias Ausentes">
						<Variable Name="INFO[EventLog][19][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518c" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com código de erro 0xfffff764 foram detectados no log de Aplicativos. Isso indica que o arquivo de streaming (.STM) para o banco de dados afetado está ausente ou inacessível.">
						<Variable Name="INFO[EventLog][19][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518c" Query="'d6bb53c5-9f34-4f10-9dd0-c41d772cfb98'">
						<Variable Name="INFO[EventLog][19][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518c" Query="0">
						<Variable Name="INFO[EventLog][19][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518d" Query="join-unique('', $szEvent9518d)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][20][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518dData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][20][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518d" Query="string(@Title)" Title="Tempo do Banco de Dados na Página Atual É Maior que o Carimbo de Hora do Banco de Dados Global">
						<Variable Name="INFO[EventLog][20][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518d" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com código de erro 0xfffffea8 foram detectados no log de Aplicativos. Isso indica que o carimbo de hora do banco de dados na página atual do banco de dados do Exchange é maior que o carimbo de hora de banco de dados global.">
						<Variable Name="INFO[EventLog][20][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518d" Query="'eb78d0c9-015b-493d-b38f-81834b9ba18e'">
						<Variable Name="INFO[EventLog][20][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518d" Query="0">
						<Variable Name="INFO[EventLog][20][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518e" Query="join-unique('', $szEvent9518e)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][21][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518eData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][21][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518e" Query="string(@Title)" Title="Não É Possível Criar ou Acessar Arquivos TMP">
						<Variable Name="INFO[EventLog][21][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518e" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com código de erro 0xfffff745 foram detectados no log de Aplicativos. Isso indica que o serviço de Armazenamento de Informações do Microsoft Exchange não pode criar nem acessar arquivos no diretório TMP.">
						<Variable Name="INFO[EventLog][21][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518e" Query="'e3c3313e-ec2c-4f96-9dd6-21d8c62d6693'">
						<Variable Name="INFO[EventLog][21][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518e" Query="0">
						<Variable Name="INFO[EventLog][21][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll428" Query="join-unique('', $szEvent428)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][22][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll428Data" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][22][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle428" Query="string(@Title)" Title="Unidade de Log Cheia">
						<Variable Name="INFO[EventLog][22][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText428" Query="string(@Title)" Title="Um ou mais eventos 428 do ESE foram detectados no log de Aplicativos. Isso indica que não há espaço suficiente na unidade de disco que contém os arquivos de log de transações.">
						<Variable Name="INFO[EventLog][22][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID428" Query="'0672fc6e-8a82-43d1-95e4-6fc93cf6cfc4'">
						<Variable Name="INFO[EventLog][22][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask428" Query="1">
						<Variable Name="INFO[EventLog][22][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll5000d" Query="join-unique('', $szEvent5000d)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][23][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll5000dData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][23][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle5000d" Query="string(@Title)" Title="Não é possível montar o banco de dados devido à conta de serviço incorreta, à ausência de permissões SeSecurityPrivilege ou à associação de grupos incorreta">
						<Variable Name="INFO[EventLog][23][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText5000d" Query="string(@Title)" Title="Um ou mais eventos 5000 do MSExchangeIS com código de erro 0x80004005 foram detectados no log de Aplicativos. Isso indica um ou mais dos seguintes problemas possíveis: conta de serviço incorreta, permissões SeSecurityPrivilege ausentes ou associação de grupos incorreta.">
						<Variable Name="INFO[EventLog][23][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID5000d" Query="'f8a519c1-d4d7-44f3-ba94-97688bc6ff11'">
						<Variable Name="INFO[EventLog][23][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask5000d" Query="0">
						<Variable Name="INFO[EventLog][23][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518f" Query="join-unique('', $szEvent9518f)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][24][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518fData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][24][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518f" Query="string(@Title)" Title="Banco de dados ou caminho do arquivo de log de transações incorreto">
						<Variable Name="INFO[EventLog][24][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518f" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com código de erro 0xfffffc01 foram detectados no log de Aplicativos. Isso indica que um caminho incorreto foi definido para o banco de dados ou os arquivos de log de transações do Exchange.">
						<Variable Name="INFO[EventLog][24][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518f" Query="'65a436c5-dc4a-487a-a7b1-75f98ed48fa8'">
						<Variable Name="INFO[EventLog][24][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518f" Query="0">
						<Variable Name="INFO[EventLog][24][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518g" Query="join-unique('', $szEvent9518g)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][25][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518gData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][25][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518g" Query="string(@Title)" Title="Excesso de arquivos temporários">
						<Variable Name="INFO[EventLog][25][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518g" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com erro 0xfffff743 foram detectados no log de Aplicativos. Isso indica que o namespace de arquivo temporário desse servidor se esgotou ou que não há espaço disponível para gravação na pasta temporária.">
						<Variable Name="INFO[EventLog][25][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518g" Query="'04c21cb8-4e03-4c7e-a8fa-4fe5c05d1a3b'">
						<Variable Name="INFO[EventLog][25][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518g" Query="0">
						<Variable Name="INFO[EventLog][25][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518h" Query="join-unique('', $szEvent9518h)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][26][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518hData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][26][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518h" Query="string(@Title)" Title="Arquivo de banco de dados ausente">
						<Variable Name="INFO[EventLog][26][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518h" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com erro 0xfffffb40 foram detectados no log de Aplicativos. Isso indica que um ou mais arquivos de banco de dados para o Grupo de Armazenamento estão faltando.">
						<Variable Name="INFO[EventLog][26][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518h" Query="'9e7ffde7-ad9d-4a0b-ace1-b37801298671'">
						<Variable Name="INFO[EventLog][26][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518h" Query="0">
						<Variable Name="INFO[EventLog][26][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518i" Query="join-unique('', $szEvent9518i)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][27][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518iData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][27][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518i" Query="string(@Title)" Title="O caminho do arquivo de log já está em uso">
						<Variable Name="INFO[EventLog][27][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518i" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com erro 0xfffffbc4 foram detectados no log de Aplicativos. Isso indica que um ou mais Grupos de Armazenamento estão usando o mesmo Caminho do log ou do sistema.">
						<Variable Name="INFO[EventLog][27][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518i" Query="'9699885a-8de5-4226-9ee8-43ea76beb9d3'">
						<Variable Name="INFO[EventLog][27][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518i" Query="0">
						<Variable Name="INFO[EventLog][27][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9518j" Query="join-unique('', $szEvent9518j)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][28][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9518jData" Query="string('')" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][28][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9518j" Query="string(@Title)" Title="Permissões necessárias ausentes na unidade ou na pasta de banco de dados do Exchange">
						<Variable Name="INFO[EventLog][28][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9518j" Query="string(@Title)" Title="Um ou mais eventos 9518 do MSExchangeIS com erro 0xfffffbf8 foram detectados no log de Aplicativos. Isso indica que você não tem as permissões adequadas atribuídas à pasta ou à unidade que contém os bancos de dados do Exchange.">
						<Variable Name="INFO[EventLog][28][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9518j" Query="'7401af3f-1b57-4faa-ac8b-e8e62809191e'">
						<Variable Name="INFO[EventLog][28][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9518j" Query="0">
						<Variable Name="INFO[EventLog][28][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="szAll9519g" Query="join-unique('', $szEvent9519g)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][29][Events]" Scope="Children"/>
					</Rule>
					<Rule Name="szAll9519gData" Query="join-unique('', $szEvent9519gData)" AlwaysEvaluate="True">
						<Variable Name="INFO[EventLog][29][EventData]" Scope="Children"/>
					</Rule>
					<Rule Name="szTitle9519g" Query="string(@Title)" Title="Contêiner de pastas públicas excluído ou sem os atributos necessários">
						<Variable Name="INFO[EventLog][29][Title]" Scope="Children"/>
					</Rule>
					<Rule Name="szText9519g" Query="string(@Title)" Title="Um ou mais eventos 9519 do MSExchangeIS com erro 0x972 foram detectados no log de Aplicativos. Isso indica que o contêiner Pastas Públicas foi excluído do Active Directory ou que o Armazenamento Público afetado não está configurado para usá-lo.">
						<Variable Name="INFO[EventLog][29][Text]" Scope="Children"/>
					</Rule>
					<Rule Name="szGUID9519g" Query="'7e222a71-ee2c-4fc7-b40b-a9300ea7f2ac'">
						<Variable Name="INFO[EventLog][29][GUID]" Scope="Children"/>
					</Rule>
					<Rule Name="iTask9519g" Query="0">
						<Variable Name="INFO[EventLog][29][Task]" Scope="Children"/>
					</Rule>

					<Rule Name="iTotalEvent" Query="29">
						<Variable Name="TotalNumberOfEvents" Scope="Children"/>
					</Rule>

					<Rule Name="fDispatch" Query="true()" NextStep="ProcessResultStep"/>
				</Object>
			</Object>
		</Object>
	</Object>
	<Object Type="Step" Name="ProcessResultStep" Display="Hide">
		<Object Type="Action">
			<Object Type="Variable" Name="GetTotalEvent" Key1="Scalar">
				<Setting Key1="%TotalNumberOfEvents%" Substitution="TotalEvent"/>

				<Object Type="Enumerator" Key1="1" Key2="%TotalEvent%" Key3="1">
					<Setting Key1="Index" Substitution="Index"/>
					<Object Type="Variable" Name="GetVariables" Key1="Scalar">
						<Setting Key1="%INFO[EventLog][%Index%][Events]%" Substitution="Event"/>
						<Setting Key1="%INFO[EventLog][%Index%][EventData]%" Substitution="EventData"/>

						<Object Type="If" Name="SGEvents" Key1="not ('%Event%'='1')">
							<Object Type="If" Name="Event455" Key1="%Index%=2">
								<Object Type="Variable" Name="Get455SGs" Key1="Unpack" Key2="%Event%">
									<Setting Key1="__VALUE" Substitution="SubPath"/>
									<Object Type="Variable" Name="ConvertToSGName" Key1="Scalar" Display="Hide">
										<Setting Key1="%INFO[%SubPath%]%" Substitution="SGName">
											<Rule Name="d455" Query="1">
												<Variable Name="INFO[EventLog][%Index%][%SGName%][Valid]" Scope="Children"/>
											</Rule>
										</Setting>
										<Object Type="Group" Name="GetData">
											<Object Type="Variable" Name="PackedData" Key1="Unpack" Key2="%EventData%">
												<Setting Key1="__VALUE" Substitution="Data">
													<Rule Name="sz455Data" Query="if(get-sublogpath($.)=@S1,$.)" S1="%SubPath%"/>
												</Setting>
											</Object>
											<Rule Name="szPack455Data" Query="join(',', $sz455Data)">
												<Variable Name="INFO[EventLog][%Index%][%SGName%][Data]" Scope="Children"/>
											</Rule>
										</Object>
									</Object>
								</Object>
							</Object>

							<Object Type="If" Name="NormalCases" Key1="not (%Index%=2)">
								<Object Type="Variable" Name="GetSGs" Key1="Unpack" Key2="%Event%">
									<Setting Key1="__VALUE" Substitution="SGName">
										<Rule Name="fValid" Query="1">
											<Variable Name="INFO[EventLog][%Index%][%SGName%][Valid]" Scope="Children"/>
										</Rule>
									</Setting>
									<Object Type="Group" Name="GetData">
										<Object Type="Variable" Name="PackedData" Key1="Unpack" Key2="%EventData%">
											<Setting Key1="__VALUE" Substitution="Data">
												<Rule Name="szData" Query="if(slice($.,'|',0)=@S1,slice($.,'|',1))" S1="%SGName%"/>
											</Setting>
										</Object>

										<Rule Name="szPackData" Query="join(',', $szData)">
											<Variable Name="INFO[EventLog][%Index%][%SGName%][Data]" Scope="Children"/>
										</Rule>
									</Object>
								</Object>
							</Object>
						</Object>
					</Object>
				</Object>
			</Object>
			<Rule Name="fDispatch" Query="true()" NextStep="PrepareEventLogResultStep"/>
		</Object>
	</Object>
	<Object Type="Step" Name="PrepareEventLogResultStep" Display="Hide">
		<Object Type="Action">
			<Object Type="Variable" Name="GetVariables" Key1="Scalar">
				<Setting Key1="%INFO[AllSGs]%" Substitution="AllSGs" Display="Hide"/>
				<Setting Key1="%ServerName%" Substitution="EXSERVER" Display="Hide"/>
				<Setting Key1="%TotalNumberOfEvents%" Substitution="TotalNumberOfEvents" Display="Hide"/>

				<Object Type="Enumerator" Key1="1" Key2="%TotalNumberOfEvents%" Key3="1">
					<Setting Key1="Index" Substitution="Index"/>
					<Object Type="Variable" Key1="Scalar" Class="Server" GroupingClass="True">
						<Setting Key1="%INFO[EventLog][%Index%][Title]%" Substitution="Title"/>
						<Setting Key1="%INFO[EventLog][%Index%][Text]%" Substitution="Text"/>
						<Setting Key1="%INFO[EventLog][%Index%][GUID]%" Substitution="GUID"/>
						<Setting Key1="%INFO[EventLog][%Index%][Task]%" Substitution="HasTask"/>
						<Setting Key1="%INFO[EventLog][%Index%][Events]%" Substitution="Event">
							<Rule Name="fEventServerNoTask" Query="$.=1 and '%HasTask%'='0'" Title="{8}" Text="%Text%" S8="%Title%" Error="Error" GUID="%GUID%"/>
							<Rule Name="fEventServer" Query="$.=1 and '%HasTask%'='1'" Title="{8}" Text="%Text%" S8="%Title%" Error="Error" GUID="%GUID%">
								<IssueLink Name="ActionData" Value="%Index%|"/>
							</Rule>
						</Setting>

						<Object Type="If" Name="SGEvents" Key1="not ('%Event%'='1')">
							<Object Type="Variable" Name="All SGs" Key1="Unpack" Key2="%AllSGs%">
								<Setting Key1="__VALUE" Substitution="SGName"/>
								<Object Type="Variable" Key1="Scalar" Class="%SGName%" GroupingClass="True">
									<Setting Key1="%INFO[EventLog][%Index%][%INFO[AllUpperCaseSGs][%SGName%]%][Data]%" Substitution="Data"/>
									<Setting Key1="%INFO[EventLog][%Index%][%INFO[AllUpperCaseSGs][%SGName%]%][Valid]%">
										<Rule Name="fEventNoTask" Query="$.=1 and '%HasTask%'='0'" Title="{8}" Text="%Text%" S1="%Data%" S8="%Title%" Error="Error" GUID="%GUID%"/>
										<Rule Name="fEvent" Query="$.=1 and '%HasTask%'='1'" Title="{8}" Text="%Text%" S1="%Data%" S8="%Title%" Error="Error" GUID="%GUID%">
											<IssueLink Name="ActionData" Value="%Index%|%SGName%"/>
										</Rule>
									</Setting>
								</Object>
							</Object>
						</Object>
					</Object>
					<Rule Name="fDispatch" Query="true()" NextStep="DisplayEventLogResultStep">
						<Rule Name="szPreviousStepName" Query="'PrepareEventLogResultStep'">
							<Variable Name="PreviousStepName" Scope="Children"/>
						</Rule>
					</Rule>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="DisplayEventLogResultStep" Title="Exibir Resultado de Exame de Log de Eventos" Display="Left">
		<Object Type="Variable" Name="Get Variables" Key1="Scalar">
			<Setting Key1="%Server%" Substitution="Server" Display="Hide"/>
			<Setting Key1="%INFO[FilterMinutes]%" Substitution="InputMinutes" Display="Hide"/>
			<Setting Key1="%PreviousStepName%" Substitution="PreviousStepName" Display="Hide"/>
			<Setting Key1="%AllEvents%" Substitution="AllEvents" Display="Hide"/>
			<Object Type="If" Key1="true()" Name="GetInputMinutesText">
				<Setting Key1="if(%InputMinutes%=0, '%AllEvents%', '%InputMinutes%')" Substitution="InputMinutesText" Display="Hide"/>
				<Object Type="Panel">
					<Object Type="Control" SubType="Title" Name="Title" Position="Top" Text="Resultados de exame de log de eventos"/>
					<Object Type="Control" SubType="Label" Name="Label1" Position="Below" LineSpace="2" Text="Nome do servidor: %Server%"/>
					<Object Type="Control" SubType="Label" Name="Label2" Position="Below" LineSpace="0" Text="Minutos de entrada: %InputMinutesText%"/>

					<Object Type="IfResults" Name="ReportNoResults" Key1="count(//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error]) = 0">
						<Object Type="Control" SubType="Label" Name="NoIssueDetectedInTimeRange" Position="LeftBelow" Text="Não há nenhum problema relacionado ao banco de dados detectado durante o intervalo de tempo especificado."/>
					</Object>

					<Object Type="IfResults" Name="ReportNoResults" Key1="count(//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message[@Error]) &gt; 0">
						<Object Type="Control" SubType="Reports" Name="EventReports" Position="LeftBelow" Width="FullWidth" Height="400" Sort="True">
							<Report Title="Problemas de Banco de Dados" Query="//Object[@Type='Step' and @Name='%STEPNAMEPREFIX%%PreviousStepName%' and not(@StepStatus='Deactivated')][last()]/*//Message" ArrangeByText="Server"/>
							<IssueLink Name="ActionData" Text="Use a tarefa relacionado de Gerenciamento de Recuperação de Banco de Dados para verificar e resolver esse problema."/>
							<Setting Key1="ActionData">
								<Rule Name="szData" Query="if(string($.)!='', $., '|')"/>
								<Rule Name="szSGName" Query="slice($szData, '|', 1)">
									<Variable Name="SelectedSG" Scope="Children"/>
								</Rule>
								<Rule Name="szIndexID" Query="slice($szData, '|', 0)">
									<Variable Name="IndexID" Scope="Children"/>
								</Rule>
								<Rule Name="fNextStep" Query="string($.)!=''" NextStep="PrepareSolutionStep"/>
							</Setting>
						</Object>
					</Object>

					<Rule Name="szGetStepID" Query="get-stepid()">
						<Variable Name="EventDisplayStepID" Scope="Children"/>
					</Rule>
					<Object Type="Control" SubType="Link" Name="Previous" LineSpace="2" Position="LeftBelow" Text="Anterior"/>
					<Object Type="Control" SubType="Link" Name="Next" Position="NextTo" Percent="30" Text="Ir para a página de resultados"/>
				</Object>
			</Object>
		</Object>
	</Object>

	<Object Type="Step" Name="PrepareSolutionStep" Title="Página de Preparação de Solução" Display="Hide">
		<Object Type="Action">
			<Object Type="Variable" Key1="Scalar">
				<Setting Key1="%IndexID%" Substitution="IndexID" Display="Hide"/>

				<Object Type="If" Key1="%IndexID%=5 or %IndexID%=11">
					<Object Type="Group">
						<Rule Name="fResetLogGenerationNumber" NextStep="ResetLogOptionsStep"/>
					</Object>
				</Object>

				<Object Type="If" Key1="%IndexID%=1 or %IndexID%=2">
					<Object Type="Group">
						<Rule Name="fVerifyDatabaseAndLogFiles" NextStep="SelectDBStep"/>
					</Object>
				</Object>

				<Object Type="If" Key1="%IndexID%=22">
					<Object Type="Group">
						<Rule Name="fLogDriveAnalysis" NextStep="PrepareLogDriveAnalysisStep"/>
					</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>MFsBSaiBAyipxiKokib0mMZRR0k=</DigestValue></Reference></SignedInfo><SignatureValue>
    e0dmTVdPQSsiHrmeMC6F0XfmbmH8W32akxtuGLPMaJHxU3wVbg7TH6URekirGuC+J+JFport
    +wYNL7+QL/18LxP01w/S2gcIjkWWYmF2bUycZ0O+ycY3CCeLQYmEqx8RfsO18euP+31CCnmv
    L0CCat84pi9pc0ozW2Jzv+rr+UlepYBqwh+XzhNRsGMeIKdSoUBqgfOw1A0SfAbmWDLbReo5
    piJa3bHmBTAQKEVhEKTTB2jiiu9pxINwajDZ9ScOIGdMewWr8CfgvNpvenLKdSLva5OLZO8w
    EG49kgUVJ0vTh1IVaF8Ohn2VSxpT4Q8BqwqhqPpPjZThS3CNN6Pv8g==
  </SignatureValue><KeyInfo>
      <KeyValue>
        <RSAKeyValue>
          <Modulus>
            vTCJ+0VyqFNrnolPACPAvtQdPbFZQDjzc5GCJuaWEgBT2RyCDjzOHbu990KNl9T8OBrkufnj
            7NNhA7+g09Z1TVxGqe1e8NLiaVsac+qzHI0EzSlEoGRZLx6YXW7Hqxg5gmXEp7yrdYgZ6oeX
            FCazfyZ2pNQ4OYTjsybVGPkr6dLJFlpUIfKXjYeGKf70SSzmi/gEP33NzZaShg1xA+LQ/gxC
            Nf/XuD/djkUKffbXS61b8HZyHXcjfYk1xBxdslADS0dtB6dViJgGgKaBrVRO2IHW+r9CwDG+
            VQ2Z1VNJEjDr5aWIfF7EeloUhwi0N2mg6zIkjAjr+dQUuuD8zeqkFQ==
          </Modulus>
          <Exponent>AQAB</Exponent>
        </RSAKeyValue>
      </KeyValue>
      <X509Data>
        <X509Certificate>
          MIIEejCCA2KgAwIBAgIKYQHPPgAAAAAADzANBgkqhkiG9w0BAQUFADB5MQswCQYDVQQGEwJV
          UzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWlj
          cm9zb2Z0IENvcnBvcmF0aW9uMSMwIQYDVQQDExpNaWNyb3NvZnQgQ29kZSBTaWduaW5nIFBD
          QTAeFw0wOTEyMDcyMjQwMjlaFw0xMTAzMDcyMjQwMjlaMIGDMQswCQYDVQQGEwJVUzETMBEG
          A1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0
          IENvcnBvcmF0aW9uMQ0wCwYDVQQLEwRNT1BSMR4wHAYDVQQDExVNaWNyb3NvZnQgQ29ycG9y
          YXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9MIn7RXKoU2ueiU8AI8C+
          1B09sVlAOPNzkYIm5pYSAFPZHIIOPM4du733Qo2X1Pw4GuS5+ePs02EDv6DT1nVNXEap7V7w
          0uJpWxpz6rMcjQTNKUSgZFkvHphdbserGDmCZcSnvKt1iBnqh5cUJrN/Jnak1Dg5hOOzJtUY
          +Svp0skWWlQh8peNh4Yp/vRJLOaL+AQ/fc3NlpKGDXED4tD+DEI1/9e4P92ORQp99tdLrVvw
          dnIddyN9iTXEHF2yUANLR20Hp1WImAaApoGtVE7Ygdb6v0LAMb5VDZnVU0kSMOvlpYh8XsR6
          WhSHCLQ3aaDrMiSMCOv51BS64PzN6qQVAgMBAAGjgfgwgfUwEwYDVR0lBAwwCgYIKwYBBQUH
          AwMwHQYDVR0OBBYEFDh4BXPIGzKbX5KGVa+JusaZsXSOMA4GA1UdDwEB/wQEAwIHgDAfBgNV
          HSMEGDAWgBTMHc52AHBbr/HaxE6aUUQuo0Rj8DBEBgNVHR8EPTA7MDmgN6A1hjNodHRwOi8v
          Y3JsLm1pY3Jvc29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9DU1BDQS5jcmwwSAYIKwYBBQUH
          AQEEPDA6MDgGCCsGAQUFBzAChixodHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRz
          L0NTUENBLmNydDANBgkqhkiG9w0BAQUFAAOCAQEAKAODqxMN8f4Rb0J22EOruMZC+iRlNK51
          sHEwjpa2g/py5P7NN+c6cJhRIA66cbTJ9NXkiugocHPV7eHCe+7xVjRagILrENdyA+oSTuzd
          DYx7RE8MYXX9bpwH3c4rWhgNObBg/dr/BKoCo9j6jqO7vcFqVDsxX+QsbsvxTSoc8h52e4av
          xofWsSrtrMwOwOSff+jP6IRyVIIYbirInpW0Gh7Bb5PbYqbBS2utye09kuOyL6t6dzlnagB7
          gp0DEN5jlUkmQt6VIsGHC9AUo1/cczJyNh7/yCnFJFJPZkjJHR2pxSY5aVBOp+zCBmwuchvx
          IdptJEiAgRVAfJ/MdDhKTw==
        </X509Certificate>
      </X509Data>
      <X509Data>
        <X509Certificate>
          MIIEEjCCAvqgAwIBAgIPAMEAizw8iBHRPvZj7N9AMA0GCSqGSIb3DQEBBAUAMHAxKzApBgNV
          BAsTIkNvcHlyaWdodCAoYykgMTk5NyBNaWNyb3NvZnQgQ29ycC4xHjAcBgNVBAsTFU1pY3Jv
          c29mdCBDb3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFJvb3QgQXV0aG9yaXR5MB4X
          DTk3MDExMDA3MDAwMFoXDTIwMTIzMTA3MDAwMFowcDErMCkGA1UECxMiQ29weXJpZ2h0IChj
          KSAxOTk3IE1pY3Jvc29mdCBDb3JwLjEeMBwGA1UECxMVTWljcm9zb2Z0IENvcnBvcmF0aW9u
          MSEwHwYDVQQDExhNaWNyb3NvZnQgUm9vdCBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUA
          A4IBDwAwggEKAoIBAQCpAr3BcOY78k4bKJ+XeF4w6qKpjSVf+P6VTKO3/p2iID58UaKboo9g
          MmvRQmR57qx2yVTa8uuchhyPn4Rms8VremIj1h083g8BkuiWxL8tZpqaaCaZ0Dosvwy1WCbB
          RucKPjiWLKkoOajsSYNC44QPu5psVWGsgnyhYC13TOmZtGQ7mlAcMQgkFJ+p55ErGOY9mGMU
          YFgFZZ8dN1KH96fvlALGG9O/VUWziYC/OuxUlE6u/ad6bXROrxjMlgkoIQBXkGBpN7tLEgc8
          Vv9b+6RmCgim0oFWV++2O14WgXcE2va+roCV/rDNf9anGnJcPMq88AijIjCzBoXJsyB3E4Xf
          AgMBAAGjgagwgaUwgaIGA1UdAQSBmjCBl4AQW9Bw72lyniNRfhSyTY7/y6FyMHAxKzApBgNV
          BAsTIkNvcHlyaWdodCAoYykgMTk5NyBNaWNyb3NvZnQgQ29ycC4xHjAcBgNVBAsTFU1pY3Jv
          c29mdCBDb3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFJvb3QgQXV0aG9yaXR5gg8A
          wQCLPDyIEdE+9mPs30AwDQYJKoZIhvcNAQEEBQADggEBAJXoC8CN85cYNe24ASTYdxHzXGAy
          n54Lyz4FkYiPyTrmIfLwV5MstaBHyGLv/NfMOztaqTZUaf4kbT/JzKreBXzdMY09nxBwarv+
          Ek8YacD80EPjEVogT+pie6+qGcgrNyUtvmWhEoolD2Oj91Qc+SHJ1hXzUqxuQzIH/YIX+OVn
          bA1R9r3xUse958Qw/CAxCYgdlSkaTdUdAqXxgOADtFv0sd3IV+5lScdSVLa0AygS/5DW8AiP
          friXxas3LOR65Kh343agANBqP8HSNorgQRKoNWobats14dQcBOSoRQTIWjM4bk0cDWK3CqKM
          09VUP0bNHFWmcNsSOoeTdZ+n0qA=
        </X509Certificate>
      </X509Data>
      <X509Data>
        <X509Certificate>
          MIIEYDCCA0ygAwIBAgIKLqsR3FD/XJ3LwDAJBgUrDgMCHQUAMHAxKzApBgNVBAsTIkNvcHly
          aWdodCAoYykgMTk5NyBNaWNyb3NvZnQgQ29ycC4xHjAcBgNVBAsTFU1pY3Jvc29mdCBDb3Jw
          b3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFJvb3QgQXV0aG9yaXR5MB4XDTA3MDgyMjIy
          MzEwMloXDTEyMDgyNTA3MDAwMFoweTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0
          b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEj
          MCEGA1UEAxMaTWljcm9zb2Z0IENvZGUgU2lnbmluZyBQQ0EwggEiMA0GCSqGSIb3DQEBAQUA
          A4IBDwAwggEKAoIBAQC3eX3WXbNFOag0rDHa+SU1SXfA+x+ex0Vx79FG6NSMw2tMUmL0mQLD
          TdhJbC8kPmW/ziO3C0i3f3XdRb2qjw5QxSUr8qDnDSMf0UEk+mKZzxlFpZNKH5nNsy8iw0ot
          fG/ZFR47jDkQOd29KfRmOy0BMv/+J0imtWwBh5z7urJjf4L5XKCBhIWOsPK4lKPPOKZQhRcn
          h07dMPYAPfTG+T2BvobtbDmnLjT2tC6vCn1ikXhmnJhzDYav8sTzILlPEo1jyyzZMkUZ7rtK
          ljtQUxjOZlF5qq2HyFY+n4JQiG4FsTXBeyS9UmY9mU7MK34zboRHBtGe0EqGAm6GAKTAh99T
          AgMBAAGjgfowgfcwEwYDVR0lBAwwCgYIKwYBBQUHAwMwgaIGA1UdAQSBmjCBl4AQW9Bw72ly
          niNRfhSyTY7/y6FyMHAxKzApBgNVBAsTIkNvcHlyaWdodCAoYykgMTk5NyBNaWNyb3NvZnQg
          Q29ycC4xHjAcBgNVBAsTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9z
          b2Z0IFJvb3QgQXV0aG9yaXR5gg8AwQCLPDyIEdE+9mPs30AwDwYDVR0TAQH/BAUwAwEB/zAd
          BgNVHQ4EFgQUzB3OdgBwW6/x2sROmlFELqNEY/AwCwYDVR0PBAQDAgGGMAkGBSsOAwIdBQAD
          ggEBAHurrn5KJvLOvE50olgndCp1s4b9q0yUeABN6crrGNxpxQ6ifPMCQ8bKh8z4U8zCn71W
          b/BjRKlEAO6WyJrVHLgLnxkNlNfaHq0pfe/tpnOsj945jj2Yarw4bdKIryP93+nWaQmRiL3+
          4QC7NPP3fPkQEi4F6ymWk0JrKHG3OI/gBw3JXWjNvYBBa2aou7e7jjTK8gMQfHr10uBC33v+
          4eGs/vbf1Q2zcNaS40+2OKJ8LdQ92zQLYjcCn4FqI4n2XGOPsFq7OddgjFWEGjP1O5igggyi
          X4uzLLehpcur2iC2vzAZhSAUDSq8UvRB4F4w45IoaYfBcOLzp6vOgEJydg4=
        </X509Certificate>
      </X509Data>
    </KeyInfo><Object id="ts-countersig"><X509Data><X509Certificate>MIIEqjCCA5KgAwIBAgIKYQaULQAAAAAACTANBgkqhkiG9w0BAQUFADB5MQswCQYDVQQGEwJVUzET
MBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0
IENvcnBvcmF0aW9uMSMwIQYDVQQDExpNaWNyb3NvZnQgVGltZXN0YW1waW5nIFBDQTAeFw0wODA3
MjUxOTAyMTdaFw0xMzA3MjUxOTEyMTdaMIGzMQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGlu
Z3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMQ0w
CwYDVQQLEwRNT1BSMScwJQYDVQQLEx5uQ2lwaGVyIERTRSBFU046N0E4Mi02ODhBLTlGOTIxJTAj
BgNVBAMTHE1pY3Jvc29mdCBUaW1lLVN0YW1wIFNlcnZpY2UwggEiMA0GCSqGSIb3DQEBAQUAA4IB
DwAwggEKAoIBAQCVgQogQhhRetmV7Zv93IfR+w6PE+qqNygSdv5NUKt2lyqTR+CpVmkC5ZR+TYXb
f3HvdQDbu0Ns+2+scfAr0XySzpQXnaHFuvn3ft1h4S0wHpwmLXY/5kaWjq7YiTfYzO/zz1vD/Gjg
8mSPm+jDEvmjvoT81ovOBT29AXZQJwP4hLcWho1gvl0pLDzPpf2YWjUdTxbAONgeYT89NrNWFBV3
lTsQ+gCwk+JdN6snu2MsSBSBVeNs6qkrlY2IDn6jAKV3JAeYKnADuCokkJrexaIiS79MWQZ3VHJD
sD5k3ZOECFi2/umHSQk2s7P4M6l+TKJ5fzJZKQ6etfXgPJ4/7EY7AgMBAAGjgfgwgfUwHQYDVR0O
BBYEFCiViL8CO+valLp9Rg/6y/R+nf/RMB8GA1UdIwQYMBaAFG/oTj+XuTSrS4aPvJzqrDtBQ8bQ
MEQGA1UdHwQ9MDswOaA3oDWGM2h0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2kvY3JsL3Byb2R1
Y3RzL3RzcGNhLmNybDBIBggrBgEFBQcBAQQ8MDowOAYIKwYBBQUHMAKGLGh0dHA6Ly93d3cubWlj
cm9zb2Z0LmNvbS9wa2kvY2VydHMvdHNwY2EuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMIMA4GA1Ud
DwEB/wQEAwIGwDANBgkqhkiG9w0BAQUFAAOCAQEAAO6s/OLSiGbKKeNauc0Agn4XXMUkWRK7qPdr
14f+jcu1dh8bIvb34cq0uUEBGjetSDeWcPrMM6cojLgLtnQTKLezdeEqCeKLT9+YP5e3NBKB6hDd
Hdy6ZM9OUDtMiv0Z3SWu1ZaH6kvE5fD5QRddAetXiH12euVv/ocgrJOcjJq/XxqgFTAk4KJ+YZEd
KSnDSZA6Q4OJ7t7Vg91PLDU750FBAaoADAvy1kkbzkKNe7DzLY1dKeG+jX+RFXa0YPsUJ6pvEmNC
KFg6ijuLQOS3xcySVxxGVmuPy5JNVgUAyvgwQEVO3xmIvfUQ8N0a3ygetFHyd+Am47sJgRLcHjrQ
RQ==</X509Certificate></X509Data><X509Data><X509Certificate>MIIEnTCCA4WgAwIBAgIQaguZT8AAJasR20UfWHpnojANBgkqhkiG9w0BAQUFADBwMSswKQYDVQQL
EyJDb3B5cmlnaHQgKGMpIDE5OTcgTWljcm9zb2Z0IENvcnAuMR4wHAYDVQQLExVNaWNyb3NvZnQg
Q29ycG9yYXRpb24xITAfBgNVBAMTGE1pY3Jvc29mdCBSb290IEF1dGhvcml0eTAeFw0wNjA5MTYw
MTA0NDdaFw0xOTA5MTUwNzAwMDBaMHkxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9u
MRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xIzAhBgNV
BAMTGk1pY3Jvc29mdCBUaW1lc3RhbXBpbmcgUENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEA3Ddu+6/IQkpxGMjOSD5TwPqrFLosMrsST1LIg+0+M9lJMZIotpFk4B9QhLrCS9F/Bfjv
db6Lx6jVrmlwZngnZui2t++Fuc3uqv0SpAtZIikvz0DZVgQbdrVtZG1KVNvd8d6/n4PHgN9/TAI3
lPXAnghWHmhHzdnAdlwvfbYlBLRWW2ocY/+AfDzu1QQlTTl3dAddwlzYhjcsdckO6h45CXx2/p1s
bnrg7D6Pl55xDl8qTxhiYDKe0oNOKyJcaEWL3i+EEFCy+bUajWzuJZsT+MsQ14UO9IJ2czbGlXqi
zGAG7AWwhjO3+JRbhEGEWIWUbrAfLEjMb5xD4GrofyaOawIDAQABo4IBKDCCASQwEwYDVR0lBAww
CgYIKwYBBQUHAwgwgaIGA1UdAQSBmjCBl4AQW9Bw72lyniNRfhSyTY7/y6FyMHAxKzApBgNVBAsT
IkNvcHlyaWdodCAoYykgMTk5NyBNaWNyb3NvZnQgQ29ycC4xHjAcBgNVBAsTFU1pY3Jvc29mdCBD
b3Jwb3JhdGlvbjEhMB8GA1UEAxMYTWljcm9zb2Z0IFJvb3QgQXV0aG9yaXR5gg8AwQCLPDyIEdE+
9mPs30AwEAYJKwYBBAGCNxUBBAMCAQAwHQYDVR0OBBYEFG/oTj+XuTSrS4aPvJzqrDtBQ8bQMBkG
CSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMAsGA1UdDwQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MA0G
CSqGSIb3DQEBBQUAA4IBAQCUTRExwnxQuxGOoWEHAQ6McEWN73NUvT8JBS3/uFFThRztOZG3o1YL
3oy2OxvR+6ynybexUSEbbwhpfmsDoiJG7Wy0bXwiuEbThPOND74HijbB637pcF1Fn5LSzM7djsDh
vyrNfOzJrjLVh7nLY8Q20Rghv3beO5qzG3OeIYjYtLQSVIz0nMJlSpooJpxgig87xxNleEi7z62D
Ok+wYljeMOnpOR3jifLaOYH5EyGMZIBjBgSW8poCQy97Roi6/wLZZflK3toDdJOzBW4MzJ3cKGF8
SPEXnBEhOAIch6wGxZYyuOVAxlM9vamJ3uhmN430IpaczLB3VFE61nJEsiP2</X509Certificate></X509Data><CounterSignature xmlns="http://schemas.microsoft.com/xmldsig/timestamp/2003" ts-format="cms-timestamp-message">MIIGyQYJKoZIhvcNAQcCoIIGujCCBrYCAQMxCTAHBgUrDgMCGjCCARMGCSqGSIb3DQEHAaCCAQQE
ggEAe0dmTVdPQSsiHrmeMC6F0XfmbmH8W32akxtuGLPMaJHxU3wVbg7TH6URekirGuC+J+JFport
+wYNL7+QL/18LxP01w/S2gcIjkWWYmF2bUycZ0O+ycY3CCeLQYmEqx8RfsO18euP+31CCnmvL0CC
at84pi9pc0ozW2Jzv+rr+UlepYBqwh+XzhNRsGMeIKdSoUBqgfOw1A0SfAbmWDLbReo5piJa3bHm
BTAQKEVhEKTTB2jiiu9pxINwajDZ9ScOIGdMewWr8CfgvNpvenLKdSLva5OLZO8wEG49kgUVJ0vT
h1IVaF8Ohn2VSxpT4Q8BqwqhqPpPjZThS3CNN6Pv8qCCA32hggN5MIICYQIBATCB46GBuaSBtjCB
szELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAc
BgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjENMAsGA1UECxMETU9QUjEnMCUGA1UECxMebkNp
cGhlciBEU0UgRVNOOjdBODItNjg4QS05RjkyMSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFt
cCBTZXJ2aWNloiUKAQEwCQYFKw4DAhoFAAMVAAX+y3RffzsaDiYqc0Ncy36q7Ys3oIHBMIG+pIG7
MIG4MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEe
MBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMQwwCgYDVQQLEwNBT0MxJzAlBgNVBAsTHm5D
aXBoZXIgTlRTIEVTTjoyMkExLTIwOEUtODdCMDErMCkGA1UEAxMiTWljcm9zb2Z0IFRpbWUgU291
cmNlIE1hc3RlciBDbG9jazANBgkqhkiG9w0BAQUFAAIFAM+xNLkwIhgPMjAxMDA2MDIxOTUxMjFa
GA8yMDEwMDYwMzE5NTEyMVoweDA+BgorBgEEAYRZCgQBMTAwLjAKAgUAz7E0uQIBADAKAgEAAgIA
uAIB/zAIAgEAAgMDHcwwCgIFAM+yhjkCAQAwNgYKKwYBBAGEWQoEAjEoMCYwDAYKKwYBBAGEWQoD
AaAKMAgCAQACAw9CQKEKMAgCAQACAwehIDANBgkqhkiG9w0BAQUFAAOCAQEAHvis1xXFi1rpwgd4
IVEILxqCyhO1Ocu6J6ijZy2qbOy9QlzK0Esud2PxNGbcXHhFZgiVpnbpGF+4gCXYWklZnwCElW+2
RXz+LSEz4ZHIECJN5o6NXvnCYjmANWQJmKeQWrqkCzpm0CctzWTTo8AXhyvq8Lpt2R4WO0+rmm1i
VRsoJ95cOYlYkk4mBFB8ZTQrTUX0qi0oFp3qA4EhW8IU9hAM3sfBLJ9EqZ+9Dw2wa6lHuO7+M0Xb
g2PGitr7QP6DDxZ7/n1hjfhyyaJ1uelg2CV6lf5Yo+xO6FJYuiDA3ozS0qGP5NjY03bRbniqmKDZ
TJahf6D+LyeKMohChwJh4TGCAgwwggIIAgEBMIGHMHkxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpX
YXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRp
b24xIzAhBgNVBAMTGk1pY3Jvc29mdCBUaW1lc3RhbXBpbmcgUENBAgphBpQtAAAAAAAJMAcGBSsO
AwIaoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTAwNjAzMDEw
OTE2WjAjBgkqhkiG9w0BCQQxFgQUEsLVTCVzTMtLRnBZx90Vz5DW+n8wDQYJKoZIhvcNAQEFBQAE
ggEACZab7jABsS09oUvebIvg9BNvxfeV44p7qXj0kcQggzoXyd8Z6AGJKt/AcCJC5mPAS2MM28Mk
vNy8uu0onPGDFtX8Da0i6KGczh2vCBVHy1jFv0MSOf5T9FPsKIUBG5RqzhxtC5LQpfCvrY+hR2lN
O3kHIo4VSSD7GfKcJufvU6MT3LA2A07WZmGIuitH/MgOGn/Gzvys26kRhOZmt23eDEobTeZDWdZM
mHug0pmeOtOTb5Xns3eJnKnv8XVDdCmK8MAIlG489Y+dMA7Vni5r4sRnQ2CdIQXn0XMKQMr2wsw/
+h+T+Em7wUkcRQfugXM5LpqoVzp/RfKWrbRT/DmJNA==</CounterSignature></Object></Signature></Wizard>