mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-15 17:30:37 -06:00
read throw error
This commit is contained in:
parent
494ad3c802
commit
8b158df8c4
@ -60,7 +60,7 @@ function Invoke-WinUtilTweaks {
|
|||||||
$changeservice = $false
|
$changeservice = $false
|
||||||
}
|
}
|
||||||
} catch {
|
} 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 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)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user