connect and disconnect wifi python code example
Example: how to disconnect wifi using python
import os
def enable():
os.system("netsh interface set interface 'Wifi' enabled")
def disable():
os.system("netsh interface set interface 'Wifi' disabled")