mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
12 lines
320 B
PowerShell
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';
|