diff --git a/functions/public/Invoke-WPFInstall.ps1 b/functions/public/Invoke-WPFInstall.ps1 index cb0100ef..618d0a5f 100644 --- a/functions/public/Invoke-WPFInstall.ps1 +++ b/functions/public/Invoke-WPFInstall.ps1 @@ -67,7 +67,6 @@ function Invoke-WPFInstall { $password = $passwordBox.Text | ConvertTo-SecureString -AsPlainText -Force if ($password) { Set-LocalUser -Name $user -Password $password - $password.Close() $Form.Close() } else { [System.Windows.Forms.MessageBox]::Show('No password entered!')