mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-12-17 17:55:28 +00:00
[Fix] SecureString does not have Close method (#3531)
This commit is contained in:
parent
e2732da2db
commit
af09bcbf0b
@ -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!')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user