mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-08-07 04:26:23 -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
|
$password = $passwordBox.Text | ConvertTo-SecureString -AsPlainText -Force
|
||||||
if ($password) {
|
if ($password) {
|
||||||
Set-LocalUser -Name $user -Password $password
|
Set-LocalUser -Name $user -Password $password
|
||||||
$password.Close()
|
|
||||||
$Form.Close()
|
$Form.Close()
|
||||||
} else {
|
} else {
|
||||||
[System.Windows.Forms.MessageBox]::Show('No password entered!')
|
[System.Windows.Forms.MessageBox]::Show('No password entered!')
|
||||||
|
Reference in New Issue
Block a user