Install and configure Wake On Lan

Jun 6, 2013 at 1:38 PM
Edited Jun 6, 2013 at 1:39 PM
Describe How to Configure Web Based WaeOnLan

Here we need to configure one wakeonlan website to Power On machine from Home or from remote location .

System Requirements

1.Windows Machine ( Windows 7 or server OS)

  1. Dotnet framework 2.0
4.SQLExpress or SQL Server

5.Wakeonlan Site - Download from here


Copy the website to Proper location ,in this example i copied to c:\inetpub\wwwroot\wakeonlan

Open IIS ,Click "Application Pool"

Create a new Application pool as shown Below image


Click Default website and change the location where we copied the files


Change the Application pool to wakeonlan and change the Physical Path


Now need to change the Authentication ,this script will support Windows authentication

Click the DefaultSite -> Authentication

Disable Anonymous Authentication and Enable Windows Authentication


For working with windows Authentication You need to create some windows Users ,To create Windows user do the following

Type LUSRMGR.MSC in command line

Click Users

Create a new User

Now the Next step is Configure SQL Server,we need to attach the SQL db to server,DB is located in


This script work on both SQLExpress or In SQLServer ,open SQL Management studio

Login to the server

Right Click the database and click Attach

Click Add and select the MDF file (C:\inetpub\wwwroot\WakeOnLan\App_Data\WakeOnLan.mdf)

Once add database name will be the path of the db ,so we need to rename the DB to wakeonlan (right click the db and select rename)

create a new SQL user and add permission to wakeonlan DB

Click Security tab ->Right Click Logins ->Select New Login

Type Login name and select SQL Server authentication and add password


Click User mapping select the DB and add the appropriate permission like the below image click OK


After We need to configure the Site WEB.CONFIG

Go to the file location and edit web.config file using any text editor

On the 14th line you need to edit the database server name,database name,password like below

<add name="WakeOnLanConnectionString" connectionString="Data Source=DATABSENAME;Initial Catalog=DATABASENAME;Persist Security Info=True;User ID=USERNAME;Password=PASSWORD" providerName="System.Data.SqlClient"/>

the working code of my config is folows

<add name="WakeOnLanConnectionString" connectionString="Data Source=localhost;Initial Catalog=wakeonlan;Persist Security Info=True;User ID=wakeonlan;Password=Passw0rd#01" providerName="System.Data.SqlClient"/>

save the file ,finally open the website ,it will as for username and password ,enter the windows user name and password we created earlier ,

First of all add the required computers for that need to power on the computer first and add computer using IP adress or using Computer name then only it will detect the MAC Address ,

You must enable wake on lan on BIOS Settings ,it will vary on every computer model check with the Manuel and enable

for More Tech visit