Share via


4.2.13 PowerOptions XML Example

The following is an example of a PowerOptions configuration XML. The XML in this example sets the behavior of the power button and sleep button to shut down, and it sets the default behavior when the lid is closed to standby. It also redefines the "Home/Office Desk" power scheme to change the minutes allocated to various states when connected to AC power and when running on batteries.

 <?xml version="1.0" encoding="utf-8"?>
 <PowerOptions 
           clsid="{7B0F9381-C3B8-4525-8167-87349B671D94}" 
           disabled="1">
   <GlobalPowerOptions 
           clsid="{46D0DCC4-FC14-48fb-829B-854868C7DC16}" 
           name="Power Options (Windows XP)" 
           changed="2007-07-06 20:48:38" 
           uid="{9DFDDD5C-C66B-429B-9C75-2860C2CF9BC3}">
     <Filters>
       <FilterOs 
           hidden="1" 
           not="1" 
           bool="AND" 
           class="NT" 
           version="VISTA" 
           type="NE" 
           edition="NE" 
           sp="NE"/>
     </Filters>
     <Properties 
           showIcon="0" 
           promptPassword="0" 
           enableHibernation="0" 
           closeLid="STAND_BY" 
           pressPowerBtn="SHUT_DOWN" 
           pressSleepBtn="SHUT_DOWN"/>
   </GlobalPowerOptions>
   <PowerScheme 
           clsid="{DE828AFA-7E71-480e-8081-5447CBE87754}" 
           name="Home/Office Desk" 
           image="2" 
           changed="2007-07-06 20:48:53" 
           uid="{45723D7A-E831-4127-844C-FF524411CDC5}">
     <Filters>
       <FilterOs 
           hidden="1" 
           not="1" 
           bool="AND" 
           class="NT" 
           version="VISTA" 
           type="NE" 
           edition="NE" 
           sp="NE"/>
     </Filters>
     <Properties 
           action="U"  
           name="Home/Office Desk" 
           default="1" 
           monitorAc="20" 
           monitorDc="5" 
           hardDiskAc="0" 
           hardDiskDc="10" 
           standbyAc="0" 
           standbyDc="5" 
           hibernateAc="240" 
           hibernateDc="20"/>
   </PowerScheme>
  
  
 <GlobalPowerOptionsV2 
          clsid="{2B130A62-fc14-4572-91C3-5435C6A0C3FC}" 
          name="Power Plan (Windows Vista)" 
          image="2" 
          changed="2008-05-15 01:33:21" 
          uid="{8E248E6D-9F4A-4382-A24C-30EB44A9E0A6}">
     <Filters>
       <FilterOs 
          hidden="1" 
          not="0" 
          bool="AND" 
          class="NT" 
          version="VISTA" 
          type="NE" 
          edition="NE" 
          sp="NE"/>
       <FilterOs 
          hidden="1" 
          not="0" 
          bool="OR" 
          class="NT" 
          version="2K8" 
          type="NE" 
          edition="NE" 
          sp="NE"/>
       <FilterOs 
          hidden="1" 
          not="0" 
          bool="OR" 
          class="NT" 
          version="WIN7" 
          type="NE" 
          edition="NE" 
          sp="NE"/>
     </Filters>
     <Properties 
        action="U" 
        nameGuid="{8C5E7FDA-E8BF-4A96-9A85-A6E23A8C635C}" 
        default="0" 
        requireWakePwdAC="YES" 
        requireWakePwdDC="YES" 
        turnOffHDAC="20" 
        turnOffHDDC="20" 
        sleepAfterAC="0" 
        sleepAfterDC="0" 
        allowHybridSleepAC="OFF" 
        allowHybridSleepDC="OFF" 
        hibernateAC="0" 
        hibernateDC="0" 
        lidCloseAC="SLEEP" 
        lidCloseDC="SLEEP" 
        pbActionAC="SHUT_DOWN" 
        pbActionDC="SHUT_DOWN" 
        strtMenuActionAC="DO_NOTHING" 
        strtMenuActionDC="DO_NOTHING" 
        linkPwrMgmtAC="OFF" 
        linkPwrMgmtDC="OFF" 
        procStateMinAC="100" 
        procStateMinDC="5" 
        procStateMaxAC="100" 
        procStateMaxDC="100" 
        displayOffAC="15" 
        displayOffDC="10" 
        adaptiveAC="ON" 
        adaptiveDC="ON" 
        critBatActionAC="DO_NOTHING" 
        critBatActionDC="HIBERNATE" 
        lowBatteryLvlAC="10" 
        lowBatteryLvlDC="10" 
        critBatteryLvlAC="5" 
        critBatteryLvlDC="5" 
        lowBatteryNotAC="OFF" 
        lowBatteryNotDC="OFF" 
        lowBatteryActionAC="DO_NOTHING" 
        lowBatteryActionDC="DO_NOTHING"/>
 </GlobalPowerOptionsV2>
 </PowerOptions>