read throw error

This commit is contained in:
MyDrift 2024-08-25 21:23:24 +02:00
parent 494ad3c802
commit 8b158df8c4
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ function Invoke-WinUtilTweaks {
$changeservice = $false $changeservice = $false
} }
} catch { } catch {
# do nothing write-host "Unable to get service $($psitem.Name)"
} }
} }

View File

@ -27,6 +27,6 @@ Function Set-WinUtilService {
# Service exists, proceed with changing properties # Service exists, proceed with changing properties
$service | Set-Service -StartupType $StartupType -ErrorAction Stop $service | Set-Service -StartupType $StartupType -ErrorAction Stop
} catch { } catch {
# do nothing write-host "Unable to get service $($Name)"
} }
} }