Hardware and software setup

The command to start the hosted network. How do I resolve the "Group or resource is not in the correct state" error? Working with the "Command Line"

Users who want to create a wireless network distribution c using Wi-Fi module of your laptop or computer, you may encounter a rather unexpected error when doing this - Failed to start the hosted network.

So, let's look at all the features of this error. It should be noted right away that a situation with such problems can arise on any recent version of the operating system from Microsoft, i.e. Windows 7, Windows 8 and Windows 10.

So why does it say "Failed to start the hosted network"? In fact, it is extremely difficult to find the exact or at least approximate cause of this problem. Most users get rid of it by following some potential solutions, which we will naturally provide you with in this article.

For a better understanding of the problem, we also need to note the location of the "Failed to start the hosted network" error. It occurs immediately after you try to enter a command in the Command line that is responsible for starting the wireless network, i.e. command netsh wlan start hostednetwork.

This error will also be accompanied by specific message, which may have a different character, depending, most likely, on the cause of its occurrence. What unites all these messages is the fact that something on your system is disabled, unavailable, or not working.

So what if the hosted network fails to start? Since we have already looked at the problem itself and where it occurs, let's now move on to the methods that you can apply to try to get rid of it.

Before we move forward on our list, we need to point out a couple more points that may help decide this problem. Here's what you need to know:

  • First of all, you need to make sure that your Wi-Fi module on your laptop or the Wi-Fi adapter on your computer is in working order. Also, do not forget that it will work in the system only if the appropriate drivers are installed for it.
  • Make sure you really follow the instructions for setting up a wireless network using your Wi-Fi. Quite often, especially when writing commands for the Command Line, you can miss something. Check your every step and the correctness of your actions.
  • And the most important point - we need to create and launch a hosted network through the Command line, which has Administrator privileges. If you tried to create a network using the usual Command Prompt, then a similar error could very well be the result of this.

If you have gone through all these points and you still do not succeed, i.e. in the Command line, it still says "Failed to start the hosted network", now we will try to fix it with more severe measures.

Method #1 Enable/Update Wi-Fi Adapter Drivers

So, perhaps everything is in order with you, the Wi-Fi adapter works correctly, there are drivers for it in the system, but for some reason it is simply disabled (yes, this sometimes happens). To check this possibility, you need to go to the Device Manager and activate the Wi-Fi adapter manually.

Right-click on Start and select "Device Manager" from the context menu. You can also go there a little differently: click Windows+R, enter in the line devmgmt.msc and press Enter.

Go to "Network adapters". Find your Wi-Fi adapter in this tab. If it really was disabled, then you will immediately understand this by a special mark next to it. Seeing such a mark, click on the Wi-FI adapter RMB and select in context menu"Engage".

Also, do not forget about the drivers for the router, which may be outdated or not working correctly. Right-click on the Wi-Fi adapter and select Update.

After activating the Wi-Fi adapter and updating the drivers for it, try again to create a wireless network distribution and see if the message "Failed to start the hosted network" appears again. If you fail again, then let's move on.

Method #2 Checking Microsoft Hosted Network Virtual Adapter

If everything is fine with the router, it works, its drivers are updated, but the message "Failed to start the hosted network" still does not disappear, then the problem may lie in software such as Microsoft Hosted Network Virtual Adapter.

It acts as virtual adapter(which is clear from the name itself) for distributing a Wi-Fi network that you are just trying to create and run. You can still find the Microsoft Hosted Network Virtual Adapter in Device Manager.

If you closed this window, please follow the instructions above and open it again. Once in the Device Manager, click on the "View" item in the menu bar of the window and select the "Show hidden devices" item.
Go to the "Network adapters" tab and find the device indicated above. Check if it is disabled. If it is disabled, then right-click on it and select "Enable".

By activating correct adapter to host a wireless network, try again to create and start it as you did before. Well, still no progress with the message "Failed to start the hosted network"?

Method #3 Completely reinstall the drivers for the Wi-Fi adapter

Ok, a little driver update obviously didn't help with the situation. Perhaps the problem lies with the drivers themselves. In this case, you can try to execute them complete removal and then a clean install.

