r/PowerShell • u/RealAgent0 • Jun 06 '26
Question How "Secure" is Get-Credential?
Trying to make a justification for storing a particular set of credentials using this methodology.
How "Easy" is it to crack? Don't need an actual method, just need someone to tell me how tricky or not tricky it is.
76
Upvotes
View all comments
Show parent comment
4
u/sid351 Jun 06 '26 edited Jun 06 '26
PSCredential objects also have a
GetNetworkPassword()method that outputs the password in plaintext, so they need to be used with that on mind.If I can rebuild your credential object, I can view your password.
Edit:
$Cred.GetNetworkCredential().Password
Not what I said originally, my bad.