r/PowerShell • • Aug 11 '26

Question Question on scripting

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?

35 Upvotes

36 comments sorted by

View all comments

Show parent comment

1

u/PeeCee1 Aug 11 '26

Those are good, too. But the last time I tested that, gMSA were a PITA to use for scheduled tasks, because the GUI was unable to use them.
Has that changed?

1

u/raip Aug 11 '26

Changed years ago - just make sure you update the search box to include Service Accounts - it's disabled by default.