Hide credentails in logfile or in script

Hi am a new bee to PSADT, could you please help me understand which command can be used to hide the password in script as well as log file

It is bad for security to put passwords in scripts or EXEs.

The best practice is to use a password service.
It sends the password to your script if it runs with an account that is authorized to receive the password.

Advantages:
-The password is not stored in the script.
-The password can be changed without touching the script.
-The script will not work when run under an unauthorized account.

.
As for PSADT logging, functions like Execute-Process has a parameter called -SecureParameters that hides parameters in the log files.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.