From af09bcbf0b74cbd6d4679304ddc1db603862d6f7 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Tue, 5 Aug 2025 17:30:09 +0200 Subject: [PATCH] [Fix] SecureString does not have Close method (#3531) --- functions/public/Invoke-WPFInstall.ps1 | 1 - 1 file changed, 1 deletion(-) 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!')