How To Save and Read Sensitive Data with PowerShell
Unfortunately, IT professionals have to deal with sensitive information all the time. That information could be in the form of passwords, proprietary company information or anything that you’d rather the world not see. When performing work manually, we deal with this information by interactively working with it. We fill in password prompts, access a “secret” folder while logged in as a domain administrator and so on. This works fine but what happens when we need to automate these processes? Interactivity is the enemy of automation!
We need to automatically read this information without our intervention. This is where you sometimes see people get lazy and add passwords in plain text into the script. That’s a big no-no, and there’s a better way.
Read the full article at MCPMag