winutil
winutil copied to clipboard
Security Updates Only are not being set properly
Describe the bug The bug is when you click to set Updates to security only, the regedit keys are not create and the powershell command fail to apply the tweak
To Reproduce Steps to reproduce the behavior:
- Go to 'Updates'
- Click on 'Security (Recommended) Settings'
- And take a look at the powershell window to see the error messages
- See error
Expected behavior Apply the Security Updates Only
Screenshots
Additional context Here's the line where need to be fixed https://github.com/ChrisTitusTech/winutil/blob/main/winutil.ps1#L1927
Currently are using Set-ItemProperty, maybe it's better to use New-ItemProperty or add a If Test-Path