topgrade-rs / topgrade

Upgrade all the things
GNU General Public License v3.0
1.7k stars 113 forks source link

chore: improve Windows Update step and add PSWindowsUpdate Module #842

Open niStee opened 3 days ago

niStee commented 3 days ago

Refactor the windows_update function in windows.rs to improve the Windows Update step. Added a prompt for administrator privileges and updated the warning message. Also, added support for installing the PSWindowsUpdate Module as an alternative to using USOClient for Windows Update.

still see warning: The installer will request to run as administrator, expect a prompt. Start-Process : A parameter cannot be found that matches parameter name 'Command'. At line:1 char:74

VERBOSE: MSI-THIN-GF36 (6/30/2024 4:48:48 PM): Connecting to Microsoft Update server. Please wait... VERBOSE: Found [0] Updates in pre search criteria

but as the verbose shows it works

What does this PR do

Standards checklist

For new steps

If you developed a feature or a bug fix for someone else and you do not have the means to test it, please tag this person here.