<?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." xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <assemblyIdentity name="Microsoft-Windows-WPD-BusEnumService" version="10.0.26100.8521" 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.26100.8521" processorArchitecture="amd64" language="*" buildType="release" publicKeyToken="31bf3856ad364e35" />
    </dependentAssembly>
  </dependency>
  <file name="wpdbusenum.mof" destinationPath="$(runtime.wbem)\" sourceName="wpdbusenum.mof" importPath="$(build.nttree)\" sourcePath=".\">
    <securityDescriptor name="WRP_FILE_DEFAULT_SDDL" />
    <asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
      <dsig:DigestValue>0Jdn/oBav53CXRyDEq8FTsWd9WUrg27euAp/NY/Et9I=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <file name="wpdfs.mof" destinationPath="$(runtime.wbem)\" sourceName="wpdfs.mof" importPath="$(build.nttree)\" sourcePath=".\">
    <securityDescriptor name="WRP_FILE_DEFAULT_SDDL" />
    <asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
      <dsig:DigestValue>qvU6TJXNAO8oE8NoECkf1Pc0MuKPZH/Ut1d31gxa7H0=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <file name="wpdbusenum.dll" destinationPath="$(runtime.system32)\" sourceName="wpdbusenum.dll" importPath="$(build.nttree)\" sourcePath=".\">
    <securityDescriptor name="WRP_FILE_DEFAULT_SDDL" />
    <asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
      <dsig:DigestValue>6HF4QNsNy3pzLDX+ncubUU1ssoJGTnCXvjgHhkCZ/7U=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <memberships>
    <categoryMembership>
      <id name="Microsoft.Windows.Categories.Services" version="10.0.26100.8521" publicKeyToken="31bf3856ad364e35" typeName="Service" />
      <categoryInstance>
        <serviceData name="WPDBusEnum" displayName="@%SystemRoot%\system32\wpdbusenum.dll,-100" errorControl="normal" start="demand" type="win32ShareProcess" description="@%SystemRoot%\system32\wpdbusenum.dll,-101" dependOnService="RpcSs" imagePath="%SystemRoot%\system32\svchost.exe -k LocalSystemNetworkRestricted" objectName="LocalSystem" requiredPrivileges="SeShutdownPrivilege,SeAuditPrivilege,SeTcbPrivilege,SeChangeNotifyPrivilege,SeCreateGlobalPrivilege,SeCreatePermanentPrivilege,SeImpersonatePrivilege,SeLoadDriverPrivilege" sidType="unrestricted">
          <serviceTrigger action="start" subtype="{53F56307-B6BF-11D0-94F2-00A0C91EFB8B}" type="DeviceInterfaceArrival" />
          <serviceTrigger action="start" subtype="{C1E9BC6D-1DAE-421A-9369-CC7FF0D6E359}" type="DeviceInterfaceArrival" />
          <serviceTrigger action="start" subtype="{6AC27878-A6FA-4155-BA85-F98F491D4F33}" type="DeviceInterfaceArrival" />
          <serviceTrigger action="start" subtype="WNF_STATE_CHANGE" type="WnfStateEvent">
            <triggerData type="binary" value="7518bca328009213" />
          </serviceTrigger>
          <serviceTrigger action="start" subtype="WNF_STATE_CHANGE" type="WnfStateEvent">
            <triggerData type="binary" value="7570bea328009213" />
          </serviceTrigger>
          <serviceTrigger action="start" subtype="MACHINE_POLICY_PRESENT" type="GroupPolicyChange" />
          <serviceTrigger action="start" subtype="USER_POLICY_PRESENT" type="GroupPolicyChange" />
          <serviceTrigger action="start" subtype="{199FE037-2B82-40A9-82AC-E1D46C792B99}" type="Custom">
            <triggerData type="kwAny" value="0x0000000000000001" />
          </serviceTrigger>
          <serviceTrigger action="start" subtype="WNF_STATE_CHANGE" type="WnfStateEvent">
            <triggerData type="binary" value="75b0bea328009213" />
          </serviceTrigger>
          <serviceTrigger action="start" subtype="WNF_STATE_CHANGE" type="WnfStateEvent">
            <triggerData type="binary" value="75b8bea328009213" />
          </serviceTrigger>
          <serviceTrigger action="start" subtype="WNF_STATE_CHANGE" type="WnfStateEvent">
            <triggerData type="binary" value="75c0bea328009213" />
          </serviceTrigger>
          <serviceTrigger action="start" subtype="WNF_STATE_CHANGE" type="WnfStateEvent">
            <triggerData type="binary" value="75c8bea328009213" />
          </serviceTrigger>
          <failureActions resetPeriod="86400">
            <actions>
              <action delay="120000" type="restartService" />
              <action delay="300000" type="restartService" />
              <action delay="0" type="none" />
            </actions>
          </failureActions>
        </serviceData>
      </categoryInstance>
    </categoryMembership>
    <categoryMembership>
      <id name="Microsoft.Windows.Categories" version="1.0.0.0" publicKeyToken="365143bb27e7ac8b" typeName="SvcHost" />
      <categoryInstance subcategory="LocalSystemNetworkRestricted">
        <serviceGroup position="last" serviceName="WPDBusEnum" />
      </categoryInstance>
    </categoryMembership>
  </memberships>
  <registryKeys>
    <registryKey keyName="HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\WPDBusEnum">
      <overridable name="Start" scope="Microsoft" type="REG_DWORD" />
    </registryKey>
    <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>
  <asmv3:configuration xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
    <asmv3:configurationSchema>
      <xsd:schema 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>
    </asmv3:configurationSchema>
  </asmv3:configuration>
  <mof name="$(runtime.wbem)\wpdbusenum.mof" />
  <mof name="$(runtime.wbem)\wpdfs.mof" />
  <trustInfo>
    <security>
      <accessControl>
        <securityDescriptorDefinitions>
          <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)(A;CI;GR;;;S-1-15-3-1024-1065365936-1281604716-3511738428-1654721687-432734479-3232135806-4053264122-3456934681)" operationHint="replace" />
          <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)(A;;GRGX;;;S-1-15-2-2)S:(AU;FASA;0x000D0116;;;WD)" operationHint="replace" description="Default SDDL for Windows Resource Protected file" />
        </securityDescriptorDefinitions>
      </accessControl>
    </security>
  </trustInfo>
  <localization>
    <resources culture="en-US">
      <stringTable>
        <string id="BusEnumDisplayName" value="WPD Bus Enumerator Service" />
        <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="BusEnumRegkeyName" value="WRP_REGKEY_DEFAULT_SDDL" />
        <string id="BusEnumRegkeyDesc" value="Default SDDL for Windows Resource Protected registry key" />
      </stringTable>
    </resources>
  </localization>
  <migration scope="Upgrade" settingsVersion="0">
    <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>
    <supportedComponents>
      <supportedComponent>
        <assemblyIdentity name="_" version="1.0.0.0" />
        <supportedComponentIdentity language="*" name="Microsoft-Windows-WPD-BusEnumService" processorArchitecture="*" settingsVersionRange="0" xmlns="urn:schemas-microsoft-com:asm.v3" />
        <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>
  </migration>
</assembly>