mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
16 lines
462 B
PowerShell
16 lines
462 B
PowerShell
|
|
function Add-IcingaForWindowsManagementConsoleLastParent()
|
||
|
|
{
|
||
|
|
$Menu = Get-IcingaForWindowsManagementConsoleAlias -Command (Get-IcingaForWindowsManagementConsoleMenu);
|
||
|
|
|
||
|
|
if ($Menu -eq (Get-IcingaForWindowsInstallerLastParent)) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
# Do not add Yes/No Dialog to the list
|
||
|
|
if ($Menu -eq 'Show-IcingaWindowsManagementConsoleYesNoDialog') {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
$global:Icinga.InstallWizard.LastParent.Add($Menu) | Out-Null;
|
||
|
|
}
|