Rosher Consulting

Software Consulting and Development Services

How to send your Windows Home Server to sleep via the Home Server Console

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:

  1. Download PowerOff and copy it over to your Windows Home Server.
  2. In the same place where you copied the PowerOff executable, create a batch file called ‘PowerOff.bat’.
  3. Edit this file and enter the following (don’t forget to change the folder location to where you copied PowerOff):
    1. D:\shares\Software\poweroff.exe standby –immediate
  4. Save the batch file and close it.
  5. Download Advanced Admin console and copy it to your Windows Home Server add-ins folder.
  6. Start the Windows Home Server console.
  7. Click on ‘Settings’ and then go to the ‘Add-ins’ section.
  8. On the ‘Available’ to install tab, select the Advanced Admin console and install it.
  9. Once the add-in is installed, log back in to the Home Server console.
  10. Switch to the Advanced Admin console add-in.
  11. Click the drop down arrow at the far right of the toolbar and click ‘Customize…’.
  12. Switch to the ‘Custom shortcuts’ tab and click ‘Add Shortcut…’.
  13. Browse to where you created the ‘PowerOff.bat’ file and then click ‘Next’.
  14. Name the shortcut ‘Sleep’ and then click ‘Finish’.image
  15. Click ‘OK’ to exit the settings dialog.
  16. Now when you click the drop down arrow at the far right of the toolbar, you should see your new ‘Sleep’ shortcut.image

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!

CropperCapture[2] CropperCapture[3]