<?xml version="1.0" encoding="UTF-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v3" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<assemblyIdentity buildType="release" language="neutral" name="Microsoft-Windows-Windeploy-Instrumentation" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" version="6.1.7601.17514" versionScope="nonSxS"></assemblyIdentity>
	<registryKeys>
		<!-- Windeploy Provider -->
		<registryKey keyName="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\Microsoft-Windows-Setup\{75EBC33E-C8AE-4f93-9CA1-683A53E20CB6}">
			<registryValue name="Enabled" value="1" valueType="REG_DWORD"></registryValue>
			<registryValue name="EnableLevel" value="4" valueType="REG_DWORD"></registryValue>
		</registryKey>
	</registryKeys>
	<instrumentation xmlns:win="http://manifests.microsoft.com/win/2004/08/windows/events" xmlns:xs="http://www.w3.org/2001/XMLSchema">
		<events xmlns:auto-ns1="urn:schemas-microsoft-com:asm.v3" xmlns="http://schemas.microsoft.com/win/2004/08/events">
			<!--
           * Microsoft Windows Windeploy Provider *
           Author: jasontho (Jason Thorsness)
      -->
			<provider guid="{75EBC33E-C8AE-4f93-9CA1-683A53E20CB6}" message="$(string.Windeploy.ProviderMessage)" messageFileName="%SystemRoot%\system32\oobe\windeploy.exe" name="Microsoft-Windows-Windeploy" resourceFileName="%SystemRoot%\system32\oobe\windeploy.exe" symbol="Microsoft_Windows_Windeploy">
				<channels>
					<channel chid="chaWindeployAnalytic" name="Microsoft-Windows-Windeploy/Analytic" type="Analytic"></channel>
					<!-- This is the official Setup channel as seen in the Event Viewer. -->
					<importChannel chid="chaSetup" name="Setup"></importChannel>
				</channels>
				<keywords>
					<!-- Events with the Performance keyword come in opcode=win:start/win:stop pairs 
               with the same task name.  An individual thread will complete once instance of
               a task with a particular type before starting a new one. -->
					<keyword mask="0x00000001" message="$(string.Performance.KeywordMessage)" name="keyPerformance"></keyword>
				</keywords>
				<templates>
					<template tid="tidCommandLine">
						<data inType="win:UnicodeString" name="CommandLine"></data>
					</template>
					<template tid="tidErrorCodeResult">
						<data inType="win:UInt32" name="ErrorCode"></data>
					</template>
				</templates>
				<tasks>
					<task eventGUID="{4081FD79-E0CF-4565-9064-5F11A4D682C7}" message="$(string.RunWindeploy.TaskMessage)" name="tskRunWindeploy" value="1000"></task>
					<task eventGUID="{07DC4E47-7C5C-40b5-A20D-C86E54FB1E19}" message="$(string.LaunchAndWaitFor.TaskMessage)" name="tskLaunchAndWaitFor" value="2000"></task>
					<task eventGUID="{5D3FC886-E562-48e1-8477-19A4A0430BD7}" message="$(string.RunWinSat.TaskMessage)" name="tskRunWinSat" value="3000"></task>
				</tasks>
				<events>
					<!-- Official Setup Channel (Will show up in the Event Viewer) Events -->
					<!-- Windeploy Analytic Events -->
					<!-- Windeploy Enter/Exit -->
					<event channel="chaWindeployAnalytic" keywords="keyPerformance" level="win:Informational" message="$(string.RunWindeploy.StartMessage)" opcode="win:Start" symbol="RunWindeployStart" task="tskRunWindeploy" template="tidCommandLine" value="1001"></event>
					<event channel="chaWindeployAnalytic" keywords="keyPerformance" level="win:Informational" message="$(string.RunWindeploy.StopMessage)" opcode="win:Stop" symbol="RunWindeployStop" task="tskRunWindeploy" template="tidErrorCodeResult" value="1002"></event>
					<!-- Launch and wait for process -->
					<event channel="chaWindeployAnalytic" keywords="keyPerformance" level="win:Informational" message="$(string.LaunchAndWaitFor.StartMessage)" opcode="win:Start" symbol="LaunchAndWaitForStart" task="tskLaunchAndWaitFor" template="tidCommandLine" value="2001"></event>
					<event channel="chaWindeployAnalytic" keywords="keyPerformance" level="win:Informational" message="$(string.LaunchAndWaitFor.StopMessageExecuted)" opcode="win:Stop" symbol="LaunchAndWaitForStopExecuted" task="tskLaunchAndWaitFor" template="tidErrorCodeResult" value="2002"></event>
					<event channel="chaWindeployAnalytic" keywords="keyPerformance" level="win:Informational" message="$(string.LaunchAndWaitFor.StopMessageFailedToExecute)" opcode="win:Stop" symbol="LaunchAndWaitForStopFailedToExecute" task="tskLaunchAndWaitFor" template="tidErrorCodeResult" value="2003"></event>
					<!-- Run WinSAT -->
					<event channel="chaWindeployAnalytic" keywords="keyPerformance" level="win:Informational" message="$(string.RunWinSat.StartMessage)" opcode="win:Start" symbol="RunWinSatStart" task="tskRunWinSat" value="3001"></event>
					<event channel="chaWindeployAnalytic" keywords="keyPerformance" level="win:Informational" message="$(string.RunWinSat.StopMessage)" opcode="win:Stop" symbol="RunWinSatStop" task="tskRunWinSat" template="tidErrorCodeResult" value="3002"></event>
				</events>
			</provider>
		</events>
	</instrumentation>
	<localization>
		<resources culture="en-US">
			<stringTable>
				<!-- Keywords -->
				<string id="Performance.KeywordMessage" value="Performance"></string>
				<!-- Providers -->
				<string id="Windeploy.ProviderMessage" value="Microsoft-Windows-Windeploy"></string>
				<!-- RunWindeploy -->
				<string id="RunWindeploy.TaskMessage" value="Run Windeploy"></string>
				<string id="RunWindeploy.StartMessage" value="Windeploy.exe is running."></string>
				<string id="RunWindeploy.StopMessage" value="Windeploy.exe exiting with status %1."></string>
				<!-- LaunchAndWaitFor -->
				<string id="LaunchAndWaitFor.TaskMessage" value="Launch and wait for external process"></string>
				<string id="LaunchAndWaitFor.StartMessage" value="Launching &quot;%1&quot;."></string>
				<string id="LaunchAndWaitFor.StopMessageExecuted" value="External process exited with status %1."></string>
				<string id="LaunchAndWaitFor.StopMessageFailedToExecute" value="Failed to start external process with status %1."></string>
				<!-- RunWindeploy -->
				<string id="RunWinSat.TaskMessage" value="Run WinSAT"></string>
				<string id="RunWinSat.StartMessage" value="WinSAT is running."></string>
				<string id="RunWinSat.StopMessage" value="WinSAT exiting with status %1."></string>
			</stringTable>
		</resources>
	</localization>
	<cbb:debuggingInfo xmlns:cbb="urn:schemas-microsoft-com:asm.internal.v1">
		<cbb:sourceManifest sourcePath="%basedir%\base\ntsetup\opktools\windeploy\src\microsoft-windows-windeploy-instrumentation.man"></cbb:sourceManifest>
	</cbb:debuggingInfo>
</assembly>
