Late in the game and probably won't be read, but you may have a much simpler thing going on. If you get Windows Updates automatically via the web, you could have it set to reboot when the install is complete. That's the default I think. Many, but not all, updates require a reboot. Another...