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