# Create the Web WakeUp site

OneSite Wake allows users to wake powered-down or asleep/hibernating computers on demand, reducing energy consumption while maintaining access outside of business hours.

After you have installed and configured the Web WakeUp site, you can sign in and see a list of computers you have recently used. You can then select a computer to initiate a wake request. The request is processed by the Adaptiva Server, which performs the wake operation and returns status information to the web interface. Users can wake only computers within their assigned scope as defined in ConfigMgr Security.

**Features**

* Deploy multiple Web WakeUp sites to support scalability and high availability
* Support Windows load balancing
* Integration with Configuration Manager (ConfigMgr) to enable automated operation and support of large-scale environments.

## AdaptivaWebWakeup.ZIP file

The AdaptivaWebWakeup.ZIP file contains the web components and files required for installing the Adaptiva Web Wakeup site. The ZIP file is included in the Adaptiva server source folder.

1. Extract the contents of AdaptivaWebWakeupSite.zip to any temp folder. Copy the Web files from the extracted Wake folder to C:\inetpub\wwwroot\Wake.
2. Create a folder with the path C:\inetpub\wwwroot\Wake\Control.
3. Copy the following files from extracted location\Control to **C:\inetpub\wwwroot\Wake\Control**:
   * CheckPower.exe
   * Wake.exe

## Create the Web WakeUp Service Application Pool

1. Open the Internet Information Services (IIS) Manager console from Administrative Tools.
2. Navigate to `<Server>\Application Pools` and in the **Actions** pane, select **Add Application Pool**.
3. In the **Add Application Pool** dialog:
   * **Name**: Enter a name for the new application pool, ex: Web WakeUp Pool
   * **.NET Framework version**: v4.0.30319 or higher.
     * Otherwise you get this error

       ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-482ff67bc5df476c187bead704eab48e5b543b04%2Fapplication-pool-error.png?alt=media)
   * **Managed pipeline model**: Integrated
   * **Start application pool immediately**: Checked

     ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-01ca778fbc17014c64847089ee19b3cb76594b4a%2Fadd-application-pool.png?alt=media)
4. Click **OK**.

## Create the Web WakeUp IIS Application

1. Navigate to the `<localserver>\Sites\Default Web Site` node.
2. Right-click the **Default Web Site** node, and select **Add Application** from the context menu.

   ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-6938c2b5d7ae75c5c311163d4ee19e97ca143d80%2Fadd-application-default-website.png?alt=media)
3. Enter the following:
   * **Alias**: This can be any alias which will become part of the URL users must type to access the Web WakeUp service. In this example, the alias will be Wake.
   * **Physical Path**: The location to the folder where AdaptivaWebWakeup.ZIP file was unzipped. Ex: **C:\inetpub\wwwroot\Wake**.
   * **Application pool**: Click the **Select...** button and choose the **Web WakeUp Pool**.

     ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-74c217b55682e9cd0f7b67827e40ad44b70adad5%2Fweb-wakeup-pool.png?alt=media)
4. Click **OK** to create the application.
5. Make sure the Wake application is selected, then in the **Details** pane, double-click **Authentication**.

   ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-9284bff514a0f49792b3d98dc5de6709871af4ce%2Fauthentication.png?alt=media)
6. Verify and set the following:
   * **Anonymous Authentication**: Disabled
   * **ASP .NET Impersonation**: Enabled
   * **Windows Authentication**: Enabled

     ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-0260465e48ff5d0ee6f44e726db19dd1227f3a1d%2Fauthentication-enabled.png?alt=media)
7. Right-click **ASP.NET Impersonation** and select **Edit**.
8. Select **Specific User** then click the **Set…** button.

   ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-082c944804ec2d3bea6b49791a2129ac26bc1614%2Fset-button.png?alt=media)
