home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / WindowsServerTrial / server.iso / sources / install.wim / 5 / Windows / PLA / Rules / Rules.System.Finale.xml < prev    next >
Extensible Markup Language  |  2006-09-18  |  7KB  |  164 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?Copyright (c) Microsoft Corporation. All rights reserved.?>
  3. <Rules>
  4.   <Group name="$(GroupCleanup)">
  5.     <Rule name="$(RuleRemovePropertiesForHwOnly)" enabled="true">
  6.       <Step select="/Report/Section/Table/Summary" sortType="all">
  7.         <Exists>
  8.           <Otherwise>
  9.             <Delete select="."/>
  10.           </Otherwise>
  11.         </Exists>
  12.       </Step>
  13.       <Step select="/Report/Section[@name='SystemConfig']/Table/Item/Item[not(*/@warning)]" sortType="all">
  14.         <Exists>
  15.           <Otherwise>
  16.             <Delete select="Item[Data[@name='managementObjectsProperty']='ClassGuid']"/>
  17.             <Delete select="Item[Data[@name='managementObjectsProperty']='PNPDeviceID']"/>
  18.             <Delete select="Item[Data[@name='managementObjectsProperty']='Caption']"/>
  19.           </Otherwise>
  20.         </Exists>
  21.       </Step>
  22.       <Step select="/Report/Section[@name='SystemConfig']/Table/Item/Item[not (*/@warning)][Item[Data[@name='managementObjectsProperty']='Status' and Data[@name='managementObjectsValue']='OK']]" sortType="all">
  23.         <Exists>
  24.           <Otherwise>
  25.             <Delete select="Item[Data[@name='managementObjectsProperty']='ConfigManagerUserConfig']"/>
  26.             <Delete select="Item[Data[@name='managementObjectsProperty']='Manufacturer']"/>
  27.             <Delete select="Item[Data[@name='managementObjectsProperty']='Service']"/>
  28.             <Delete select="Item[Data[@name='managementObjectsProperty']='Status']"/>
  29.           </Otherwise>
  30.         </Exists>
  31.       </Step>
  32.       <Step select="/Report">
  33.         <Exists>
  34.           <Otherwise>
  35.             <Delete select="Section/Table/Item/Item/Item[Data[@name='managementObjectsProperty']='DeviceID']"/>
  36.           </Otherwise>
  37.         </Exists>
  38.       </Step>
  39.     </Rule>
  40.     <Rule name="$(RuleDeleteNoWarningTables)" enabled="true">
  41.       <Step select="/Report/Section/Table[@name='configPnp']">
  42.         <Exists>
  43.           <When expression="count(Item/Data[@warning]) = 0">
  44.             <Delete select="."/>
  45.           </When>
  46.         </Exists>
  47.       </Step>
  48.       <Step select="/Report/Section/Table[@name='configVideo']">
  49.         <Exists>
  50.           <When expression="count(Item/Data[@warning]) = 0">
  51.             <Delete select="."/>
  52.           </When>
  53.         </Exists>
  54.       </Step>
  55.       <Step select="/Report/Section/Table[@name='configPower']">
  56.         <Exists>
  57.           <When expression="count(Item/Data[@warning]) = 0">
  58.             <Delete select="."/>
  59.           </When>
  60.         </Exists>
  61.       </Step>
  62.       <Step select="/Report/Section/Table[@name='configIdeChannel']">
  63.         <Exists>
  64.           <When expression="count(Item/Data[@warning]) = 0">
  65.             <Delete select="."/>
  66.           </When>
  67.         </Exists>
  68.       </Step>
  69.       <Step select="/Report/Section/Table[@name='inclusiveTrans']">
  70.         <Exists>
  71.           <Otherwise>
  72.             <Delete select="."/>
  73.           </Otherwise>
  74.         </Exists>
  75.       </Step>
  76.       <Step select="/Report/Section/Table[@name='exclusiveTrans']">
  77.         <Exists>
  78.           <Otherwise>
  79.             <Delete select="."/>
  80.           </Otherwise>
  81.         </Exists>
  82.       </Step>
  83.     </Rule>
  84.     <Rule name="$(RuleSuccessMessageNotNeeded)" enabled="true">
  85.       <Step select="/Report">
  86.         <Exists>
  87.           <When expression="count(//*[@warning]) = 0">
  88.             <Variable name="internalruleindex" expression="{internalruleindex} + 1"/>
  89.             <Variable name="severitymsg">Information</Variable>
  90.             <Variable name="msgstring">$(LOC_AllIsWell)</Variable>
  91.             <Warning tag="ruleSuccessMessage_84_{internalruleindex}" select="." table="/Report/Section[@name='advice']/Table[@name='info']">
  92.               <Item>
  93.                 <Data name="severity" img="info" link="ruleSuccessMessage_84_{internalruleindex}" message="ruleSuccessMessage_84_{internalruleindex}" translate="value">{severitymsg}</Data>
  94.                 <Data name="warning" message="ruleSuccessMessage_84_{internalruleindex}">{msgstring}</Data>
  95.               </Item>
  96.             </Warning>
  97.           </When>
  98.         </Exists>
  99.       </Step>
  100.     </Rule>
  101.     <Rule name="$(RuleRemoveBinaryRegistry)" enabled="true">
  102.       <Step select="/Report/Section/Table/Item/Item[Data[@name='registryKeysType']='{binaryregkeytype}']" sortType="all">
  103.         <Exists>
  104.           <Otherwise>
  105.             <Delete select="."/>
  106.           </Otherwise>
  107.         </Exists>
  108.       </Step>
  109.     </Rule>
  110.   </Group>
  111.   <Group name="$(GroupDataCheck)">
  112.     <Rule name="$(RuleEmptyTables)" enabled="true">
  113.       <Step select="/Report">
  114.         <Exists>
  115.           <Otherwise>
  116.             <Delete select="/Report/Section/Table[count(Item)=0]"/>
  117.           </Otherwise>
  118.         </Exists>
  119.       </Step>
  120.     </Rule>
  121.   </Group>
  122.   <Group name="$(GroupNotify)">
  123.     <Rule name="$(RuleNotify)" enabled="true">
  124.       <Step select="/Report">
  125.         <Variable name="computer" expression="Section[@name='tracerptHeader']/Table[@name='client']/Item/Data[@name='computer']"/>
  126.         <Variable name="info" expression="count(warnings/warning[@type='info'])"/>
  127.         <Variable name="warn" expression="count(warnings/warning[@type='warning' or not(@type)] )"/>
  128.         <Variable name="error" expression="count(warnings/warning[@type='error'] )"/>
  129.         <Exists>
  130.           <When expression="{error} > 0">
  131.             <Variable name="type">error</Variable>
  132.           </When>
  133.           <When expression="{warn} > 0">
  134.             <Variable name="type">warning</Variable>
  135.           </When>
  136.           <Otherwise>
  137.             <Variable name="type">info</Variable>
  138.           </Otherwise>
  139.         </Exists>
  140.         <Notify type="{type}">$(Warnings)</Notify>
  141.       </Step>
  142.     </Rule>
  143.   </Group>
  144.   <StringTable>
  145.     <String ID="GroupDataCheck">Invalid Data Sets</String>
  146.     <String ID="GroupNotify">Notification</String>
  147.     <String ID="RuleNotify">Notification</String>
  148.     <String ID="Warnings">
  149. Computer: {computer}
  150. Error: {error}
  151. Warning: {warn}
  152. Information: {info}
  153. Report: {_document}
  154.     </String>
  155.     <String ID="RuleEmptyTables">Delete Empty Tables</String>
  156.     <String ID="GroupCleanup" loc.comment="Only used in WDC Console">Report Cleanup</String>
  157.     <String ID="RuleDeleteNoWarningTables" loc.comment="Only used in WDC Console">Delete Events Table if it has no warnings</String>
  158.     <String ID="RuleSuccessMessageNotNeeded" loc.comment="Only used in WDC Console">Take out message for success case</String>
  159.     <String ID="RuleRemoveBinaryRegistry" loc.comment="Only used in WDC Console">Remove all binary key data from registry tables</String>
  160.     <String ID="LOC_AllIsWell" loc.comment="Message when no error, warning or informational is found">No problems found on this computer.</String>
  161.     <String ID="RuleRemovePropertiesForHwOnly" loc.comment="Insert rule name seen in WPDC">Remove Unnecessary WMI Properties</String>
  162.   </StringTable>
  163. </Rules>
  164.