I am writing a program to invoke a script, Java to pass args to a Python script
I would like this script to be invoked with elevated credentials WITHOUT prompting me for password. So far, I found the following solution
echo Plaintextpassword | runas /user:DOMAIN\privilegeduser cmd /c python ps.py sender-ip=10.10.10.10
But it does not work because the console displays RUNAS USAGE.
How to fix this?