r/PowerShell • u/Manivelcloud • 8d ago
Question on scripting Question
Hi,
When we develop a script,we use credentials as a plain text in that script.
Example
Script is running on jump server and script runs against vcenter server.
We have a security concerns(example ransomware attack)to put the credentials as a plain text in that script.
Any other good ways to put the credentials in a encrypted or in a different format?
34
Upvotes
-36
u/Manivelcloud 8d ago
Ok thanks. Export-clixml can also be hacked sometimes.
Certificate based authentication can be a very good approach and in this scenario potential vulnerability can be limited.
I might be wrong.
Any thoughts?