<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v3" manifestVersion="1.0" copyright="Copyright (c) Microsoft Corporation. All Rights Reserved.">
  <assemblyIdentity name="Microsoft-Windows-WPD-BusEnumService" version="10.0.10586.306" processorArchitecture="amd64" language="neutral" buildType="release" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS" />
  <dependency discoverable="no" resourceType="Resources">
    <dependentAssembly dependencyType="prerequisite">
      <assemblyIdentity name="Microsoft-Windows-WPD-BusEnumService.Resources" version="10.0.10586.306" processorArchitecture="amd64" language="*" buildType="release" publicKeyToken="31bf3856ad364e35" />
    </dependentAssembly>
  </dependency>
  <file name="wpdbusenum.mof" destinationPath="$(runtime.wbem)\" sourceName="wpdbusenum.mof" sourcePath=".\" importPath="$(build.nttree)\">
    <securityDescriptor name="WRP_FILE_DEFAULT_SDDL" />
    <asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2">
      <dsig:Transforms xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
      <dsig:DigestValue xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">0Jdn/oBav53CXRyDEq8FTsWd9WUrg27euAp/NY/Et9I=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <file name="wpdfs.mof" destinationPath="$(runtime.wbem)\" sourceName="wpdfs.mof" sourcePath=".\" importPath="$(build.nttree)\">
    <securityDescriptor name="WRP_FILE_DEFAULT_SDDL" />
    <asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2">
      <dsig:Transforms xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
      <dsig:DigestValue xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">qvU6TJXNAO8oE8NoECkf1Pc0MuKPZH/Ut1d31gxa7H0=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <file name="wpdbusenum.dll" destinationPath="$(runtime.system32)\" sourceName="wpdbusenum.dll" sourcePath=".\" importPath="$(build.nttree)\">
    <securityDescriptor name="WRP_FILE_DEFAULT_SDDL" />
    <asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2">
      <dsig:Transforms xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
      <dsig:DigestValue xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">mywqvH23FilbC9CvBNoI5rQgDXzxx9tZ3Y/Y/r1W2Uw=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <memberships>
    <categoryMembership>
      <id name="Microsoft.Windows.Categories.Services" version="10.0.10586.306" publicKeyToken="31bf3856ad364e35" typeName="Service" />
      <categoryInstance>
        <serviceData name="WPDBusEnum" displayName="@%SystemRoot%\system32\wpdbusenum.dll,-100" errorControl="normal" imagePath="%SystemRoot%\system32\svchost.exe -k LocalSystemNetworkRestricted" start="demand" type="win32ShareProcess" description="@%SystemRoot%\system32\wpdbusenum.dll,-101" dependOnService="RpcSs" objectName="LocalSystem" sidType="unrestricted" requiredPrivileges="SeAuditPrivilege,SeChangeNotifyPrivilege,SeCreateGlobalPrivilege,SeCreatePermanentPrivilege,SeImpersonatePrivilege">
          <failureActions resetPeriod="86400">
            <actions>
              <action type="restartService" delay="120000" />
              <action type="restartService" delay="300000" />
              <action type="none" />
            </actions>
          </failureActions>
          <serviceTrigger xmlns="urn:schemas-microsoft-com:asm.v3" action="start" subtype="{53F56307-B6BF-11D0-94F2-00A0C91EFB8B}" type="DeviceInterfaceArrival" />
          <serviceTrigger xmlns="urn:schemas-microsoft-com:asm.v3" action="start" subtype="{C1E9BC6D-1DAE-421A-9369-CC7FF0D6E359}" type="DeviceInterfaceArrival" />
          <serviceTrigger xmlns="urn:schemas-microsoft-com:asm.v3" action="start" subtype="WNF_STATE_CHANGE" type="WnfStateEvent">
            <triggerData type="binary" value="7518bca328009213" />
          </serviceTrigger>
          <serviceTrigger xmlns="urn:schemas-microsoft-com:asm.v3" action="start" subtype="MACHINE_POLICY_PRESENT" type="GroupPolicyChange" />
          <serviceTrigger xmlns="urn:schemas-microsoft-com:asm.v3" action="start" subtype="USER_POLICY_PRESENT" type="GroupPolicyChange" />
          <serviceTrigger xmlns="urn:schemas-microsoft-com:asm.v3" action="start" subtype="{199FE037-2B82-40A9-82AC-E1D46C792B99}" type="Custom">
            <triggerData type="kwAny" value="0x0000000000000001" />
          </serviceTrigger>
        </serviceData>
      </categoryInstance>
    </categoryMembership>
    <categoryMembership>
      <id name="Microsoft.Windows.Categories" version="1.0.0.0" publicKeyToken="365143bb27e7ac8b" typeName="SvcHost" />
      <categoryInstance subcategory="LocalSystemNetworkRestricted">
        <serviceGroup xmlns="urn:schemas-microsoft-com:asm.v3" position="last" serviceName="WPDBusEnum" />
      </categoryInstance>
    </categoryMembership>
  </memberships>
  <registryKeys>
    <registryKey keyName="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Storage" />
    <registryKey keyName="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\RestrictedServices\Static\System">
      <registryValue name="WPDBUSENUM-1" valueType="REG_SZ" value="V2.0|Action=Block|Dir=In|App=%SystemRoot%\system32\svchost.exe|Svc=WPDBusEnum|Name=Block all traffic to and from WPDBusEnum|" />
      <registryValue name="WPDBUSENUM-2" valueType="REG_SZ" value="V2.0|Action=Block|Dir=Out|App=%SystemRoot%\system32\svchost.exe|Svc=WPDBusEnum|Name=Block all traffic to and from WPDBusEnum|" />
    </registryKey>
    <registryKey keyName="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WPDBusEnum\Parameters">
      <registryValue name="ServiceDll" valueType="REG_EXPAND_SZ" value="%SystemRoot%\system32\wpdbusenum.dll" />
      <registryValue name="ServiceDllUnloadOnStop" valueType="REG_DWORD" value="0x00000001" />
    </registryKey>
  </registryKeys>
  <trustInfo>
    <security>
      <accessControl>
        <securityDescriptorDefinitions>
          <securityDescriptorDefinition name="WRP_FILE_DEFAULT_SDDL" sddl="O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464D:P(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;GRGX;;;BA)(A;;GRGX;;;SY)(A;;GRGX;;;BU)(A;;GRGX;;;S-1-15-2-1)S:(AU;FASA;0x000D0116;;;WD)" operationHint="replace" description="Default SDDL for Windows Resource Protected file" />
          <securityDescriptorDefinition name="WRP_REGKEY_DEFAULT_SDDL" sddl="O:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464G:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464D:P(A;CI;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;CI;GR;;;SY)(A;CI;GR;;;BA)(A;CI;GR;;;BU)(A;CI;GR;;;S-1-15-2-1)" operationHint="replace" />
        </securityDescriptorDefinitions>
      </accessControl>
    </security>
  </trustInfo>
  <localization>
    <resources culture="en-US">
      <stringTable>
        <string id="BusEnumDescName" value="Enables applications like Windows Media Player and Image Import Wizard to transfer and synchronize content using removable mass-storage devices." />
        <string id="BusEnumDisplayName" value="WPD Bus Enumerator Service" />
        <string id="BusEnumRegkeyDesc" value="Default SDDL for Windows Resource Protected registry key" />
        <string id="BusEnumRegkeyName" value="WRP_REGKEY_DEFAULT_SDDL" />
      </stringTable>
    </resources>
  </localization>
  <migration scope="Upgrade" settingsVersion="0">
    <supportedComponents>
      <supportedComponent>
        <assemblyIdentity name="_" version="1.0.0.0" />
        <supportedComponentIdentity xmlns="urn:schemas-microsoft-com:asm.v3" language="*" name="Microsoft-Windows-WPD-BusEnumService" processorArchitecture="*" settingsVersionRange="0" />
        <migXml xmlns="">
          <rules context="System">
            <merge script="MigXmlHelper.SourcePriority()">
              <objectSet>
                <pattern type="Registry">HKLM\SYSTEM\CurrentControlSet\Services\WPDBusEnum\BthActiveConnect [*]</pattern>
              </objectSet>
            </merge>
          </rules>
        </migXml>
      </supportedComponent>
    </supportedComponents>
    <migXml xmlns="">
      <rules context="System">
        <include>
          <objectSet>
            <pattern type="Registry">HKLM\SYSTEM\CurrentControlSet\Services\WPDBusEnum\BthActiveConnect [*]</pattern>
          </objectSet>
        </include>
        <merge script="MigXmlHelper.SourcePriority()">
          <objectSet>
            <pattern type="Registry">HKLM\SYSTEM\CurrentControlSet\Services\WPDBusEnum\BthActiveConnect [*]</pattern>
          </objectSet>
        </merge>
      </rules>
    </migXml>
  </migration>
  <configuration xmlns="urn:schemas-microsoft-com:asm.v3" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
    <configurationSchema>
      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="Microsoft-Windows-PortableDevicesService" targetNamespace="Microsoft-Windows-PortableDevicesService">
        <xsd:element default="3" name="Start_WPDBusEnumService" type="xsd:unsignedInt" wcm:displayName="Service start type for the WPDBusEnum service" wcm:handler="regkey('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WPDBusEnum')" wcm:legacyName="Start" wcm:legacyType="REG_DWORD" wcm:scope="allUsers" wcm:visible="false" />
        <xsd:element default="120" name="BTSearchIntervalOnAC" type="xsd:unsignedInt" wcm:dataOnly="true" wcm:description="BTSearchIntervalOnAC specifies how often the computer will search for other devices using Media Transfer Protocol over Bluetooth  (MTP/BT), while plugged in." wcm:displayName="Specifies how often (in seconds) the computer will search for devices using MTP/BT while plugged in." wcm:handler="regkey('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WPDBusEnum\BthActiveConnect')" wcm:legacyName="ACInterval" wcm:passes="specialize" wcm:scope="allUsers" wcm:visible="true" />
        <xsd:element default="240" name="BTSearchIntervalOnDC" type="xsd:unsignedInt" wcm:dataOnly="true" wcm:description="BTSearchIntervalOnDC specifies how often the computer will search for other devices using Media Transfer Protocol over Bluetooth (MTP/BT), while on battery power." wcm:displayName="Specifies how often (in seconds) the computer will search for devices using MTP/BT while on battery power." wcm:handler="regkey('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WPDBusEnum\BthActiveConnect')" wcm:legacyName="DCInterval" wcm:passes="specialize" wcm:scope="allUsers" wcm:visible="true" />
        <xsd:element default="0" name="RegCacheUpdated" type="xsd:unsignedInt" wcm:dataOnly="true" wcm:displayName="Specifies if the registry cache at EnabledDenyGP is not stale" wcm:handler="regkey('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Storage\RegCacheState')" wcm:legacyName="RegCacheUpdated" wcm:legacyType="REG_DWORD" wcm:scope="allUsers" wcm:visible="true" />
      </xsd:schema>
    </configurationSchema>
  </configuration>
  <mof xmlns="urn:schemas-microsoft-com:asm.v3" name="$(runtime.wbem)\wpdbusenum.mof" />
  <mof xmlns="urn:schemas-microsoft-com:asm.v3" name="$(runtime.wbem)\wpdfs.mof" />
</assembly>