Use Wi-Fi Adhoc Network in Windows 8

imgI guess, by default Windows 8 does not provide a good way to use Ad Hoc network for local file sharing and LAN gameplay between two computers. I big Pocket Tanks fan, so I need to use the LAN gameplay feature. This lead me into discovering a way to use Wi-Fi Adhoc network in Windows 8. The steps involved are pretty simple. Here I am sharing two ways to achieve this in your Windows 8 computer.

The Geeky Way

Paste the following code into notepad.

@echo off

if ‘%errorlevel%’ == ‘0’ ( goto gotPrivileges ) else ( goto getPrivileges )

if ‘%1’==’ELEV’ (shift & goto gotPrivileges) 

setlocal DisableDelayedExpansion
set “batchPath=%~0”
setlocal EnableDelayedExpansion
ECHO Set UAC = CreateObject^(“Shell.Application”^) > “%temp%OEgetPrivileges.vbs”
ECHO UAC.ShellExecute “!batchPath!”, “ELEV”, “”, “runas”, 1 >> “%temp%OEgetPrivileges.vbs”
exit /B

setlocal & pushd .

REM Run shell as admin (example) – put here code as you like
ECHO ============================
ECHO Setting up Adhoc Network …
ECHO ============================
netsh wlan set hostednetwork mode=allow ssid=LocalAdHoc key=password
netsh wlan start hostednetwork
ECHO Use “netsh wlan stop hostednetwork” command to stop LocalAdHoc Network.
cmd /

Save this file as any name you want with extension “cmd”. Like I saved it as AdHoc.cmd [You can download this file here.]

If you are keen enough to know how this code works, its simple. First few lines of code generates a visual basic script to get administrator privileges in temporary files folder of Windows and then last few lines does the actual work. Notice the SSID in Red colour and Password in Green colour. You can change this as per your requirement.

To use this, just double click the cmd file you created, and now anyone can connect to you using the password as above.

Noob’s Way

If you don’t want look above, straightaway download this file and double click. Network name is “LocalAdHoc” and Password is “password”.


Note: – If you still get any problems while connecting to LAN in Windows 8, check your IP settings are correct and all PCs are in same subnet or not.

A new experience of Windows 8

LogoI am seriously so impressed by Windows 8 that I took a step to blog about it. The best part is Microsoft has first time tried to experiment and go beyond its conventional start menu, which its has been following for past 20 years in every edition of Windows. Windows 8 comes with a brand new concept of start menu, offering much like a mobile layout of installed applications and programs on PC. Talking about “Application” and “Programmes”, their is another big change which Microsoft has made, that now you can run Windows application… So, what’s new in this..? Well.., earlier version of Windows used to run programmes, this version of Windows supports not only programs but Windows applications as well, these are all made to give you a feel of true mobility. The user experience  of Windows 8 applications is much similar to any mobile platform. There is also an app store for the same.


Lets start with the improvements in Windows 8 over previous edition. When, I installed Windows 8 first run included screens like setting up Microsoft account, I wondered why, but now that I got it, it is because now you can sync your computer settings to your Microsoft account, so next time you format your PC, you can restore your settings back. The other major improvement is boot time and shutdown time, its faster than ever before, this may be because this time I have installed 64 bit version of Operating system, earlier I used 32 bit version of Operating Systems. But booting up PC now works like charm. The next big improvement is its Task Manager, it gives a hell lot of details than any other version of windows ever did… Check out this screenshot of Task Manager below, and this is just one page of a tab shown, there is a lot more to it.

Windows 8 Task Manager

There are many good apps added to its App Store, however I don’t think there is any reason to install them, most of the things which those apps does can be done in your browser. I guess, most of the apps are HTML based only. However, there are some good apps as well, and those are mostly games, few of them which I love playing is Jet Pack Joyride, Cut the Rope, Where is my Perry etc. With all good said, lets get to the other side of Windows 8, which is not so good.

The major challenge in Windows 8 is that a few things have got their place changed, so if you have been using windows there may be some things, for which you won’t find how to get that thing back. For example, I used to right click and drag programmes which I frequently use to start menu, but now, as there is no start menu, you have to right click and pin them, and then cam my major annoyance, after pinning that program to start menu I was unable to rename it, I tried right clicking in start menu but there was not an option for that. So, after a bit of digging in, I found a workaround, I have shared this here-

Renaming shortcuts in Windows 8

There are also a lot of new shortcuts added in this version of Windows, which will help you work faster if you love to use keyboard, some of these keyboard shortcuts have been shown below in the video.

Shortcuts in Windows 8

In my conclusion, I would like to say, if you are the one who likes to explore new things you must try Windows 8, you might get a few problems in first few days, but when you will get used to of it, it will feel amazing appealing to work in Microsoft’s new Metro work environment.