Run system command as admin

Hi,

for a project I need to deactivate the computer mouse at certain times.
I found a good technic with pnputil, but I needs to run the command as administrator for it to work and don’t know how to do it from within touch

Is there a way to do it?

Here is the command I need to run

import os

os.system('pnputil /disable-device "USB\VID_062A&PID_8255&MI_00\6&7bdbc9b&0&0000"')

Thanks!

I finally went around this problem by using a small software to deactivate the mouse click ( X-Mouse Button Control) and changing the state with hotkeys (the software somehow didn’t take hotkeys from pyautogui from within touchdesigner so I had to use another software to convert midi signal to hotkeys…)

Not the most beautiful way, but doing the job