I need to run some script using powershell on Windows Server 2016:
& $ScriptPathSetup-Server -ConfigPath $SystemConfigPath -Role Servak
Once i run it, at some point i’m asking for the password twice which i need to enter manually (it’s the same password).
I want to avoid it and run the script using only command in powershell, without entering the password. I’m not concern about the security issues with that method.
How can i do it?
I need to type the password manually, which i want to avoid.
New contributor
Bymemot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.