Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this small Python function:

  def change_boot(self):['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:
share|improve this question
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

You must log in to answer this question.

Browse other questions tagged .