Merge pull request #191 from Magneet/master

removed showing of plain password
This commit is contained in:
Kyle Ruddy authored and GitHub committed 2018-05-21 11:43:09 -04:00
commit c6607eb188
1 file changed
+2 -3
@@ -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)