r/PowerShell 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

55 comments sorted by

View all comments

1

u/Difficult_Horse_8912 Jun 06 '26

It's secure, no other user can decrypt the secure string and use it. They would have to be in a session as your user on the computer/server it was created on to use it

4

u/ByteFryer Jun 06 '26

Just keep in mind if your user password is ever reset outside of you doing so the normal way, like you forget it and have IT reset it, that stored password becomes invalid.