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