-
Notifications
You must be signed in to change notification settings - Fork 15
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
Error when getting updates on older windows instance #19
Comments
Yet this code has been tested on multiple Windows Server 2012 setups (actually, it was tested from Server 2008 up to 2019). I suppose you did run this code as admin ? As for the suggestion, I'm all in for a PR. If you have a viable solution, I'd be happy to apply it. |
Hi @deajan Thanks for the quick response, this is a nice observation, do you know what I can do to check why my update base is corrupted? I'm running this code on an EC2 instance. My current issue is that when I'm calling the main |
@deajan Something weird is going on, when I run this PowerShell command it works 🤔
I did a bit more digging and I could not find why it is not working but I did find that |
After these, there's the windows update repair tool from MS.
That's up to you to code this, since my function is expected to fail on damaged systems. I prefer knowing that updates system is broken than getting half empty responses
No, I won't change an implementation of a software that has been tested on hundreds of servers, just to satisfy one which isn't working. |
@deajan Thanks for the detailed answer, I executed all the commands and also rebooted the instance but still the It could be something that only happens in my instance (hopefully). I'm willing to create a PR changing the implementation but if you prefer not to do so I might implement it internally and not use |
Simple yet elegant solution here, implement |
Will you willing to do so? |
Didn't you say you'd be willing to make a PR ? ^^ |
I did, I can work on this next week, Tx 😃 |
Okay, I'll happily merge. |
I'm trying to get the Windows updates on Windows Server 2012 and getting this error:
I think that you need to handle errors in
get_windows_updates_com
so we will at least get the updates from WMI and registry, I will be happy to do a PR if it is acceptable solution by youThe text was updated successfully, but these errors were encountered: