Forum Discussion
supportsib
Jul 21, 2021Brass Contributor
username and password in script
Hi, I want to schedule a ps script to run every 20 minutes. How to pass username and password securely. The account is a 0365 account, and the pc where the script is running is not joined to the d...
Phani24
Jul 21, 2021Copper Contributor
While creating a task in task scheduler you will have an option to use the user account with which account authentication your task should run in that place you can use your account there, this will work your account has rights to run the tasks on that PC.
Also you can use PS secret management module to include the username and password within the script.
Also you can use PS secret management module to include the username and password within the script.