Friday, March 23, 2018

netsh - Batch substitute for wifi on/off toggle win 8.1pro - automate hosted network

I'm using netsh to enable an hostednetwork AP and it works fine, but i wanted to make a step forward and try to query and enable the wifi adapter.
Then the problem - if wifi toggle is switched off it won't work. -> what do i mean for wifi toggle switch - also if you try to hardly reboot the device.


this is an example of the batch i tried to use from admin:



  • @echo off

  • netsh interface set interface "Wi-Fi" enable

  • netsh wlan set hostednetwork mode=allow ssid=netshfirsttake key=12345678

  • netsh wlan start hostednetwork

  • exit




but it seem to act as hard switch, probably like disabling it from the device manager.
So i definitely I cannot figure out how to activate that switch with a batch.


Is it possible to automate this kind of script via batch? Or I'm just dreaming?




Thanks for your time and help.


DI

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...