Vista SP1 Installations Deployed Using Operating System Deployment Cannot Hibernate RRS feed

  • General discussion

  • The following documentation may prove useful for OSD users.


    Vista SP1 Installations Deployed Using Operating System Deployment Cannot Hibernate



    When the Configuration Manager 2007 operating system deployment feature is used to deploy a Vista SP1 image, a new boot configuration data (BCD) store is created using the BCD template.  Configuration Manager 2007 explicitly creates the Boot Manger and Operating System objects from the BCD template, but allows the Resume object to be created implicitly by Windows Vista when it goes through mini-setup.  Vista SP1 correctly generates the Resume object during mini-setup but the associated Resume settings objects are not generated. Because there are no Resume settings objects, hibernate functionality does not work.



    To resolve this issue, run the following script on Vista SP1 computers deployed using Configuration Manager 2007 operating system deployment to create the missing Resume settings objects.  To run the script type the following at a command prompt

    cscript.exe /nologo scriptname.vbs


    This script can be deployed in two scenarios:

    ·         Run as part of the Vista SP1 deployment:  Incorporate the script into the operating system deployment task sequence as a Run Command Line step once the new operating system is installed.  

    ·         Run after Vista SP installation:  Incorporate the script into a software distribution package/program and then advertise it to existing computers previously deployed with Vista SP1 using Configuration Manager 2007 SP1. 


    Code Snippet

    ' Connect to WMI

    set oLocator = CreateObject( "WbemScripting.SWbemLocator" )

    set oRootWMI = oLocator.ConnectServer( ".", "root\wmi" )

    oRootWMI.Security_.ImpersonationLevel = 3


    ' Connect to BCD

    set oBCD = GetObject( "winmgmts:{impersonationlevel=Impersonate,(Backup,Restore)}!root/wmi:BcdStore")

    if Err.number <> 0 then

        WScript.Echo "ERROR: Failed to connect to BCD"


    end if


    ' Open the system store

    if not oBCD.OpenStore( "", oBcdStore ) then

        WScript.Echo "ERROR: Failed to open the system BCD store"


    end if

    set oBCD = nothing


    const ResumeLoaderSettingsBcdObject = "{1afa9c49-16ab-4a5c-901b-212802da9460}"

    const GlobalSettingsBcdObject = "{7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}"


    ' Check to see if the {resumeloadersettings} object already exists

    if oBcdStore.OpenObject( ResumeLoaderSettingsBcdObject, objWBM ) then

        WScript.Echo "Resume Loader Settings object already exists in BCD"

        WScript.Echo "No changes have been made to the system"


    end if


    WScript.Echo "Creating new {resumeloadersettings} object..."

    if not oBcdStore.CreateObject( ResumeLoaderSettingsBcdObject, &h20200004, oResumeSettings) then

        WScript.Echo "ERROR: Failed to create the BCD object"

    end if


    if not oResumeSettings.SetObjectListElement(&h14000006, Array(GlobalSettingsBcdObject )) then

        WScript.Echo "ERROR: Failed to set the Inherit element"

    end if



    WScript.Echo "Finished updating BCD"



     Nathan Barnett

    MSD UA


    This posting is provided “AS IS” with no warranties and confers no rights.


    Friday, July 11, 2008 9:29 PM

All replies

  • Nathan, you're a life saver, thank you!

    Why this hasn't actually appeared as a TechNet article is a little concerning. I can only assume this will be fixed in a service pack or perhaps as a Task Sequence step in MDT 2010?


    Friday, February 6, 2009 9:20 AM
  • Is this only valid for Vista SP1 or Vista "RTM" has this issue too? Just want to know this, because I had many complaints about this in the past
    Thursday, April 2, 2009 8:11 PM