windows 无法启动托管网络
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18182084/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't start hostednetwork
提问by KevinOrr
When I try to run netsh wlan start hostednetwork
, I get the following message:
当我尝试运行时netsh wlan start hostednetwork
,我收到以下消息:
C:\Windows\system32>netsh wlan start hostednetwork
The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation.
I'm running this with admin privileges, so it's not the notorious
我以管理员权限运行它,所以它不是臭名昭著的
C:\Users\Kevin>netsh wlan start hostednetwork
You must run this command from a command prompt with administrator privilege.
How do I get the hosted network "in the correct state"?
如何让托管网络“处于正确状态”?
回答by masinger
This happen after you disable via Control Panel -> network adapters -> right click button on the virtual connection -> disable
通过控制面板禁用后会发生这种情况-> 网络适配器 -> 右键单击虚拟连接按钮 -> 禁用
To fix that go to Device Manager (Windows-key +x + mon windows 8, Windows-key +x then mon windows 10), then open the network adapters tree , right click button on Microsoft Hosted Network Virtual Adapter and click on enable.
要修复该问题,请转到设备管理器(Windows 8 上为Windows-key + x + m,然后在 Windows 10 上为Windows-key + ),然后打开网络适配器树,右键单击 Microsoft 托管网络虚拟适配器上的按钮,然后单击启用。x m
Try now with the command netsh wlan start hostednetwork
with admin privileges. It should work.
现在尝试使用netsh wlan start hostednetwork
具有管理员权限的命令。它应该工作。
Note:If you don't see the network adapter with name 'Microsoft Hosted Network Virtual Adapter' try on menu -> view -> show hidden devicesin the Device Manager window.
注意:如果您没有看到名为“Microsoft 托管网络虚拟适配器”的网络适配器,请尝试在菜单 -> 查看 ->在设备管理器窗口中显示隐藏的设备。
回答by Uresh Kuruhuri
Let alone enabling the network adapter under Device Manager may not help. The following helped me resolved the issue.
更不用说在设备管理器下启用网络适配器可能无济于事。以下帮助我解决了这个问题。
I tried Disabling and Enabling the Wifi Adapter (i.e. the actual Wifi device adapter not the virtual adapters) in Control Panel -> Network and Internet -> Network Connectionsaltogether worked for me. The same can be done from the Device Manager too. This surely resets the adapter settings and for the Wifi Adapter and the Virtual Miniport adapters.
我尝试在控制面板 -> 网络和 Internet -> 网络连接中禁用和启用 Wifi 适配器(即实际的 Wifi 设备适配器而不是虚拟适配器)对我有用。也可以从设备管理器中完成相同的操作。这肯定会重置适配器设置以及 Wifi 适配器和虚拟微型端口适配器。
However, please make sure that the mode is set to allow
as in the below example before you run the start command.
但是,请确保allow
在运行 start 命令之前将模式设置为如下例所示。
netsh wlan set hostednetwork mode=allow ssid=ssidOfUrChoice key=keyOfUrChoice
and after that run the command netsh wlan start hostednetwork
.
然后运行命令netsh wlan start hostednetwork
。
Also once the usage is over with the Miniport adapter connection, it is a good practice to stop it using the following command.
此外,使用 Miniport 适配器连接结束后,最好使用以下命令停止它。
netsh wlan stop hostednetwork
Hope it helps.
希望能帮助到你。
回答by aLIEz
I encountered this problem on my laptop. I found the solution for this problem.
我在我的笔记本电脑上遇到了这个问题。我找到了这个问题的解决方案。
- Test this command in the command prompt "netsh wlan show driver".
- See Hosted network supported.
- If it is no,
- 在命令提示符“netsh wlan show driver”中测试此命令。
- 请参阅支持的托管网络。
- 如果不是,
Then do this
然后做这个
- Go to device manager.
- Click on view and press on "show hidden devices".
- Go down to the list of devices and expand the node "Network Devices" .
- Find an adapter with the name "Microsoft Hosted Network Virtual Adapter" and then right click on it.
- Select Enable
- This will enable the AdHoc created connection, it should appear in the network connections in Network and Sharing Center, if the AdHoc network connection is not appear then open elevated command prompt and apply this command "netsh wlan stop hostednetwork" without quotations.
- After this, the connection should appear. Then try starting your connection. It should work fine.
- 进入设备管理器。
- 单击查看并按“显示隐藏的设备”。
- 转到设备列表并展开节点“网络设备”。
- 找到名称为“Microsoft Hosted Network Virtual Adapter”的适配器,然后右键单击它。
- 选择启用
- 这将启用 AdHoc 创建的连接,它应该出现在网络和共享中心的网络连接中,如果没有出现 AdHoc 网络连接,则打开提升的命令提示符并应用此命令“netsh wlan stop hostsnetwork”,不加引号。
- 在此之后,应该会出现连接。然后尝试开始连接。它应该可以正常工作。
回答by Ajay Kumar
First off, when I went into cmd and typed "netsh wlan show drivers", I had a NO for hosted network support too. Doesn't matter, you can still do it. Just not in cmd.
首先,当我进入 cmd 并输入“netsh wlan show drivers”时,我也没有托管网络支持。没关系,你还是可以的。只是不在cmd中。
I think this problem happens because they changed the way hosted networks work in windows 10. Don't use command line.
我认为这个问题的发生是因为他们改变了托管网络在Windows 10 中的工作方式。不要使用命令行。
Just go on your pc to settings>Network>Mobile Hotspotand you should see all the necessary settings there. Turn it on, set up your network.
只需在您的电脑上转到设置>网络>移动热点,您应该会在那里看到所有必要的设置。打开它,设置您的网络。
If it's still not working, go to Control panel>Network and Internet>Network and Sharing Center>Change Adapter Options>and then click on the properties of the network adapter that you want to share. Go to the sharing tab, and share that internet connection, selecting the name of the adapter you want to use to share it with.
如果仍然无法正常工作,请转到控制面板>网络和Internet>网络和共享中心>更改适配器选项>,然后单击要共享的网络适配器的属性。转到共享选项卡,然后共享该 Internet 连接,选择要与之共享的适配器的名称。
回答by Seven
First check if your wlan card support hosted network and if no update the card driver. Follow this steps
首先检查您的 wlan 卡是否支持托管网络,如果没有更新卡驱动程序。按照以下步骤操作
1) open cmd with administrative rights
2) on the black screen type: netsh wlan show driver | findstr Hosted
3) See Hosted network supported, if No then update drivers
1)以管理权限打开cmd
2)在黑屏类型上:netsh wlan show driver | findstr Hosted
3)请参阅支持的托管网络,如果否则更新驱动程序
回答by wangkaibule
Symptoms
You install an application that uses Microsoft Virtual WiFi technology on a computer that is running Windows 7 or Windows Server 2008 R2. However, the application does not work after the computer restarts. Additionally, you receive an error message that resembles the following:The hosted network couldn't be started. The group or resource is not in the correct state to perform the requested operation.
Cause
This issue occurs because the Virtual Wi-Fi filter driver does not create the Virtual Wi-Fi Adapter correctly when a PNP resource rebalance occurs during the startup process.Notes
1.This issue may occur when a Plug and Play (PNP) resource rebalance occurs during the startup process. The PNP resource rebalance is usually triggered by a change to the hardware configuration.
2.If you open Device Manager when this issue occurs, you notice that the Virtual WiFi Adapter is not created.
症状
在运行 Windows 7 或 Windows Server 2008 R2 的计算机上安装使用 Microsoft 虚拟 WiFi 技术的应用程序。但是,该应用程序在计算机重新启动后不起作用。此外,您还会收到类似于以下内容的错误消息:无法启动托管网络。组或资源的状态不正确,无法执行请求的操作。
原因
出现此问题的原因是,在启动过程中发生 PNP 资源重新平衡时,虚拟 Wi-Fi 筛选器驱动程序未正确创建虚拟 Wi-Fi 适配器。注意事项
1.在启动过程中发生即插即用 (PNP) 资源重新平衡时,可能会出现此问题。PNP 资源重新平衡通常由硬件配置更改触发。
2.如果您在出现此问题时打开设备管理器,您会注意到没有创建虚拟 WiFi 适配器。
If you can't restartyour hostednetwork after rebootingthe OS ,just Try this hotfix.It fixed my problem. Or try to figure it out by yourself according to the Symptomsand Causementioned at the start of my answer.
如果在重新启动操作系统后无法重新启动托管网络,请尝试此修补程序。它解决了我的问题。或者尝试根据我回答开头提到的症状和原因自己弄清楚。
回答by Kiran Rajmohan
Often, I've found that the solution to this problem can be fixed by disabling and then enabling the Wifi hardware. I've made a script to do this automatically instead of doing it manually by going to the device manager. You can find it here
通常,我发现可以通过禁用然后启用 Wifi 硬件来解决此问题。我制作了一个脚本来自动执行此操作,而不是通过转到设备管理器手动执行此操作。你可以在这里找到
回答by Nitin Labhishetty
Some fixes I've used for this problem:
我用于此问题的一些修复程序:
Check if the connection you want to share is shareable.
a. Press Win-key+ rand run
ncpa.cpl
b. Right click on the connection you want to share and go to properties
c. Go to sharing tab and check if sharing is enabled
Run
devmgmt.msc
from the run console.a. Expand the network adapters list
b. Right click -> properties on the adapter of the connection you want to share
c. Go to power management tab and enable
allow this computer to turn off this device to save power
. Restart your laptop if you've made changes.Check if airplane mode is disabled. You can enable airplane mode and then turn on the wi-fi, you can never know. Do disable airplane mode if it is on.
Use admin command prompt to run this command.
检查您要共享的连接是否可共享。
一种。按Win-key+r并运行
ncpa.cpl
湾 右键单击要共享的连接并转到属性
C。转到共享选项卡并检查是否启用了共享
运行
devmgmt.msc
从运行控制台。一种。展开网络适配器列表
湾 右键单击 -> 要共享的连接的适配器上的属性
C。转到电源管理选项卡并启用
allow this computer to turn off this device to save power
. 如果您进行了更改,请重新启动您的笔记本电脑。检查飞行模式是否被禁用。您可以启用飞行模式然后打开Wi-Fi,您永远不会知道。如果打开,请禁用飞行模式。
使用 admin 命令提示符运行此命令。
回答by Siva Manasan
If none of the above answers worked for you, You can try the following solution which worked for me.
如果以上答案都不适合您,您可以尝试以下对我有用的解决方案。
Go to Services manager(services.msc) and enable the below services and try again.
- WLAN AutoConfig
- Wi-Fi Direct Services Connection Manager Service
- WLAN 自动配置
- Wi-Fi Direct 服务连接管理器服务
Hope this solved your problem.
希望这解决了您的问题。
回答by smirkingman
The hosted network won't start if there are other active wifi adapters.
如果有其他活动的 wifi 适配器,托管网络将不会启动。
Disable the others whilst you're starting the hosted network.
在您启动托管网络时禁用其他人。