added pre and post checks for installations
This commit is contained in:
@@ -36,5 +36,9 @@ If (-not ($service)) {
|
||||
Start-Service osqueryd
|
||||
}
|
||||
else {
|
||||
Write-Host "osquery is already installed"
|
||||
Write-Host "osquery is already installed. Moving On."
|
||||
}
|
||||
If ((Get-Service -name osqueryd).Status -ne "Running")
|
||||
{
|
||||
throw "osqueryd service was not running"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user