mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-15 09:20:36 -06:00
read throw error
This commit is contained in:
parent
494ad3c802
commit
8b158df8c4
@ -60,7 +60,7 @@ function Invoke-WinUtilTweaks {
|
||||
$changeservice = $false
|
||||
}
|
||||
} catch {
|
||||
# do nothing
|
||||
write-host "Unable to get service $($psitem.Name)"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user