Executing a bat file to import a reg file as an admin user in Python
Executing a bat file to import a reg file as an admin user in Python
Hello. The command runs Powerrun with elevated privileges. It uses a batch file to execute another program. The issue seems linked to needing UAC, which explains why it doesn't work in basic commands. You might need to launch it through Python and prompt the user for UAC consent if that's possible.
It operates when you modify the command from using os.system to regedit commands, and functions smoothly.