Today me and my roommate were discussing to leave the laptop to download some files using torrent client. Then we thought like, what if power goes off ? Since, we are using Beam Telecom, we need to manually login via a webpage to activate the Internet connection when power comes back.
Then I have searched online and find some useful links which are shown below.
But still, as you know, we weren’t satisfied with the solution like, having as a startup script. Which will run whenever you just login to the system.
What if, we have left the laptop/desktop and power goes (But laptop/desktop running on battery/UPS), the startup script trick won’t solve our problem. Again, someone has to manually open browser and do the web login or start the batch file which was mentioned in the above files. So we have decided to find some easy solution which depends on the network connection.
Our home network setup:
I hope, now a days most of the home networks are like our network which was routed as below
BeamTele –> Wireless Router –> Laptops and Mobiles (Wi-Fi)
- Open this link. https://docs.google.com/file/d/0B16cWwxzg0m5X1BPZXQySm5nV28/edit?usp=sharing
- Click on "File -> Download" to download the zip file
- Those files I have been copied from this link and modified the batch file
- Extract the zip file to a safe location, where you accidentally don’t delete the files. Please don’t put it in common download folder, you may accidentally delete it.
- You will find an wget.exe and related dlls along with a batch file.
- Move those wget.exe and dlls to C:/WINDOWS folder
- Let the batch file path be clear without any spaces in folder names (precaution)
- Please replace the username and password details with your Beam Tele userid and password in the batch file and don't forgot to save the file.
Note: Please place wget.exe and all the dlls in C:/WINDOWS folder. Because this path is already available in “PATH” environment variable
Out next step would be using this batch file and automatically running it whenever WLAN connected
We have got an idea to create a task, which described below. Windows "Task Scheduler" is similar to "Cron Jobs" in Linux. So, lets start created "BeamTeleAutologin" task as described below.
- Whenever power goes off, router will be off (mostly, until unless you have connected your router also to an Inverter/UPS)
- If your router power goes off i.e. wireless router not connected any Inverter/UPS then blindly follow this method
- Create a task scheduler as described below
- Search for “Task Scheduler” on Windows 7/8
- Open “Task Scheduler”
- Click on “Task Scheduler (Local)”
- On right most (3rd) column, you will find an option like “Create Task”
- Click on “Create Task”
- In “General” tab, give a name of task like “Beam Tele Autologin” with some description (optional)
- In “Security Options”, Choose “Run whether user logged in or not”
- In “Configure for” dropdown, select “Your OS/Server OS” (Windows 7, Windows Server 2008 R2)
- You can click on “Hide”, if you want to hide the task from library
- Go to “Triggers” tab
- Click on “New” button
- Select “On an event” option from the “Begin the task” drop down
- By default, “Basic” option get selected
- From the “Log” dropdown, choose “Microsoft-Windows-WLAN-AutoConfig/Operational”
- From “Source” dropdown, choose “WLAN-AutoConfig”
- Put some delay task for some 1 minute (Optional)
- Go to “Actions” tab
- Select the batch file, which you have extracted from the downloaded “BeamTeleAutoLogin.zip”
- Go to “Conditions” tab
- Uncheck “Power” category options
- (Deselect) Start the task only if computer is on AC power
- (Deselect) Stop if computer switches to battery
- Check “Network” category options
- (Select) Start only if the following network connection is available
- Select your “WLAN” name from the list
- Go to “Settings” tab
- Check the necessary options like
- Allow task to be run on demand
- From the only available drop down, select “Do not start a new instance”
- Click on “Ok” button
ping 220.127.116.11 | find "Reply"
if errorlevel 1 goto :eof
Testing the Autologin Task:
- To test this task is running or not, do the following
- Open http://portal.beamtele.com in browser
- If you have already logged in, you can see a “Logout” option
- Click on “Logout” button
- So, by now you are no longer connected to Internet. You need to manually enter the details to login.
- Disconnect/Disable your WLAN connection. So, router is not connected to laptop/desktop.
- Now, you run the task if its not running by selecting task, click on “Run”
- Connect to your WLAN now
- Do not enter any details for login
- If everything was properly setup then it should login automatically with your credentials.
If its working fine, then enjoy the hack.
Note: Please send your feedback and comments to firstname.lastname@example.org
Blogger Labels: Beam,Telecom,Internet,Connection,Auto,Login,Task,friends,laptop,files,torrent,links,cable,portal,solution,script,system,battery,Again,batch,setup,BeamTele,Router,Laptops,requisites,Download,Extract,location,folder,Move,path,spaces,precaution,Note,environment,WLAN,Inverter,Inverter,method,Create,Search,Scheduler,Open,Click,Local,column,option,General,Tele,Autologin,description,Choose,user,Configure,Server,Hide,library,Select,event,Begin,Basic,From,Microsoft,AutoConfig,Operational,Source,Optional,Actions,BeamTeleAutoLogin,Conditions,Uncheck,Power,category,Deselect,Start,computer,Stop,Check,Network,instance,Schedule,Disable,Delete,Logout,Disconnect,Connect,credentials,feedback,comments,Options,html,desktop,browser,wget,dlls