PendingReboot icon indicating copy to clipboard operation
PendingReboot copied to clipboard

Detecting Reboot Pending From Install/Uninstall-WindowsFeature

Open DarwinJS opened this issue 5 years ago • 2 comments

This case does not seem to be handled. I have done the research on how to detect it, but it is based on greping file contents or running Uninstall-feature against something innocuous. I'm not sure if that is in scope for this code since everything in it is currently doable by remote registry calls. Can you please comment on approach and I will know whether I have the time to do a pull request.

DarwinJS avatar May 16 '19 16:05 DarwinJS

@DarwinJS I haven't researched it extensively, but is it possible to query the contents of said file via WMI/CIM call and grep/select-string from there? To keep the function consistent, if a WMI/CIM call will allow file content access, that might be able to work. I would like to know more about what you found.

bcwilhite avatar May 20 '19 14:05 bcwilhite

I actually blogged on a compacted pending reboot test today and in it I mentioned the additional use case: https://cloudywindows.io/post/super-compact-devops-ish-pending-reboot-test-for-the-rebootiest-operating-system-in-the-cloud/

DarwinJS avatar May 22 '19 00:05 DarwinJS