win 无线热点setup

原创 2015年11月20日 21:14:10


本脚本用于(setup.bat):

(1)建立无线热点

(2)查看保存的无线账号(密码)[高版本的win默认不支持图形化界面查看密码]

(3)搜索附近可用的无线账号


@echo off
cls
:MENU
echo ============================================
echo                 SET UP WIFI HOT 
echo ============================================
echo 1.clear history
echo 2.set hostednetwork
echo 3.start hostednetwork
echo 4.stop hostednetwork
echo 5.show saved ssid info(pwd)
echo 6.show ssid available
echo.
set /p OPTION=Please Chose Option:
if %OPTION%==1 goto clear_history
if %OPTION%==2 goto set_hostednetwork 
if %OPTION%==3 goto start_hostednetwork
if %OPTION%==4 goto stop_hostednetwork
if %OPTION%==5 goto show_saved_ssid_pwd
if %OPTION%==6 goto show_ssid_available

:clear_history
%=================================================%
cls
goto MENU
%=================================================%

:set_hostednetwork
%=================================================%
echo "set hostednetwork"
netsh wlan start hostednetwork
netsh wlan set hostednetwork mode=allow ssid=zhouat_wifi key=12341234 keyusage=persistent
if errorlevel 1 goto MENU
echo "ssid=zhouat_wifi key=12341234"
ncpa.cpl  %open net share center%
goto MENU
%=================================================%

:start_hostednetwork
%=================================================%
echo "start hostednetwork"
netsh wlan start hostednetwork
goto MENU
%=================================================%

:stop_hostednetwork
%=================================================%
echo "stop hostednetwork"
netsh wlan set hostednetwork mode=disallow
netsh wlan stop hostednetwork
goto MENU
%=================================================%

:show_saved_ssid_pwd
%=================================================%
echo "netsh wlan show profile zxs key=clear"
netsh wlan show profile 
goto MENU
%=================================================%

:show_ssid_available
%=================================================%
echo "netsh wlan show networks"
netsh wlan show networks 
goto MENU
%=================================================%



Show the list of wireless profiles: 
netsh wlan show profiles

Retrieve the stored key (WPA, WEP, etc) of a profile: 
netsh wlan show profiles name=[profile name] key=clear

Delete a wireless profile: 
netsh wlan delete profile name=[profile name]

Set a network’s priority: 
netsh wlan set profileorder name=[profile name]interface=[interface_name] priority=1

Stop automatically connecting to a network: 
netsh wlan set profileparameter name=[profile name] connectionmode=manual

Though you can’t actually make changes to the network profiles themselves, you can export a desired profile, make changes to the XML file, and then import the profile back onto the same machine or another one.

In Windows 8, Microsoft also removed the ability to save/export the network profiles from the GUI in the Wireless Network Properties box under the Connection tab. However, it’s still possible via Netsh commands:

Export a wireless network profile: 
netsh wlan export profile name=[profile name]

Import a network profile:
netsh wlan add profile filename=[path_and_filename.xml] interface=[interface_name]

Creating an Ad Hoc Wireless Connection

Starting with Windows 8, Microsoft also removed the ability to create ad hoc or peer-to-peer wireless networks. You won’t find the "Set up a wireless ad hoc option" under "Set up a new connection or network" anymore in the GUI. However, you can utilize what Microsoft calls Wireless Hosted Networks via Netsh commands:

Configure the Wireless Hosted Network: 
netsh wlan set hostednetwork mode=allow ssid=[your_virtual_network_name] key=[your_network_password]

Enable the Wireless Hosted Network: 
netsh wlan start hostednetwork

Disable the Wireless Hosted Network: 
netsh wlan stop hostednetwork

Retrieve the Wireless Hosted Network details: 
netsh wlan show hostednetwork

Change the password: 
netsh wlan refresh hostednetwork YourNewNetworkPassword

Before users on the ad hoc network can access the Internet via the Wireless Hosted Network, you must enable Internet Connection Sharing (ICS). Open the Network and Sharing Center, open the Network Connections, right-click the network adapter that’s connected to the Internet, and select Properties.

Then select the Sharing tab, check Allow other network users to connect through this computer’s Internet connection, and then choose the Wireless Hosted Network Connection from the drop-down listbox, and click OK

WIN 7系统建立无线热点

经常出差的同仁,当遇到住宿只提供有线上网,NO Wift.在此,提供本本Windows7自带工具建立无线热点方法,加以记录。 1. 首先以管理员身份运行cmd。进入之后cd到c盘windows目录下的...
  • utimes
  • utimes
  • 2013年12月19日 13:08
  • 1002

无线热点发现工具开发

微软的Wireless LAN API for Windows XP Service Pack 2提供了相应的API函数,调用相应的API即可实现。 可以参见inSSIDer 2.0的源代码,是C#...
  • itmes
  • itmes
  • 2011年05月17日 22:08
  • 2115

Innosetup 创建快速运行栏快捷方式 win7 win 8 win10 均不可用

[Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:Addition...
  • yuyefuxiao521
  • yuyefuxiao521
  • 2017年06月07日 15:13
  • 542

fedora下搭建hostapd+dhcpd建立Wifi热点

1、安装hostapd,源码编译或者直接命令安装 下载源码包 进入hostapd目录下 $ cp defconfig .config $ make && make install 命令安装 $ sud...
  • u010129119
  • u010129119
  • 2017年07月04日 14:08
  • 183

win32获取公网ip

直接上代码,呵呵! //获取公网ip #include #pragma comment(lib, "urlmon.lib") #ifdef _UNICODE #define tString ...
  • a345252622
  • a345252622
  • 2015年01月15日 11:35
  • 978

win7无线热点

@echo off TITLE 笔记本无线热点共享 作者:sigangjun :start cls ::color 2f是颜色显示,用两个16进制数表示,其中第一个数为背景色,第二个数为前景色。如果...
  • sigangjun
  • sigangjun
  • 2014年02月24日 15:35
  • 552

无线热点查询!

除了家里,我还能在哪里用Wi-Fi无线上网?  现...
  • iWildWood
  • iWildWood
  • 2005年02月27日 00:34
  • 1402

mentohust && 无线热点

先申明这是windows下的mentohust,有关linux的可以查看这篇文章。 学校采用锐捷客户端认证上网,但锐捷真的很让人无语,要么频繁需要重启,要么突然很吃CPU,很占内存,还不支持双网...
  • houxq123
  • houxq123
  • 2011年08月24日 13:04
  • 687

电脑设置无线热点

http://wenku.baidu.com/link?url=tZxgCVCoYlLCWS1O-9uzXfaRykKlE9dbu2UM04BBFrnpb1rD4d_3EsIcLCI1w-OAVM9N...
  • brucexu1978
  • brucexu1978
  • 2014年01月15日 08:47
  • 509

XYWi-Fi v2.0 简单的笔记本无线热点分享工具【Win】

可执行文件、源码下载地址:  http://code.google.com/p/rlib/downloads/list
  • rrrfff
  • rrrfff
  • 2012年03月04日 13:45
  • 8830
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:win 无线热点setup
举报原因:
原因补充:

(最多只允许输入30个字)