If you want disable or enable the wifi of your router you can run the following commands:
telnet 192.168.1.1
after put your login and password
sh
if you want disable the wifi, please you run the following commands:
wlctl radio off
or if you want emable the wifi please you run the following commands:
wlctl radio on
and after
exit
Under Windows you can run the following wbs script (create a file TurnOffWifi.wbs):
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd",7
WScript.Sleep 3000
WshShell.AppActivate "C:\Windows\system32\cmd.exe"
WScript.Sleep 3000
WshShell.SendKeys "telnet 192.168.1.1{ENTER}"
WScript.Sleep 3000
WshShell.SendKeys "admin{ENTER}" 'Username
WScript.Sleep 1000
WshShell.SendKeys "yourpassword{ENTER}" 'Password
WScript.Sleep 1000
WshShell.SendKeys "sh{ENTER}" 'goto shell mode
WScript.Sleep 1000
WshShell.SendKeys "wlctl radio on{ENTER}" 'send command
WScript.Sleep 1000
WshShell.SendKeys "exit{ENTER}" 'exit by shell mode
WScript.Sleep 200
WshShell.SendKeys "exit{ENTER}" 'close telnet session
WScript.Sleep 200
WshShell.SendKeys "{ENTER}" 'get command prompt
WScript.Sleep 200
WshShell.SendKeys "exit{ENTER}" 'close cmd.exe
telnet 192.168.1.1
after put your login and password
sh
if you want disable the wifi, please you run the following commands:
wlctl radio off
or if you want emable the wifi please you run the following commands:
wlctl radio on
and after
exit
Under Windows you can run the following wbs script (create a file TurnOffWifi.wbs):
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd",7
WScript.Sleep 3000
WshShell.AppActivate "C:\Windows\system32\cmd.exe"
WScript.Sleep 3000
WshShell.SendKeys "telnet 192.168.1.1{ENTER}"
WScript.Sleep 3000
WshShell.SendKeys "admin{ENTER}" 'Username
WScript.Sleep 1000
WshShell.SendKeys "yourpassword{ENTER}" 'Password
WScript.Sleep 1000
WshShell.SendKeys "sh{ENTER}" 'goto shell mode
WScript.Sleep 1000
WshShell.SendKeys "wlctl radio on{ENTER}" 'send command
WScript.Sleep 1000
WshShell.SendKeys "exit{ENTER}" 'exit by shell mode
WScript.Sleep 200
WshShell.SendKeys "exit{ENTER}" 'close telnet session
WScript.Sleep 200
WshShell.SendKeys "{ENTER}" 'get command prompt
WScript.Sleep 200
WshShell.SendKeys "exit{ENTER}" 'close cmd.exe