Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-2658

Reboot - Should detect DSC LCMState / RebootNodeIfNeeded as pending reboot condition

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      If DSC has scheduled a pending reboot, this should affect the reboot module pending status.

      A simple way to check is with the following Ruby code that uses COM / WMI:

      require 'win32ole'
       
      root = 'winmgmts:\\\\.\\root\\Microsoft\\Windows\\DesiredStateConfiguration'
      dsc = WIN32OLE.connect(root)
       
      lcm = dsc.Get('MSFT_DSCLocalConfigurationManager')
       
      config = lcm.ExecMethod_('GetMetaConfiguration')
      lcm_state = config.MetaConfiguration.LCMState
      reboot_needed = config.MetaConfiguration.RebootNodeIfNeeded
       
      puts lcm_state
      puts reboot_needed
      

      Attachments

        Issue Links

          Activity

            People

              ryan.gard Ryan Gard
              ethan Ethan Brown
              Ryan Gard Ryan Gard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support