create account

Easily setup, turn on/off your laptop's hotspot - Pc tutorial by sourovafrin

View this thread on: hive.blogpeakd.comecency.com
· @sourovafrin ·
$77.76
Easily setup, turn on/off your laptop's hotspot - Pc tutorial
Hey guys whazzap, how are you guys doing?
Hopefully good, i am also doing good.

Today i will not talk too much, i will share a simple tool by which you will be able to setup/turn on/off your laptop's wifi hotspot. You can do it by cmd by typing a lot of commands but i am sharing a way by which you can easily setup/trun on/off hotspot of your laptop and can share the internet connect.

For doing so, copy the below texts and create a file and save it as `.bat` file.
```
@echo off
REM	   Batch file for creating Wifi Hotspot
if _%1_==_payload_  goto :payload

:getadmin
    echo %~nx0: elevating self
    set vbs=%temp%\getadmin.vbs
    echo Set UAC = CreateObject^("Shell.Application"^)                >> "%vbs%"
    echo UAC.ShellExecute "%~s0", "payload %~sdp0 %*", "", "runas", 1 >> "%vbs%"
    "%temp%\getadmin.vbs"
    del "%temp%\getadmin.vbs"
goto :eof

:payload
    echo %~nx0: running payload with parameters:
    echo %*
    echo --------------------------------
    cd /d %2
    shift
    shift
    rem put your code here
    rem e.g.: perl myscript.pl %1 %2 %3 %4 %5 %6 %7 %8 %9
    :start
@ECHO off
ECHO  Pleae select one of the options
ECHO  -------------------------------
ECHO  1 Hotspot settings
ECHO  2 Start Hotspot
ECHO  3 Stop  Hotspot
ECHO  -------------------------------

SET /p option=Please enter one of the options:

if %option%==1  ( goto setup )      else set /a er=1
if %option%==2  ( goto start1 )      else set /a er=er+1
if %option%==3  ( goto stop )       else set /a er=er+1

:noOption
if %er% GEQ 3 ( 
Echo Error!
Echo Please enter a correct option
@pause
cls  
goto start
)

:setup
SET /p ssid=Please enter the Hotspot name:
SET /p key=Please enter the Hotspot password greater the 8 digits:
netsh wlan set hostednetwork mode=allow ssid=%ssid% key=%key% 
if %errorlevel%==0 (
ECHO Setup complete
)
@pause
cls  
goto start

:start1
netsh wlan start hostednetwork
@pause
cls  
goto start

:stop
netsh wlan stop hostednetwork
@pause
cls  
goto start
goto :eof
```

After saving it just double click to run it and it will ask administration permission after granting it cmd window with appear like below picture-
<center>
![Screenshot_89.png](https://cdn.steemitimages.com/DQmQU2DGArZXueSWgpJvxSGuafhUFYNMHxz5kwi1TLNdvuz/Screenshot_89.png)</center>

Then setup for the first time by selecting **Hotspot settings**. for selecting just type the mentioned number and press enter. Then just follow the guidance and set it up.
For turning on hotspot type 2 and for turning off type 3 and hit enter.

Don't forget to turn on networking sharing setting from your main network properties which you want to share. For doing so follow below pictures
<center>
![Screenshot_90.png](https://cdn.steemitimages.com/DQmWFvFB1ChRRGA3cv5fGdAeubjKXDMQsjqiVfJa82mpdXn/Screenshot_90.png)
![Screenshot_91.png](https://cdn.steemitimages.com/DQmZyYCucgG5f9QuXtcVQKrM7DYYh1Qt3LL3WsXSKKgk8kM/Screenshot_91.png)
</center>
After doing so, i hope u will be able to turn your pc's hotpot on easily and use on other devices. If you get any problem, let me know. I will try to answer and solve it.
* * *
This is the end of my blog. Thanks for reading my blog
* * *
Join our community where we help Bangladeshi writer and good content creator growing on steemit-

<center>
https://media.discordapp.net/attachments/461235573424652298/468147659014930432/sourovafrincustombanner.gif?width=500&height=148
<a href="https://discord.gg/GVEm2fe" target="_blank"><img src="https://steemitimages.com/DQmV3vq9X1LuEx1JeHCxPMTSyYDeM8MoaMXe2udAUCPM7B6/DQmV3vq9X1LuEx1JeHCxPMTSyYDeM8MoaMXe2udAUCPM7B6.png" /></a>
</center>

See you guys later.
Till then stay safe, be happy and keep doing good things.
To connect me on facebook click below gif-
<center>
<a href="www.facebook.com/sourovafrin" target="_blank"><img src="https://res.cloudinary.com/hpiynhbhq/image/upload/v1517553861/xm180jelxcgtchhs1ntu.gif" /></a>
</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 345 others
properties (23)
authorsourovafrin
permlinkeasily-setup-turn-on-off-your-laptop-s-hotspot-pc-tutorial
categorytutorial
json_metadata{"tags":["tutorial","tech","computer","wifi","blog"],"image":["https://cdn.steemitimages.com/DQmQU2DGArZXueSWgpJvxSGuafhUFYNMHxz5kwi1TLNdvuz/Screenshot_89.png","https://cdn.steemitimages.com/DQmWFvFB1ChRRGA3cv5fGdAeubjKXDMQsjqiVfJa82mpdXn/Screenshot_90.png","https://cdn.steemitimages.com/DQmZyYCucgG5f9QuXtcVQKrM7DYYh1Qt3LL3WsXSKKgk8kM/Screenshot_91.png","https://media.discordapp.net/attachments/461235573424652298/468147659014930432/sourovafrincustombanner.gif?width=500&amp;height=148","https://steemitimages.com/DQmV3vq9X1LuEx1JeHCxPMTSyYDeM8MoaMXe2udAUCPM7B6/DQmV3vq9X1LuEx1JeHCxPMTSyYDeM8MoaMXe2udAUCPM7B6.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1517553861/xm180jelxcgtchhs1ntu.gif"],"links":["https://discord.gg/GVEm2fe","www.facebook.com/sourovafrin"],"app":"steemit/0.1","format":"markdown"}
created2018-07-23 04:41:27
last_update2018-07-23 04:41:27
depth0
children1
last_payout2018-07-30 04:41:27
cashout_time1969-12-31 23:59:59
total_payout_value58.997 HBD
curator_payout_value18.763 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,912
author_reputation194,427,660,059,798
root_title"Easily setup, turn on/off your laptop's hotspot - Pc tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id65,653,474
net_rshares36,653,442,161,187
author_curate_reward""
vote details (409)
@raselhosen ·
wow great and helpful post.
properties (22)
authorraselhosen
permlinkre-sourovafrin-easily-setup-turn-on-off-your-laptop-s-hotspot-pc-tutorial-20180723t044925056z
categorytutorial
json_metadata{"tags":["tutorial"],"app":"steemit/0.1"}
created2018-07-23 04:49:30
last_update2018-07-23 04:49:30
depth1
children0
last_payout2018-07-30 04:49:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length27
author_reputation42,584,165,311
root_title"Easily setup, turn on/off your laptop's hotspot - Pc tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id65,654,002
net_rshares0