0

I have this small Python function:

  def change_boot(self):

        subprocess.call(['runas', '/user:Administrator','bcdedit'], shell=True) 

However it keeps asking for the admin password ... how could i pass it as argument, or bypass it at all?

Enter the password for Administrator:
None 
1
  • 1
    Perhaps you could make a batch script which runs your python file and then run the script as an administrator (from the right-click menu)?
    – 2rs2ts
    Jun 11 '13 at 21:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.