none
Windows Provisioning to configure power settings

    Question

  • I want to create a provisioning package (PPKG) to modify certain power settings. I read through the MSDN documentations and understand that I need to manually create an "Answer file" XML in order to generate the PPKG via WICD commandline. However there is no information regarding the needed schema for this "Answer file" at all. There is 1 single example for Sleep settings in the documentation here: https://msdn.microsoft.com/en-us/library/windows/hardware/mt608264%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

    Where can I find the other XML required tags and schema for the other setting subgroups? I tried using the tags of what the Sleep example used, but getting errors from WICD, saying I'm missing required child node. So clearly there is some additional XML tag/field. In particular I'm looking at the "Processor" setting subgroup.  Thanks

    Wednesday, March 29, 2017 7:24 PM

All replies

  • Hi Andrew,

    No, there is no other XML tag and schema.

    https://msdn.microsoft.com/en-us/library/windows/hardware/mt608264(v=vs.85).aspx

    Check the following node and compare it with your own XML file

    <?xml version="1.0" encoding="utf-8"?> 
    <WindowsCustomizatons> 
      <PackageConfig xmlns="urn:schemas-Microsoft-com:Windows-ICD-Package-Config.v1.0"> 
        <ID>{7e5c6cb3-bd16-4c1a-aacb-98c9151d5f20}</ID>  <!-- ID needs to be be unique GUID for the package --> 
        <Name>CustomOEM.Power.Settings.Control</Name> 
        <Version>1.0</Version> 
        <OwnerType>OEM</OwnerType> 
      </PackageConfig> 
    
      <Settings xmlns="urn:schemas-microsoft-com:windows-provisioning"> 
        <Customizations> 
          <Common> 
              <Power> 
                <Policy>  
                  <Settings> 
                    <Sleep> 
                      <SchemePersonality> 
                        <Default SchemeAlias="Balanced"> 
                          <Setting>   
                          <!-- Duration of time after sleep that the system automatically wakes and 
                               enters hibernate in seconds --> 
                             <HibernateTimeout> 
                              <AcValue>1800</AcValue> <!-- 30 minutes --> 
                              <DcValue>1800</DcValue> <!-- 30 minutes --> 
                            </HibernateTimeout>      
                          </Setting> 
                        </Default> 
                       </SchemePersonality> 
                     </Sleep> 
                     <Misc>                              
                       <SchemePersonality> 
                         <Default SchemeAlias="Balanced"> 
                           <Setting> 
                           <!-- Enables/Disables only WiFi connection during standby --> 
                             <AllowWifiInStandby> 
                               <AcValue>0</AcValue> 
                               <DcValue>0</DcValue> 
                             </AllowWifiInStandby>   
                           </Setting> 
                         </Default> 
                       </SchemePersonality> 
                      </Misc> 
                 </Settings> 
               </Policy> 
            </Power> 
          </Common> 
        </Customizations> 
      </Settings> 
    </WindowsCustomizatons>  


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, March 30, 2017 7:26 AM
    Moderator
  • @Karen_Hu, I got that, it's in the same link I posted. The power settings I want to change definitely require additional tags, as error messages from WICD indicated. I did trial-and-error and managed to create an XML for the power settings I need, that can be built as PPKG on WICD commandline without error/complain. But the PPKG provisioning package still failed to install on target system with error code 0x800700b7. With the lack of XML documentation and any useful error log, it's really impossible to use this new Provisioning framework unless the settings you need are in the WICD GUI.
    Thursday, March 30, 2017 4:26 PM
  • Andrew,

    The power settings are not visible in the Windows ICD UI. All available groups are as below:

    Policy\Settings which includes the following subgroups:

    AdaptivePowerBehavior

    Processor

    Battery

    Button

    Display

    Disk

    EnergySaver

    PCIExpress

    Sleep

    Misc

    If you need other tabs, no way.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, April 4, 2017 7:17 AM
    Moderator