Windows wakes up soon after going to sleep

I think there are two main reasons why Windows would wake up “by itself” (without pressing a key on the keyboard or clicking the mouse).

  1. Scheduled tasks;
  2. Devices allowed to wake up the computer.

Scheduled tasks are fairly simple to look into and it was not the problem at the time of writing this post, so I’ll skip straight to the second point.

We can get a list of devices that are allowed to wake up the computer from sleep by typing at the command prompt:

powercfg -devicequery wake_armed

At the time, I had 3 allowed devices:

  • Intel(R) 82579V Gigabit Network Connection
  • HID-compliant mouse
  • Microsoft USB Natural Ergonomic Keyboard 4000 (Mouse and Keyboard Center) (001)

I don’t need WOL or anything like that so I disallowed the network card to wake up the computer using Device manager:

Untitled

And voilà, my computer now stays asleep until I use the mouse or keyboard. I started having this problem after moving the computer to another network, so I suspect the new router or other network connected computers sent packets that waked it up.

Edit with GIMP contextual menu Windows 7, 8

Explorer is looking for the shell command HKCR\SystemFileAssociations\image, which should be "C:\Program Files\GIMP 2\bin\gimp-2.8.exe" "%1"

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit with GIMP]
@=”Edit with GIMP”

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit with GIMP\command]
@=”\”C:\\Program Files\\GIMP 2\\bin\\gimp-2.8.exe\” \”%1\””

Windows Server 2008 self-signed certificate expires

A self-signed certificate is issued for web services (IIS) and it has a default validity period of 2 years. After that time, users of web services will be prompted with a dialog box asking if they still want to access a service that uses an outdated certificate. Outlook users could also be prompted with this dialog box. This box will appear every time a new connection is made.

To prevent this, we need to reissue another certificate to replace the old one. Self-signed certificates cannot be renewed.

We can easily do this using the “Fix my network” wizard. On SBS 2008, it can be accessed under Network => Connectivity in the SBS console. I think we can use this same wizard to reissue a certificate up to a month before the old one expires.

sources:
http://technet.microsoft.com/en-us/library/dd378790(WS.10).aspx
http://technet.microsoft.com/en-us/library/cc546020(v=ws.10).aspx