- Poll: How reliable are ChatGPT and Bing Chat? - Tue, May 23 2023
- Pip install Boto3 - Thu, Mar 24 2022
- Install Boto3 (AWS SDK for Python) in Visual Studio Code (VS Code) on Windows - Wed, Feb 23 2022
Considering that more and more users want to connect their mobile devices to the Internet at work, offering Wi-Fi is now a must in many organizations. If you only have LAN in your offices, it can get quite expensive if you have to install Wi-Fi routers everywhere in the building. A cheaper solution is to use Windows PCs as hotspots. I use the setup explained here when I connect my laptop to a hotel LAN to share Internet with my phone.
My first idea was to put in the Windows startup folder a batch script containing the command that starts the hotpot. The problem is that the netsh command needs administrator privileges and has to be elevated. I described in the 4sysops forum how to do this at startup; however, it is all a bit longwinded.
A reader reminded me of a much better way. You can leverage the powerful Windows Task Scheduler, one of the many great features introduced with Windows Vista. With the solution described here, you only have to switch on the Windows machine you want to use as a hotspot; the user of the PC doesn’t need admin rights, and nobody needs to log on.
Note: Before you follow the step-by-step guide below, you must perform, at least once, the steps in my guide for how to share Wi-Fi in Windows 8.
- Create a batch file with the contents below (you might want to change the security key) and store it in the location of your choice:
netsh wlan set hostednetwork mode=allow ssid=hotspot key=12345678 keyUsage=persistent netsh wlan start hostednetwork
- Type Task… on the Windows 8 Start screen and then run the Task Scheduler.
- Click Create Task in the Actions pane on the right hand side.
- Enter Hotspot as the name for the task, and select Run whether user is logged on or not and Run with highest privileges. Select a user account with administrator rights under When running the task, use the following user account. You will have to enter the password after you confirmed the account.
- On the Trigger tab, click New, select At startup under Begin the task, and then click OK.
- On the Action tab, click New, select Start a program as Action, choose the batch file you created in step 1, and click OK.
- On the Conditions tab, deselect Start the task only if the computer is on AC power (just to be sure, if the hotspot is a laptop or tablet), and click OK.
You should now see your new task in the Task Scheduler Library. After you reboot, your Windows 8 machine acts like a Wi-Fi hotspot. If it doesn't work, you can Enable All Tasks History in the right pane of the Task Scheduler. The History tab of the task will help you to troubleshoot.
Hotspot in Task Manager
You can also do something similar with a Group Policy startup script.
Read the latest IT news and community updates!
Join our IT community and read articles without ads!
Do you want to write for 4sysops? We are looking for new authors.
i was test step by step above…. with windows 8 x64bit
but share Net connection2 to net connection13 can’t WORK…..
client PC can conected and open share folder… but it can’t browsing for internet 🙁
didiek, please notice that the number of the network connection is different on every PC as it depends on the number of adapters you have installed. So don’t rely on the numbers used in the guide but on the description of the network adapter’s role.
Does this include resuming from sleep?
Aurora, the batch file will only run when the computer boots up. However, in theory after that if the computer resumes from sleep internet sharing should still work. Did you have problems with that?
I follow these setps but at last i have a problem when i click ok to save my settings it’s shows to
Enter my account password i dont have my computer with any pasword protect http://i.imgur.com/yJASJyx.png
but in this box if i want to change user it’s shows my email i click it and i enter my password
http://i.imgur.com/ywlGhBT.png
And it’s gives an errorr http://i.imgur.com/6sW6eO2.png can somehone help me ?
ylli, did you try to set a password for your account?
Do you really need to add wlan set or you can just do wlan start and skip all set row?