mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
19 lines
552 B
PowerShell
19 lines
552 B
PowerShell
function Remove-IcingaForWindowsInstallerConfigEntry()
|
|
{
|
|
param (
|
|
[string]$Menu,
|
|
[string]$Parent
|
|
);
|
|
|
|
$Menu = Get-IcingaForWindowsManagementConsoleAlias -Command $Menu;
|
|
|
|
if ([string]::IsNullOrEmpty($Parent) -eq $FALSE) {
|
|
$Menu = [string]::Format('{0}:{1}', $Menu, $Parent);
|
|
}
|
|
|
|
if ($global:Icinga.InstallWizard.Config.ContainsKey($Menu)) {
|
|
$global:Icinga.InstallWizard.Config.Remove($Menu);
|
|
}
|
|
|
|
Write-IcingaforWindowsManagementConsoleConfigSwap -Config $global:Icinga.InstallWizard.Config;
|
|
}
|