Nov-23-2020, 02:01 AM
Hi! I want to make a GUI application where I can 'Enable' or 'Disable' network adapters. Any way to bypass 'run as administrator'? or another solution?
I have a problem with the code below:
-Invalid Verb.
-The requested operation requires elevation (Run as administrator).
I have a problem with the code below:
-Invalid Verb.
-The requested operation requires elevation (Run as administrator).
import os os.system('netsh interface show interface') def disable(): os.system("wmic path win32_networkadapter where index = 1 call disable") os.system("netsh interface set interface Wi-Fi disable") disable()