I have my Home server configured to wake up for a couple of hours a day to perform backups and then go back to sleep again, which is made possible via the excellent LightsOut add-in. However I also occasionally use my Home Server outside of these hours by sending it a WakeOnLan (WOL) request to wake up as I can’t physically switch the machine on as it’s up in the loft out of the way.
Once it’s up and running, the question then becomes how do I send it back to sleep again? The most obvious answer is that I can remote desktop into it and send it to sleep there, but that’s a bit long winded especially when you’ve most likely got the Home Server console open anyway.
My solution involved two third party applications, the first is PowerOff which allows you to control the power state of your pc and the second is Advanced Admin console, which is a Home Server add-in. Once setup with these two applications you’ll be able to send your Home Server to sleep simply via a toolbar button.
Here’s the steps I followed to get this functionality:
- Download PowerOff and copy it over to your Windows Home Server.
- In the same place where you copied the PowerOff executable, create a batch file called ‘PowerOff.bat’.
- Edit this file and enter the following (don’t forget to change the folder location to where you copied PowerOff):
- D:\shares\Software\poweroff.exe standby –immediate
- Save the batch file and close it.
- Download Advanced Admin console and copy it to your Windows Home Server add-ins folder.
- Start the Windows Home Server console.
- Click on ‘Settings’ and then go to the ‘Add-ins’ section.
- On the ‘Available’ to install tab, select the Advanced Admin console and install it.
- Once the add-in is installed, log back in to the Home Server console.
- Switch to the Advanced Admin console add-in.
- Click the drop down arrow at the far right of the toolbar and click ‘Customize…’.
- Switch to the ‘Custom shortcuts’ tab and click ‘Add Shortcut…’.
- Browse to where you created the ‘PowerOff.bat’ file and then click ‘Next’.
- Name the shortcut ‘Sleep’ and then click ‘Finish’.
- Click ‘OK’ to exit the settings dialog.
- Now when you click the drop down arrow at the far right of the toolbar, you should see your new ‘Sleep’ shortcut.
If you click on your new shortcut your Home Server will go to sleep. When you choose the command, it may appear as if your Home Server Console has locked up, it hasn’t, the Home Server is just doing its thing and after a while the Console will say it has lost its connection to the Home Server, meaning your Home Server is now asleep!