9. Enter the **domain\username** and **password** of the Web WakeUp service account then click **OK**.
10. Click **OK** again to save the configuration.
11. Double-click the Wake application again, and in the **Details** pane, under the **ASP.NET** section, open **Application Settings**.
12. Make the following modifications for the Application settings:
    * **ICAPath**: Set the value of this property to the folder where Wake.exe will be located located. Ex: **C:\Inetpub\wwwroot\Wake\Control\\**
    * **Server**: Set the value of this property to the name of the Adaptiva server.
    * **TimeOffset**: If the web server and Adaptiva Server are in different time zones, set the value of the TimeOffset property to the time difference in hours. (If the web server is ahead, the value is negative, else the value is positive)
    * **WOLPort**: Set the value of this property to the listening port of the Adaptiva Server. The default value of 43201 is already set.

      ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-0eab1069dff1ec13968d488baf51587db64be467%2Fapplication-settings.png?alt=media)

{% hint style="info" %}
A backslash at the end of the path is required for **ICAPath**.
{% endhint %}

1. Double-click the Wake application again, and under the ASP.NET section, open **Connection Strings**.
2. Select and edit the **Adaptiva** property with the SQL server name hosting the Adaptiva database and the name of the Adaptiva database name.

   `Data Source=AdaptivaSQLServer;Initial Catalog=AdaptivaDBName;Integrated Security=True`

   * Where **AdaptivaSQLServer** is the name of the SQL server and **AdaptivaDBName** is the name of the Adaptiva database.
   * Note: If the Adaptiva database is running in a named instance, provide the database server name and instance. Ex: **SQLServer\Instance**

     ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-993b382a610cc6176c23a5ec89c021ba3b5db9fc%2Fedit-connection-string.png?alt=media)
3. Click **OK**.
4. Select and edit the **SMSSQL** property with your server information:

   `Data Source=ConfigMgrSQLServer;Initial Catalog=ConfigMgrDB;Integrated Security=True`

   * Where ConfigMgrSQLServer is the name of the SQL server hosting the ConfigMgr database, and ConfigMgrDB is the name of the ConfigMgr Database.
   * Note: If the ConfigMgr database is running in a named instance, provide the database server name and instance. Ex: **SQLServer\Instance**

     ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-842a65ac5713323257b2d7842e0eb6e7a8cfd562%2Fedit-connection-string-configmgr.png?alt=media)
5. Click **OK**.

   ![](https://226687595-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FopDQFA2ESgR7Cn1Z9WcH%2Fuploads%2Fgit-blob-a0b8cf1f3a59ac0a3896bb52c6fe75755579bcbc%2Fconnection-strings.png?alt=media)

## (Optional) Enable Delegation

If the Web WakeUp site is not hosted on the server hosting the ConfigMgr SQL database, clients connecting to the web site from other computers will not be able to authenticate and will receive an error when visiting the Web WakeUp page. To resolve this issue, the computer hosting the Web WakeUp site, must be trusted for delegation in Active Directory.

Please see our [SPNs and Delegation](https://docs.adaptiva.com/platform-install/additional-configuration/platform-spns-delegation) guide to create and configure your SPNs and Delegate Kerberos authentication.

{% hint style="info" %}
In older versions of Active Directory, this setting may be located in the General tab as **Trust this computer for delegation**.
{% endhint %}

1. Wait for directory replication to occur.
2. On the remote client, log off then log back on again to clear any Kerberos tickets.
3. Attempt to connect to the Web WakeUp server web page: `http://<servername>/Wake`.

## Use the Web WakeUp Site

Web Wake-up allows you to manually wake up devices via an online portal from any machine on the network.

To access the Web WakeUp site, open a browser and visit: `http://localhost/Wake` in the browser or `http://<servername>/Wake`

{% hint style="info" %}
If the Adaptiva and ConfigMgr servers are on the same machine you will also need to add the port number:

`http://<servername>:[port]/Wake`
{% endhint %}

Web WakeUp will query the Configuration Manager (ConfigMgr) database to get a list of machines that you have logged on to and can either check the power status of a machine. If the machine is off, the user can click **Wake** to wake the machine.

{% hint style="info" %}
If a machine isn't listed, you can manually enter the machine name in the text field.
{% endhint %}
