mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-08-06 12:06:22 -05:00
[Fix] SecureString does not have Close method (#3531)
This commit is contained in:
@ -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!')
|
||||
|
Reference in New Issue
Block a user