Merge pull request #191 from Magneet/master
removed showing of plain password
This commit is contained in:
@@ -10481,9 +10481,8 @@ function register-hvpod {
|
|||||||
#}
|
#}
|
||||||
|
|
||||||
$temppw = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($ADPassword)
|
$temppw = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($ADPassword)
|
||||||
$PlainPassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($temppw)
|
$PlainPassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($temppw)
|
||||||
$plainpassword
|
$vcPassword = New-Object VMware.Hv.SecureString
|
||||||
$vcPassword = New-Object VMware.Hv.SecureString
|
|
||||||
$enc = [system.Text.Encoding]::UTF8
|
$enc = [system.Text.Encoding]::UTF8
|
||||||
$vcPassword.Utf8String = $enc.GetBytes($PlainPassword)
|
$vcPassword.Utf8String = $enc.GetBytes($PlainPassword)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user