Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting Reboot Pending From Install/Uninstall-WindowsFeature #4

Open
DarwinJS opened this issue May 16, 2019 · 2 comments
Open

Detecting Reboot Pending From Install/Uninstall-WindowsFeature #4

DarwinJS opened this issue May 16, 2019 · 2 comments

Comments

@DarwinJS
Copy link

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.

@bcwilhite
Copy link
Owner

@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.

@DarwinJS
Copy link
Author

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants