| || |
- 1 Post By thomasdfg
UAC and EDGE browser with Python
My test scenario is as below. I dont know how to explain but let me try...
1) I need to fire command which needs elevated permission (bcdedit etc.) on windows and use its output.
2) Then I need to open Browser to check loading time of websites on different browser.
3) I am using subprocess.check_output to execute windows command
For other OS/Browser I was using UAC at very low setting to execute all command without any prompt and permission issues.
But if UAC is low then it is not allowed me to open website in EDGE browser and I am stuck here.
How to solve this issue?
Please guide me.
Off the UAC and try to open in edge or some websites are not supported by the edge it occurred to me
A good way of getting access to things that need elevated permissions is to wrap them in a service. Since you mention using python, you can use Flask (Welcome | Flask (A Python Microframework)) to create a light weight web server, use the 'subprocess' module (https://docs.python.org/2/library/subprocess.html) to run shell commands, and launch the python script as a windows service (https://www.youtube.com/watch?v=aXu6T4XfZGU)
Originally Posted by drajpura1
The end result is you have a webserver you can perform REST requests against that doesn't require elevated permissions to access.
Tags for this Thread