In this case, you don’t have to do anything new: go to Device Manager again, find your Wi-Fi adapter, right-click on it, but this time you don’t click “Enable”, but “Delete”.

Once you remove the device, it should disappear from your PC's hardware list. Click on the "Action" item from the window's menu bar and select "Update hardware configuration".

Then go to the "Network adapters" tab again, find the Wi-Fi adapter, right-click on it and select "Update" to install drivers for the device from the Internet using the Device Manager.

The note: it is recommended to reinstall the drivers manually, i.e. by downloading them from the official website of the manufacturer. This is due to the fact that the Device Manager can often fail to install drivers or install drivers, but not the latest version.

After reinstalling the drivers for WiFi router on your laptop or computer, try to create and run a wireless network distribution using the Command Prompt (we remind you that you should use the Administrator Command Prompt).

Method #4 Checking the Hosted Network

If you are unable to create and run a hosted wifi network in your system, it may be that your adapter simply does not support this function. Now we will try to check this possibility with you. All you need is to enter a certain command in the same Command line, after which it will clearly indicate to you whether your Wi-Fi adapter supports network hosting or not.

Open an Administrator Command Prompt, type in the command netsh wlan show drivers and press Enter. You should then be shown a summary of your wireless network. You need to find the line "Hosted network support". If the value “No” is set there, then this, unfortunately, means that your Wi-Fi adapter simply cannot distribute wireless network.

Found a typo? Select the text and press Ctrl + Enter

But the instructions given did not address the main problems that users may encounter when creating a virtual access point. One of the most common errors occurs when starting a hosted network (Wireless Hosted Network) through the command line. This procedure is performed using the command netsh wlan start hostednetwork. Upon successful completion of the operation, the message “The hosted network is started” should appear, but in some cases, instead of it, the error “Failed to start the hosted network. The group or resource is not in the correct state to perform the requested operation."

That is, simply put, the laptop (or computer) adapter is not ready to work in point mode WiFi access and distribute the Internet to other devices wirelessly. How to solve this problem? Let's figure it out.

Checking the correct installation of drivers

It makes no sense to seriously consider options when a laptop does not have a Wi-Fi module or it cannot work in access point mode, since almost all modern laptop computers are equipped with the equipment necessary for distributing the Internet. So let's jump straight into the most common cause of hosted network problems - misconfigured, missing, or inappropriate software.

Make sure the network adapter is detected properly Windows system 7/10 and does not conflict with other devices, in several ways. The easiest way is through the "Device Manager". We go into it and open the branch "Network adapters". Find the module we need wireless communication it will not be difficult - his name should contain the words Wireless or Wi-Fi. Or it will simply be called "Network Adapter".

The main thing is to make sure that there is no yellow next to the module exclamation point, usually indicating a problem or lack of required drivers. Go to adapter properties ( Right mouse button - Properties) and on the General tab, check the status of the device.

If it says “The device is working properly”, then in principle there should be no problems with launching the hosted network, but in reality everything turns out to be not entirely true. It often happens that the Wi-Fi adapter drivers are installed correctly (you can check for availability and, if necessary, reinstall them on the "Driver" tab of the "Properties" window), and the device itself works flawlessly in the usual data reception mode, but the error "Could not start the hosted network" still appears. If this is just your case, then proceed to the next paragraph.

Rollback to a previous driver version

When updating drivers Windows devices saves old versions software so that you can roll back to them at any time in case of any problems. This is exactly what we will do, because the driver version wireless adapter often depends on whether it will support a hosted network or not (this is especially true for Windows 10). You can find out which driver is currently being used through the same Device Manager, but we will use the command line. Run it and run the command netsh wlan show drivers.

The screenshot above shows the result of the query. It can be seen that a fresh working driver is installed, but the line "Hosted network support" is set to "No", i.e. unequivocally, an attempt to start the network will provoke the appearance of the error "Failed to start the hosted network." Let's try to roll back to more old version driver and see the result.

In the "Device Manager" click on the adapter right click mouse and select "Update Driver Software...".

A list of all drivers available on the computer will appear. We select among them the earliest (in our case, 2015) and click "Next".

A window will appear informing you that the driver was successfully installed.

