Jump to content

Write a batch script, that would ask for elevated privileges and then run the command.

Unless you disable UAC, you can't disable asking for Administrator access.

HAL9000: AMD Ryzen 9 3900x | Noctua NH-D15 chromax.black | 32 GB Corsair Vengeance LPX DDR4 3200 MHz | Asus X570 Prime Pro | ASUS TUF 3080 Ti | 1 TB Samsung 970 Evo Plus + 1 TB Crucial MX500 + 6 TB WD RED | Corsair HX1000 | be quiet Pure Base 500DX | LG 34UM95 34" 3440x1440

Hydrogen server: Intel i3-10100 | Cryorig M9i | 64 GB Crucial Ballistix 3200MHz DDR4 | Gigabyte B560M-DS3H | 33 TB of storage | Fractal Design Define R5 | unRAID 6.9.2

Carbon server: Fujitsu PRIMERGY RX100 S7p | Xeon E3-1230 v2 | 16 GB DDR3 ECC | 60 GB Corsair SSD & 250 GB Samsung 850 Pro | Intel i340-T4 | ESXi 6.5.1

Big Mac cluster: 2x Raspberry Pi 2 Model B | 1x Raspberry Pi 3 Model B | 2x Raspberry Pi 3 Model B+

Link to post
Share on other sites

Open notepad, write the following into it and the save the text file ;

 

Quote

@echo off

netsh wlan start hostednetwork

 

Rename the text file, including the extension, could be something like : StartHotspot.bat (it's important here that you enabled the option to view file extension, if not, you're going to rename your file to *.bat.txt, and that won't work.).

 

Then move that to the startup folder ;

 

Open the Run window (Win+R)

Type : shell:startup

Press enter (or click ok)

Move your file to the folder that just opened.

 

You could also use a schedule task but it's a bit more involved.

Edited by wkdpaul

If you need help with your forum account, please use the Forum Support form !

Link to post
Share on other sites

6 minutes ago, wkdpaul said:

Open notepad, write the following into it and the save the text file ;

 

Quote

@echo off

netsh wlan start hostednetwork

 

Rename the text file, including the extension, could be something like : StartHotspot.bat

 

Then move that to the startup folder ;

 

Open the Run window (Win+R)

Type : shell:startup

Press enter (or click ok)

Move your file to the folder that just opened.

nailed it :PxD

Link to post
Share on other sites

1 minute ago, Christophe Corazza said:

nailed it :PxD

Nope, I missed the part about file extension, happened to a friend of mine before and I just remembered to specify it. :P

If you need help with your forum account, please use the Forum Support form !

Link to post
Share on other sites

3 hours ago, GlynDavies said:

Whenever I boot my PC, I want the following to happen

CMD is opened as Admin

Runs the commands - netsh wlan start hostednetwork

 

How can I go about doing this? Doing it manually every time I boot is just a bit annoying 

If you set it up as a Windows Event (via Task Scheduler) then you should be able to let it run with system permissions without needing to confirm the UAC request.

AMD Ryzen 7800 X3D, MSI B650 Project Zero, Antec C5, Gigabyte RTX 4080 Super Aero

 

Nikon D500 | Nikon 300mm f/4 PF  | Nikon 200-500 f/5.6 | Nikon 50mm f/1.8 | Tamron 70-210 f/4 VCII | Sigma 10-20 f/3.5 | Nikon 17-55 f/2.8 | Tamron 90mm F2.8 SP Di VC USD Macro | Neewer 750II

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×