How to restart WiFi or Wireless using command line in Windows?
If the wireless devices, laptops or computers are connected to a domain such as active directory, or a centralized control. The command below can be created using a batch file and deploy to all controlled devices or computers.
The command below, has been tested on a Windows 11 laptop and works fine. If nothing goes wrong, the command executes very fast.
Here's the command, must be executed on an elevated command prompt or administrator prompt.
wmic service where caption="WLAN AutoConfig" call stopservice && timeout 3 && wmic service where caption="WLAN AutoConfig" call startservice
Timeout command is used in between stop and start, as this would give the first command to stop the service and after 3 seconds, another command is executed to start the service.
Without the timeout command, the second command might not run properly, since the first is still executed on the background. Just a few seconds timeout the second command will be executed properly.
To test this command manually, and how it will work on remote computers. Open two command prompt window or terminal.
First Window do a ping -t <any.ip.address> wait for reply message or successful ping then:
Second Windows, execute the command above. In the output of the first Windows you will notice that there will be a "request time out", as this would indicate that there was a service interruption.
If the request time out, takes longer as expected but the service is able to recover automatically. Then check if the Wireless driver installed is the latest driver. Or install any windows updates.
Good luck..
Cheers! Take care. Till next Time.
Stay safe! and Keep things up!
Do ASAP, Always Say A Prayer...
Practice O.T.G. = Obedience To God
Make time for Prayer and Meditation.
================================
Free Android Apps:
Click links below to find out more:
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
https://play.google.com/store/apps/details?id=chrisjoms.myexcelapplicationguide
Heaven's Dew Fall Prayer app for Android :
https://play.google.com/store/apps/details?id=soulrefresh.beautiful.prayer
Catholic Rosary Guide for Android:
Pray the Rosary every day, countless blessings will be showered upon your life if you recite the Rosary faithfully.
https://play.google.com/store/apps/details?id=com.myrosaryapp
Divine Mercy Chaplet Guide (A Powerful prayer) BFF = Be Filled Faith:
Comments
Post a Comment