Removed commented blocks.
This commit is contained in:
parent
dae9d91fdb
commit
55fabd7e2e
|
|
@ -155,7 +155,7 @@ function Test-ServiceDaclPermission {
|
|||
return $False
|
||||
}
|
||||
|
||||
# try {
|
||||
try {
|
||||
# retrieve DACL from sc.exe
|
||||
$Result = sc.exe sdshow $TargetService.Name | where {$_}
|
||||
|
||||
|
|
@ -208,11 +208,11 @@ function Test-ServiceDaclPermission {
|
|||
}
|
||||
}
|
||||
return $False
|
||||
# }
|
||||
# catch{
|
||||
# Write-Warning "Error: $_"
|
||||
# return $False
|
||||
# }
|
||||
}
|
||||
catch{
|
||||
Write-Warning "Error: $_"
|
||||
return $False
|
||||
}
|
||||
}
|
||||
|
||||
function Invoke-ServiceStart {
|
||||
|
|
|
|||
Loading…
Reference in New Issue