icinga-powershell-framework/lib/core/windows/Stop-IcingaWindowsService.psm1
2024-09-19 12:27:06 +02:00

12 lines
320 B
PowerShell

function Stop-IcingaForWindows()
{
[string]$JeaPid = Get-IcingaJEAServicePid;
Stop-IcingaService -Service 'icingapowershell';
if ((Test-IcingaJEAServiceRunning -JeaPid $JeaPid)) {
Stop-Process -Id $JeaPid -Force;
}
}
Set-Alias -Name 'Stop-IcingaWindowsService' -Value 'Stop-IcingaForWindows';