1 2 3 4 5 6 7 8 |
#Crear password de tipo SecureString $SecurePassword = Read-Host -Prompt "Introduzca password" -AsSecureString #Extraer password de tipo SecureString $BSTR = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecurePassword) $PlainPassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR) $PlainPassword |