Let's check if hosted network support is now available. On the command line, run the command again netsh wlan show drivers and we see that now the possibility of creating an access point is available.

In order to finally verify this, here we introduce netsh wlan start hosted network. The inscription "Hosted network started" will indicate that everything went well.

Now we can set the parameters of the virtual access point, to which any device can connect.

This is how we solved the problem with the inability to start the hosted network. If all the above steps did not help you, try uninstalling and reinstalling the adapter drivers, "play around" with different versions drivers, restart Windows. At worst, if all else fails, buy a separate usb module for your laptop and set up Internet distribution through it.

Good day, I would like to clarify how it is possible Wi-Fi sharing from a laptop on Windows 10, if when checking the possibility of such a command line, using the netsh wlan show drivers command in the column "Hosted network support" is "no", and mobile hotspot in the parameters operating system turns on and distributes Wi-Fi correctly. I am attaching screenshots to prove my point.

Thanks in advance.

Answer

Good afternoon. I understand your question. By the way, I'm also interested in him. But only the developers of Windows 10 itself can answer it.

I also noticed more than once that when checking in the command line, the result "Hosted network support" is "no", I can't start distributing Wi-Fi via the command line (error), but it works fine. It seems that the mobile hotspot function uses a device that is not built into the driver WiFi adapter SoftAP support, but works in some other way. Even when distributing Wi-Fi through the command line does not work.

Hosted network support itself most likely disappears after automatic update WiFi drivers adapter. Therefore, in Windows 10, I would advise you to generally prohibit automatic update drivers. I am planning a tutorial on this topic. Or this happens after the update of the system itself.

I think that the "mobile hotspot" still uses Virtual WiFi technology. But why does it not depend on the results in the line "Hosted network support" after executing the command netsh wlan show drivers I can't suggest. Most interesting.

It just so happened that at work to get a full-fledged Internet without restrictions, I have to use a netbook and a 3g modem. Recently bought iPod Touch, I really wanted to connect it to the Internet. If the smartphone could still get out on the Internet on its own, then with the player it is somewhat more difficult.

One option is to connect with a sync cable. The option is not very convenient, since there is absolutely no desire to carry a cable with you all the time, and you don’t want to install iTunes either. The second option, the one described in this article, is connecting via WiFi. Already on Habrahabr, but for Linux. Our task is to configure the same thing under Windows.

So what do we have

- Netbook, ASUS 1215B
- Internet via USB 3g modem
- Player and smartphone with WiFi

Task

- Get internet on all devices

Solution

Before you start, many advise you to upgrade wifi driver cards on the computer. Personally, I have not done this, but everyone decides for himself.
Ways
- You can use graphical utilities such as Connectify and Virtual Router. They work, even work well, but eat up resources. Some people complained that they eat resources very much.

You can do everything yourself through the console using netsh. This is the way I chose. All actions must be performed on behalf of the Administrator.

Create a network
First of all, you need to create a wireless network with the following command
netsh wlan set hostednetwork mode=allow ssid="MyHomeInternet" key="pass12345678" keyUsage=persistent
where MyHomeInternet is the network name (ssid), pass12345678 is the login password.

The success of the command will look something like this:
Hosted network mode is allowed in the wireless network service. Hosted network SSID changed successfully. The hosted network user key passphrase was successfully changed.
Now you can go to Control Panel \ \ . I have it called "Wireless network connection 2".

Connection management
Since the connection is in the "No connection" status, we need to enable it. To do this, run the command:
After receiving the phrase Hosted network launched, the network will be launched and in the list of connections we will see the connection of your network. In our example, this is MyHomeInternet.

To stop the network, you must use the command:
netsh wlan stop hostednetwork

We connect the Internet
A WiFi network has been created and you can even connect to it, but the Internet will most likely be absent. In order to correct this misunderstanding, it is necessary:
- go to Control Panel \ Network and Control Center public access \ Change adapter settings;
- go to the properties of the connection through which you go online(I have this Internet MTS);
- tab Access;
- check the box next to " Allow other network users to use the internet connection this computer " and from the list select our created network - "Wireless Network Connection 2";
- click OK;
- disable and enable 3g-connection; (ideally restart your computer)
- disable and enable WiFi network.
What happened
Ideally, after these steps, the laptop will turn into a small WiFi hotspot. To do this, take the iPod, turn on WiFi and see our created MyHomeInternet network. Enter the password and connect. The Internet is.

