mgajda83 / PSWindowsUpdate

This module contain cmdlets to manage Windows Update Client.
MIT License
288 stars 25 forks source link

Module stuck when used with Get-WUHistory #4

Closed PCParker closed 10 months ago

PCParker commented 2 years ago

When used with Get-WUHistory command I got the Updates History but can not exit from thet state.

yllekz commented 2 years ago

I also experience this. Particularly Get-WUHistory|Out-GridView - if you run this, you often have to close the PowerShell Window outright as it often won't terminate. Seems like a race condition.

bjoernf73 commented 2 years ago

Props to you, @mgajda83, for your great modules! I really appreciate your work!

On W11 21H2, this happens just by running Get-WUHistory alone, as seen below. I believe something crashes, because ctrl-c is not possible - as @yllekz and @PCParker points out, you'll have to close PS - the session just becomes unresponsive. Og course, this is not a dealbreaker for automation, since the function is informational, but anyways:

image image
mgajda83 commented 10 months ago

Fixed in latest version. Sorry for delay but better late than never ;)