Active IQ Unified Manager Discussions
can you tell me how to get the password out of Get-WfaCredentials return value?
$myCredentials = Get-WfaCredentials -Host "X100X" -ErrorAction stop
Is there a way to do this?
See The Solution
In the command "Send Email" There is a function defined which can tell you how to do it.
# Create a &quot;password pointer&quot;
$PasswordPointer = [Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecurePassword)
# Get the plain text version of the password
$PlainTextPassword = [Runtime.InteropServices.Marshal]::PtrToStringAuto($PasswordPointer)
# Free the pointer
# Return the plain text password
Call this using something like:
$myPassword = ConvertFromSecureToPlain -SecurePassword $myCredentials.Password
View solution in original post
thanks ver ymuch !
Let's walk you through the new & improved Knowledge Base and further enrich your experience with NetApp Products.
The Insights to Actions Community is back with a new look! Click here to learn how to get started.
Join our Discord Community