I need some help in passing domain credentials instead of prompting for credentials. Is it possible to save the credentials in a file securely and then somehow use this as credentials for the script.
I currently have the script prompt for domain credentials. .
$creds = get-credential
Looking forward to your assistance.