Restrictions

- first of all, after each Windows startup start the network with the command netsh wlan start hostednetwork. It is solved by writing a small script and sending it to autoload. Another option is to create a shortcut on the desktop and start the network only when necessary.
- OS must be Windows 7.
- the connected device must support WPA2-PSK/AES

Problems

Network not created
- update the wireless adapter driver to a newer one
- run console as administrator
Network created but not starting
- perhaps restarting the computer and starting the network as administrator will help
The network has been created, started, but it is impossible to connect to it
- check password
- manually set the network settings in the properties of the TCP / IP connection on the "server" and the client. For example, for the server: ip - 192.168.137.1, mask - 255.255.255.0 and for the client: ip - 192.168.137.2, mask - 255.255.255.0, gateway - 192.168.137.1, dns - 192.168.137.1
Connected to the network, but the Internet can not go
- make sure that you share it (see paragraph "Connect the Internet")
- try to go wrong domain name, but by IP address. If it does, then it's time to think about entering the DNS server into the client and/or server settings.
Outcome
As you can see, such a simple task can be solved without the use of third-party software. Nevertheless, sometimes it happens that you can’t do without it. In my case, there were problems with DNS and even specifying the Google Public Domain server in the TCP / IP settings, I could not do anything. Therefore, I had to resort to the help of the BIND package and configure it to 127.0.0.1. It is just as easy to set up, but more on that in the next mini-article.

When attempting to create a virtual Wi-Fi network using the netsh wlan start hostednetwork command, the user may encounter a message that hosted the network failed. In this article, I will explain what this error is, and also explain how to fix the “The Hosted Network Couldn’t be Started” problem on your PC.

Among the causes of the netsh wlan start hostednetwork error, I would note the following:


Fixing netsh wlan start hostednetwork error

First, check the availability on your computer Wi-Fi adapter. If for a laptop and netbook this is implied a priori, then for owners desktop computers it's not so clear cut. Look for the Wi-Fi adapter in the Device Manager (subsection "Network adapters"), there it is usually listed as an adapter for a wireless network.

It also happens that the wi-fi on the PC is turned off by the user himself (either through the button to turn off the wi-fi module, or by pressing a keyboard shortcut, for example, for me, it's Fn + F2). Make sure your Wi-Fi module is enabled and working. So what to do?

Method 1. Enable a virtual adapter


Now you can connect your virtual network through the standard command "netsh wlan start hostednetwork".

Method 2: Restarting the adapter

  1. Again we go into the device manager, we find "Network adapters".
  2. We find the name of our main wireless network adapter.
  3. Press the right mouse button, and select "Disable" first.
  4. And then a couple of seconds after turning off, select "Enable".

Method 3. Use commands

If the previous two methods did not help you to start the netsh wlan start hostednetwork hosted network, then Microsoft recommends that you perform the following steps:


How it all looks visually can be seen in the video:

Method 4. Checking whether our adapter supports a virtual access point

  1. Press the key combination Win + R, and in the window that appears, type cmd.
  2. At the command prompt, write netsh wlan show drivers and press enter.
  3. In the result, we check the point about supporting the hosted network, and if it says “no”, then your adapter is not suitable for creating a virtual Wi-Fi network.
  4. In this case, it remains to advise you to buy an external Wi-Fi adapter that uses a USB connection for its work.

Conclusion

In most cases, the indicated problem with netsh wlan show drivers is solved by enabling a virtual adapter, which is often hidden from the user's eyes. You can also advise restarting your Wi-Fi adapter, in addition, some of the users were helped by a set of tips from Microsoft experts on disabling and enabling a hosted network. Well, for those who did not have a Wi-Fi adapter at all, we can advise you to purchase such an adapter at the nearest specialized store.

Liked the article? Share with friends!
Was this article helpful?
Yes
Not
Thanks for your feedback!
Something went wrong and your vote was not counted.
Thank you. Your message has been sent
Did you find an error in the text?
Select it, click Ctrl+Enter and we'll fix it!