Skip to content

Commit af09bcb

Browse files
[Fix] SecureString does not have Close method (ChrisTitusTech#3531)
1 parent e2732da commit af09bcb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

functions/public/Invoke-WPFInstall.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ function Invoke-WPFInstall {
6767
$password = $passwordBox.Text | ConvertTo-SecureString -AsPlainText -Force
6868
if ($password) {
6969
Set-LocalUser -Name $user -Password $password
70-
$password.Close()
7170
$Form.Close()
7271
} else {
7372
[System.Windows.Forms.MessageBox]::Show('No password entered!')

0 commit comments

Comments
 (0)