Creating an hotspot with windows 7 is easy, but you may have to install some additional software.

If you don’t want to install anything you can write a simple batch file that will do the work.

Simply create a wifihotspot.bat file containig the following two lines:

netsh wlan set hostednetwork mode=allow ssid=<your wifi name> key=<your password>
netsh wlan start hostednetwork

shell1

where <your wifi name> is the name you want to assign to your hotspot and <your password> is the password to access to the hotspot.

Now right-click on your bat file and then run it as administrator.

You may also modify the batch file, adding the code to ask for administrator privilegies as shown at http://wp.me/p3oCX7-1We

The final code will be:

@echo off

:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (

echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"=""
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"

"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B

:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
netsh wlan set hostednetwork mode=allow ssid=pau key=12345678
netsh wlan start hostednetwork

Now, when you’ll double click the bat file you will be asked for administrator privilegies.

Gg1