Hello Everyone,
I am running the following code, to disable my Wireless network card.
Thanks
ANS
**Moderator Note** Fixed your code tags, use python, not quotes around code.
I am running the following code, to disable my Wireless network card.
import os os.system("netsh interface show interface") def disable(): os.system("netsh interface set interface 'Wi-Fi' disabled")and the Output is : (No error and it doesn't disable my Wifi, and my Wifi NIC name is "W-Fi". So it doesn't do anything)
Output:Admin State State Type Interface Name
-------------------------------------------------------------------------
Disabled Disconnected Dedicated Wi-Fi
Disabled Disconnected Dedicated TPALAN
Enabled Connected Dedicated TPALANDOC
Process finished with exit code 0
Please advise.Thanks
ANS
**Moderator Note** Fixed your code tags, use python, not quotes around code.