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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      2
    • Sprint:
      Windows 2015-10-07, Windows 2015-10-21

      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support