Reputation: 46463
Running this Python code in Windows 7 from an administrator account perfectly works:
import os
os.system('netsh interface set interface "Ethernet" enable')
Running the same code in Windows 10 from an admin account gives this error:
The requested operation requires elevation (Run as administrator)
How to make this work on Windows 10?
Upvotes: 0
Views: 603