Merge pull request #191 from Magneet/master

removed showing of plain password
This commit is contained in:
Kyle Ruddy
2018-05-21 11:43:09 -04:00
committed by GitHub

View File

@@ -10481,9 +10481,8 @@ function register-hvpod {
#}
$temppw = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($ADPassword)
$PlainPassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($temppw)
$plainpassword
$vcPassword = New-Object VMware.Hv.SecureString
$PlainPassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($temppw)
$vcPassword = New-Object VMware.Hv.SecureString
$enc = [system.Text.Encoding]::UTF8
$vcPassword.Utf8String = $enc.GetBytes($PlainPassword)