locked
Retain and Apply Changes to system then turn WDP back to Remove changes after Reboot RRS feed

Answers

  • Run this script:

    Commit.vbs

    Code Snippet
    set dateTime = CreateObject ("WBemScripting.SWbemDateTime")
    Const WDP_MODE_COMMIT = 2
     
    ' Identify the computer to manage
    strComputer= "."
      
    set objWbemServices = GetObject ("winmgmts:\\" & strComputer & "\root\wmi")
    set setWdpObjects   = objWbemServices.ExecQuery ("SELECT * FROM WDP_Control")
     
    for each objWdp in setWdpObjects
     objWdp.CurrentMode  = WDP_MODE_COMMIT
     objWdp.Put_
    next


    And at the same time change this reg key
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Windows SteadyState\Parameters] 
    "RestoreDiscardModeNextBoot"=dword:00000001


    All settings will be saved when you reboot but after the reboot it will discard everything again.
    source:
    http://social.technet.microsoft.com/Forums/en-US/windowssteadystate/thread/61482160-279b-47c1-ac47-a6b7dd191d99
    • Marked as answer by Sean Zhu - Thursday, December 10, 2009 5:27 AM
    Tuesday, December 8, 2009 7:54 AM