How to open a program as admin in Python

Asked

Viewed 31 times

0

Guys I wanted to make a script that opens cmd as admin and type a command (for example ipconfig).

  • Take a look at this link, it might help: https://answall.com/questions/174692/python-privil%C3%A9gios-de-administrador

  • Take a look at the python subprocess library. The link below the documentation: Documentation Subprocess Python

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.