Automatically enable mobile hotspot on startup

P4ssC3 -  
 P4ssC3 -
Everything is in the title, I'm looking for my computer's wireless mobile hotspot to be activated automatically at Windows startup, currently I have to do it manually every time. I am on Windows 10, thank you!

15 answers

Anonymous user
 
Hello
You can create a small batch file (for example Hotspot.cmd) using notepad (rename the txt to cmd) in which you enter netsh wlan start hostednetwork and once done, place it in the C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp folder on your machine so that it opens at startup.
See you later
If the answer helped you, a little thumbs up is great... If resolved, that's perfect.

Let him who has never opened a user manual throw me the first mouse ;-)
4
Anonymous user
 
Hello
An encoding ??? It's a batch file, there's no encoding in it !!

Is the access point (Wifi Hotspot) already created?

Have you tested by double-clicking on the batch file?

Test in this folder %userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

If the Hotspot is not yet created, put the following in the Batch file

REM Creating the Hotspot
netsh wlan set hostednetwork mode=allow ssid=MonHotspot key=MonPassword
REM Wait for 5 seconds
Timeout /T 5
REM Start the Hotspot
netsh wlan start hostednetwork


Cheers
If this response helped you, a little thumbs up would be great... Resolved is perfect.

Let he who has never opened a user manual throw the first mouse ;-)
1
Anonymous user
 
Press the Windows key + S (Cortana & search), type Task Scheduler and click on "Task Scheduler"
Then on the right, create a task...
Then give it a name, check &quot.Run whether the user is logged on or not" and also "Run with highest privileges"
Then go to the "Triggers" tab, click "New", choose Start the task: At startup
Then go to the "Actions" tab, click "New", enter in the script netsh wlan start hostednetwork and respond "no"
(You could also have selected "Browse" and pointed to the batch... but not necessary for a single line batch).
Finally click OK and enter the admin password.

Test

A+
If this answer helped you, a little thumbs up is great... Resolved is perfect.

Let anyone who has never opened a user manual throw the first mouse ;-)
1
P4ssC3
 
Hi and thanks for your reply
So I tried... Without success.
Is there a specific encoding to use in Notepad?
If you have any other idea...
thanks
0
P4ssC3
 
When I double click it works, yes!
0
Anonymous user
 
Hello
So change the folder %userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

--
If the answer helped you, a little thumbs up would be great... If resolved, that's perfect.

Let he who has never opened a user manual throw the first mouse at me ;-)
0
P4ssC3
 
Still not working :(
0
Anonymous user
 
Hello
Yet, that should...
Are you logging in or not? Password, etc...
Talk later
--
If the answer helped you, a little thumbs up is great... Resolved, that's perfect.

Let him who has never opened a user manual throw the first mouse at me ;-)
0
P4ssC3
 
Ah, something else, now the file doesn't work anymore when I double-click...

Yes, and the session is an admin session.
0
Anonymous user
 
Except by adding a task in the "Task Scheduler" in "maximum permission" mode with "trigger" -> At startup.

Otherwise, the worst method: add a software :-(
https://mypublicwifi.com/publicwifi/fr/index.html

See you+
--
If the answer helped you, a little click on the thumbs up, it's great... Resolved is perfect.

Let him who has never opened a user manual throw the first mouse ;-)
0
P4ssC3
 
How do I add a task in the "Task Scheduler"? (#noob :( )
0
P4ssC3
 
Still not lol
0
P4ssC3
 
I tried to run the script directly in the cmd prompt:

- first it asks me for admin rights
- so I open Cmd with admin rights, and then a new error: The hosted network could not start. The group or resource is not in the correct state to perform the required operation.
0
Anonymous user
 
:-(
You can try the software....

Or persevere, redo the complete batch with the creation of the Wifi Hotspot (delete yours manually) and make sure to put the name of the Hotspot and the password you want in the SSID...
Put the batch in your Windows folder and point to it by browsing in the Action tab of the task scheduler.
You can also check "delay the task" by 30 seconds in Triggers to ensure that everything is started properly beforehand.

Otherwise, I don't see!!

See you+
--
If the answer helped you, a little click on the thumbs up is great... Resolved is perfect.

Let he who has never opened a user manual throw the first mouse ;-)
0
P4ssC3
 
Anyway, thank you for your help and your time!!
See you later!
0