Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
2
-
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
- relates to
-
MODULES-2674 Reboot - Add masterless pre-suite capable of supporting dev workflow
-
- Resolved
-
-
MODULES-2641 DSC - Notify on "RebootRequired"
-
- Resolved
-
- links to