icinga-powershell-framework/lib/core/windows/Clear-IcingaWindowsUserPassword.psm1
2021-09-02 09:23:10 +02:00

12 lines
249 B
PowerShell

function Clear-IcingaWindowsUserPassword()
{
if ($null -eq $Global:Icinga) {
return;
}
if ($Global:Icinga.ContainsKey('ServiceUserPassword') -eq $FALSE) {
return;
}
$Global:Icinga.ServiceUserPassword = $null;
}