winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Security Updates Only are not being set properly

Open dennyamarojr opened this issue 1 year ago • 0 comments

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:

  1. Go to 'Updates'
  2. Click on 'Security (Recommended) Settings'
  3. And take a look at the powershell window to see the error messages
  4. See error

Expected behavior Apply the Security Updates Only

Screenshots image

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

dennyamarojr avatar May 21 '23 02:05 dennyamarojr