I am using a python script and win32serviceutil
module in order to stop and start Windows services. My account is a member of group 'local administrators'. I login with that account and run the script but get the error: Access denied
.
If I start a cmd prompt as Administrator and the run from that window it works fine.
My question:
- How could I specify inside the script to run it as an administrator? (note: I don't know administrator password)