All languages

PowerShell

You're viewing a free preview. Sign in free to read every script.

Why this exists A remote access script needs a password. The wrong ways to supply one are typing it into every command, hard coding it in the script, or passing it as plain text, all of which leave it in the console…

Store a Credential Once and Reuse It Without Ever Showing the Password

How to save a credential to disk encrypted so a script can use it without anyone typing or seeing the password, using Export-Clixml, plus its limits: only the same user on the same machine can decrypt it.

Sign in free to read this script, along with the rest of the library.

Sign in free