mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-10-08 11:39:10 +11:00
fix(tweaks): skip missing services instead of aborting the run (#5140)
Invoke-WinUtilTweaks caught a missing service with [System.ServiceProcess.ServiceNotFoundException], a type that does not exist in .NET. PowerShell could not resolve the catch type, so the missing-service case aborted the whole tweaks job rather than warning. Catch on the error ID the way Set-WinUtilService already does: an absent service warns and logs, and any unrelated lookup failure is rethrown. The Tweaks guide documents the skip.
This commit is contained in:
@@ -29,6 +29,8 @@ Use the quick-selection buttons at the top of the Tweaks tab to speed up setup:
|
||||
To see what each preset includes, view [preset.json](https://github.com/ChrisTitusTech/winutil/blob/main/config/preset.json).
|
||||
:::
|
||||
|
||||
When a listed service does not exist, WinUtil logs a warning and skips it. The remaining services and tweaks still run.
|
||||
|
||||
:::caution
|
||||
Some tweaks take effect immediately, while others may require Explorer to restart, a sign-out, or a full reboot.
|
||||
:::
|
||||
|
||||
Reference in New Issue
Block a user