How to Share Wi-Fi on Windows 10 Using the Command Prompt: A Pro's Guide

In situations where wired internet is only available on a desktop computer, and a smartphone or tablet requires a network connection, creating a hotspot becomes the only solution. Built-in operating system tools Windows 10 Allows you to transform your laptop or PC into a fully-fledged wireless router without installing third-party software. This method is especially relevant for system administrators and users who require complete control over network settings.

Using the command line offers a number of advantages over the graphical interface, including the ability to customize hidden parameters and automate the process. Console commands They operate at the system kernel level, ensuring a more stable connection and lower CPU load. However, beginners should be careful, as the syntax requires precise character input.

Before proceeding with the code, you need to make sure that your hardware supports the required functions. The adapter must support the mode Hosted Network, which is relevant for most modern cards, but requires testing on older models. Below, we'll cover each setup step in detail.

⚠️ Attention: Before you begin, make sure you have administrator rights. Without these privileges, the system will block network commands, and you'll receive an access error.

Checking hardware compatibility

The first step should always be to diagnose your wireless adapter. Not all network cards, even those that support Wi-Fi, can operate in base station emulation mode. To check, use the standard network management utility built into Windows.

Open the command prompt and enter the driver information query. The system will generate a lengthy report, in which you should look for the line indicating whether the hosted network is supported. If it says "Yes" or "Supported," you can safely proceed with the setup.

If the answer is "No" or "Not supported," the problem most often lies in outdated drivers. Update your network card software from the manufacturer's official website or through Device Manager.

netsh wlan show drivers

Check the driver version. If it's too old, the sharing functionality may be unavailable. It's also worth checking whether power saving mode is enabled, as this could disable the adapter at a critical moment.

⚠️ Attention: If the driver is updated but the mode is not supported, your adapter may not be physically capable of this function and you will need an external USB Wi-Fi module.

Creating and launching a wireless network

Once compatibility is confirmed, you can proceed to creating a virtual access point. The setup command requires three parameters: the network name (SSID), password, and encryption type. For a home network, the protocol WPA2-Personal.

Enter the network formation command in the console. Please note that the password must be at least 8 characters long. The network name can contain spaces if enclosed in quotation marks, but it's best to use Latin characters for maximum compatibility with older devices.

netsh wlan set hostednetwork mode=allow ssid="MyNetwork" key="Password123" keyUsage=persistent

Once the network is successfully created, you need to activate it. This starts broadcasting the signal. At this point, the name you created should appear in the list of available Wi-Fi networks on other devices.

netsh wlan start hostednetwork

☑️ Pre-launch check

Completed: 0 / 4

Setting up Internet sharing

The network itself is just a local segment with no access to the outside world. For devices to access websites, the internet connection must be forwarded from the main adapter (Ethernet or 3G/4G modem) to the created virtual adapter.

To do this, go to the Network Control Panel. Find your primary connection, the one your computer uses to access the internet, and open its properties. On the "Access" tab, check the permissions box and select your virtual adapter from the list (usually called Wireless network connection with number).

  • 🔍 Click Win + R and enter ncpa.cpl for quick access to network connections.
  • 🔍 Make sure the main adapter status is "Connected".
  • 🔍 After enabling sharing, the system may automatically change the IP address of the virtual adapter to 192.168.137.1.

It's important to understand that enabling this feature will change the IP addressing on the virtual interface. If you're using static IP addresses on your local network, this may cause conflicts, so it's best to use dynamic address assignment (DHCP).

What should I do if the "Access" tab is missing?

If you don't see the "Access" tab in the connection properties, you may have the Connection Manager service disabled or are using a limited version of Windows. Also, check if the ICS (Internet Connection Sharing) service is enabled.

Network management and status monitoring

During operation, you may need to check the network status, view connected clients, or temporarily disable the access point. All these operations are performed using console commands. netsh wlan.

To view the current status, use the show status command. It will show whether the network is running, how many devices are connected, and which channel is being used. This is useful for diagnosing speed issues.

netsh wlan show hostednetwork

If you need to temporarily stop broadcasting without deleting the settings, use the stop command. This is convenient when you need to quickly free up a radio channel or save your laptop's battery.

netsh wlan stop hostednetwork

To completely delete a created network and reset the driver settings, use the delete command. This is useful if you've changed the network name or want to change the encryption type.

netsh wlan delete hostednetwork
Team Action Result
start hostednetwork Launch Wi-Fi broadcasting starts
stop hostednetwork Stop Network hidden, settings saved
show hostednetwork Status Displaying clients and parameters
delete hostednetwork Removal Complete reset of configuration
📊 What do you most often need Wi-Fi hotspots for?
Saving traffic on your phone
There is no router in the hotel
The router is broken
Security testing

Automatic launch at system startup

Manually starting the network every time the computer reboots can be inconvenient. To automate the process, you can create a BAT file or use Task Scheduler. This is especially useful for office computers or servers.

Create a text file, enter the network startup command into it and save it with the extension .batYou must run this file as administrator, otherwise the command will not execute.

@echo off

netsh wlan start hostednetwork

For full automation, set up a task in Windows Scheduler with the "At logon" trigger and the highest privileges. This will ensure the network is up and running immediately after the drivers are loaded.

Diagnostics and troubleshooting

The most common issue is the "Failed to start hosted network" error. This can occur for a variety of reasons, from driver issues to service conflicts. First, try restarting your computer and updating your Wi-Fi adapter drivers.

It's also worth checking the Internet Connection Sharing (ICS) service. It should be running and set to Automatic. Without this service, internet tethering won't work, even if the network is up.

If the devices connect but the internet doesn't work, check your DNS settings. Try setting the DNS servers on the client device (smartphone). 8.8.8.8 And 8.8.4.4 manually.

⚠️ Attention: Antivirus programs and firewalls may be blocking the connection. If all else fails, temporarily disable network protection in your antivirus to test.

Frequently Asked Questions

Is it possible to share 5GHz Wi-Fi via the command line?

Standard command netsh Windows 10 often limits the frequency to 2.4 GHz for compatibility. 5 GHz operation requires driver support and often requires the use of more modern PowerShell commands instead of legacy netsh.

How many devices can be connected simultaneously?

The theoretical Windows limit is up to 100 connections, but the actual number depends on the power of your Wi-Fi adapter and processor. Typically, stable operation is achieved with 5-7 active clients.

Why does my phone say "Connected, no internet access"?

This means the virtual network has been created, but Shared Access hasn't been configured between the Wi-Fi adapter and your primary internet source (cable or modem). Check the Access tab in the primary connection properties.

Does Wi-Fi sharing affect the speed of the main internet?

Yes, the speed is divided among all connected clients. Additionally, the laptop uses CPU resources to process packets, which may slightly reduce overall system performance.