Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 
share|improve this question
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.