﻿<?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-StorageService" version="10.0.10586.306" processorArchitecture="amd64" language="neutral" buildType="release" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS" />
  <dependency discoverable="no" resourceType="Resources">
    <dependentAssembly>
      <assemblyIdentity name="Microsoft-Windows-StorageService.Resources" version="10.0.10586.306" processorArchitecture="amd64" language="*" buildType="release" publicKeyToken="31bf3856ad364e35" />
    </dependentAssembly>
  </dependency>
  <file name="StorSvc.dll" destinationPath="$(runtime.system32)\" sourceName="StorSvc.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#">JkshpeB2VPFZo+Mk87OKjBGvYZ9htXeaRjZ92Z69AKY=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <file name="StorageUsage.dll" destinationPath="$(runtime.system32)\" sourceName="StorageUsage.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#">VIiIZs05sHWbrdwbwrq7yHp3ESEPwqYN409i8QMJOjU=</dsig:DigestValue>
    </asmv2:hash>
  </file>
  <memberships>
    <categoryMembership>
      <id name="Microsoft-Windows-Storage-Services" version="1.0.0.0" publicKeyToken="31bf3856ad364e35" />
    </categoryMembership>
    <categoryMembership>
      <id name="Microsoft.Windows.Categories.Services" version="10.0.10586.306" publicKeyToken="31bf3856ad364e35" typeName="Service" />
      <categoryInstance subcategory="StorSvc">
        <serviceData name="StorSvc" displayName="@%SystemRoot%\System32\StorSvc.dll,-100" errorControl="normal" imagePath="%SystemRoot%\System32\svchost.exe -k LocalSystemNetworkRestricted" start="demand" type="win32ShareProcess" description="@%SystemRoot%\System32\StorSvc.dll,-101" objectName="LocalSystem" sidType="unrestricted" requiredPrivileges="SeLoadDriverPrivilege">
          <failureActions resetPeriod="18000">
            <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="{4F40006F-B933-4550-B532-2B58CEE614D3}" type="DeviceInterfaceArrival" />
          <serviceTrigger xmlns="urn:schemas-microsoft-com:asm.v3" action="start" subtype="RPC_INTERFACE_EVENT" type="NetworkEndpointEvent">
            <triggerData type="string" value="54B4C689-969A-476f-8DC2-990885E9F562" />
          </serviceTrigger>
          <serviceTrigger xmlns="urn:schemas-microsoft-com:asm.v3" action="start" subtype="RPC_INTERFACE_EVENT" type="NetworkEndpointEvent">
            <triggerData type="string" value="BE7F785E-0E3A-4AB7-91DE-7E46E443BE29" />
          </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="StorSvc" />
      </categoryInstance>
    </categoryMembership>
  </memberships>
  <registryKeys>
    <registryKey keyName="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\StorSvc\Parameters">
      <registryValue name="ServiceDll" valueType="REG_EXPAND_SZ" value="%SystemRoot%\system32\storsvc.dll" />
      <registryValue name="ServiceDllUnloadOnStop" valueType="REG_DWORD" value="0x00000001" />
    </registryKey>
    <registryKey keyName="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense">
      <registryValue name="EnableAooM" 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="StorSvcDescName" value="Enforces group policies for storage devices." />
        <string id="StorSvcDisplayName" value="Storage Service" />
        <string id="StorSvcRegkeyDesc" value="Default SDDL for Windows Resource Protected registry key" />
        <string id="StorSvcRegkeyName" value="WRP_REGKEY_DEFAULT_SDDL" />
      </stringTable>
    </resources>
  </localization>
  <migration settingsVersion="2">
    <supportedComponents>
      <supportedComponent>
        <assemblyIdentity name="_" version="1.0.0.0" />
        <supportedComponentIdentity xmlns="urn:schemas-microsoft-com:asm.v3" language="neutral" name="Microsoft-Windows-StorageService" processorArchitecture="amd64" settingsVersionRange="2" />
      </supportedComponent>
    </supportedComponents>
    <migXml xmlns="">
      <rules context="User">
        <include>
          <objectSet>
            <pattern type="Registry">HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\* [*]</pattern>
          </objectSet>
        </include>
      </rules>
      <rules context="System">
        <include>
          <objectSet>
            <pattern type="Registry">HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\* [*]</pattern>
          </objectSet>
        </include>
        <exclude>
          <objectSet>
            <pattern type="Registry">HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense [EnableAooM]</pattern>
          </objectSet>
        </exclude>
      </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-StorageService" targetNamespace="Microsoft-Windows-StorageService">
        <xsd:element default="3" name="Start_StorageService" type="xsd:unsignedInt" wcm:displayName="Service start type for the Storage service" wcm:handler="regkey('HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\StorSvc')" wcm:legacyName="Start" wcm:legacyType="REG_DWORD" wcm:scope="allUsers" wcm:visible="false" />
      </xsd:schema>
    </configurationSchema>
  </configuration>
</assembly>