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

Offline update code doesn't seem to work. #229

Open
tsherrington opened this issue Dec 13, 2023 · 3 comments
Open

Offline update code doesn't seem to work. #229

tsherrington opened this issue Dec 13, 2023 · 3 comments

Comments

@tsherrington
Copy link

When I run Get-KbUpdate -Since (Get-Date).AddDays(-30) -Architecture x64 | Out-GridView -Passthru | Save-KbUpdate -Path C:\temp\WindowsUpdates
I get the error "WARNING: [21:04:35][Save-KbUpdate] You must specify a KB name or pipe in results from Get-KbUpdate"

If I run Get-KbUpdate -Since (Get-Date).AddDays(-30) -Architecture x64 | Out-GridView I don't get any results, so I assume the issue is that it isn't finding anything.

What am I doing wrong?

@argonautofpain
Copy link

I found setting the (Get-Date).AddDays(-30) to something like -180 worked to find updates. This makes me question if all the updates are pulling.

@Hitman86R
Copy link

This happens because the local database is not updated and there is no way to update it without modifying the Get-kbupdate file, I wrote the solution in this post : #223

@c-seneca
Copy link

c-seneca commented Dec 11, 2024

This happens because the local database is not updated and there is no way to update it without modifying the Get-kbupdate file, I wrote the solution in this post : #223

Thank you for this. With that change, I can update the local DB.

Once the DB is updated, I'm not able to use save-kbupdate though:

PS C:\temp> Get-KbUpdate -Since (Get-Date).AddDays(-30) -Architecture x64 | Save-KbUpdate -Path C:\temp
Save-KbUpdate : Cannot bind argument to parameter 'Link' because it is null.
At line:1 char:65
+ ... et-Date).AddDays(-30) -Architecture x64 | Save-KbUpdate -Path C:\temp
+ CategoryInfo : InvalidData: (@{UpdateId=01b5...rsedes=; Link=}:PSObject) [Save-KbUpdate], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Save-KbUpdate

Save-KbUpdate : Cannot bind argument to parameter 'Link' because it is null.
At line:1 char:65
+ ... et-Date).AddDays(-30) -Architecture x64 | Save-KbUpdate -Path C:\temp
+ CategoryInfo : InvalidData: (@{UpdateId=03b8...rsedes=; Link=}:PSObject) [Save-KbUpdate], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Save-KbUpdate

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

4 participants