diff --git a/functions/private/Invoke-WinUtilTweaks.ps1 b/functions/private/Invoke-WinUtilTweaks.ps1 index dd6a1b8f..a77b64f4 100644 --- a/functions/private/Invoke-WinUtilTweaks.ps1 +++ b/functions/private/Invoke-WinUtilTweaks.ps1 @@ -60,7 +60,7 @@ function Invoke-WinUtilTweaks { $changeservice = $false } } catch { - # do nothing + write-host "Unable to get service $($psitem.Name)" } } diff --git a/functions/private/Set-WinUtilService.ps1 b/functions/private/Set-WinUtilService.ps1 index c1a02f4f..59823f1b 100644 --- a/functions/private/Set-WinUtilService.ps1 +++ b/functions/private/Set-WinUtilService.ps1 @@ -27,6 +27,6 @@ Function Set-WinUtilService { # Service exists, proceed with changing properties $service | Set-Service -StartupType $StartupType -ErrorAction Stop } catch { - # do nothing + write-host "Unable to get service $($Name)" } }