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

running xHotfix when a WindowsUpdate restart is pending hangs the resource #1

Open
TravisEz13 opened this issue Apr 22, 2015 · 3 comments
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.

Comments

@TravisEz13
Copy link
Contributor

Repro Steps

do something in windows update which triggers Windows Update to need a restart
run a configuration that use xHotFix and uninstalls a hotfix

Expected

it should not hang

Actual

it hangs

@mephisto275
Copy link

I've ran into this issue too.
This is what the error looks like:
image

The issue seems to be coming from line 177 in MSFT_xWindowsUpdate.psm1. For some reason it errors when trying to access $LASTEXITCODE

@KarolKaczmarek KarolKaczmarek added the bug The issue is a bug. label Sep 15, 2015
@TravisEz13
Copy link
Contributor Author

Notes to self, this API can be used to check if a reboot is pending with WUA: https://msdn.microsoft.com/en-us/library/windows/desktop/aa386098(v=vs.85).aspx

@TravisEz13
Copy link
Contributor Author

One possible workaround to this issue to to use xPendingReboot before and after this configuration. Before to prevent this issue. after to deal with issue #2

@kwirkykat kwirkykat added the help wanted The issue is up for grabs for anyone in the community. label Aug 19, 2016
gaelcolas pushed a commit that referenced this issue Mar 25, 2019
* Merge pull request #1 from PowerShell/dev

updates

* Fix to Verbose Statement

* Second instance of wrong variable found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

4 participants