---
title: "Windows 2012 prevent reboot"
date: "2013-09-24"
path: "/160-windows-2012-prevent-reboot.html"
section: "/ramblings"
aliases:
  - "/160"
  - "/160-windows-2012-prevent-reboot"
  - "/160.html"
  - "/ramblings/160-windows-2012-prevent-reboot.html"
---

Our office Windows 2012 server insists on rebooting during office hours showing us a screen shot like this:

![Windows 2012 server screen shot](/images/032113_0111_StopWindows2.png)

To prevent the reboot simply disable the [update service](http://blog.powerbiz.net.au/fixes/stop-windows-server-2012-and-windows-8-from-automatically-rebooting-the-server-after-logging-in/) using the following command which you must run as an administrator through the command prompt or powershell:

```
net stop wuauserv
```

Remember though that if you log out and log back in the service will kick-start again and you'll need to re-apply the command.
