Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • welcome - are you using powershell and a windows host? do you wish for there to be complete automation, or is user interaction acceptable? Commented Dec 6, 2022 at 4:37
  • ... and of course, what are you using the string for, ie. which service or executable needs the pwd? Commented Dec 6, 2022 at 4:44
  • Hi - this is an Amazon Linux 2 box. No powershell. The SecureString value acts like a password consumed in a text file as an env var. The service is a 3rd party software vendor. Commented Dec 7, 2022 at 19:36