DevCon Reboot

Note

PnPUtil ships with every release of Windows and makes use of the most reliable and secure APIs available. We recommend using PnPUtil instead of DevCon. See the Recommended replacement below and Replacing DevCon for more information.

Stops and then starts the operating system. Valid only on the local computer.

devcon reboot
shutdown /r /t 0

For more recommended replacements, see Replacing DevCon.

Comments

Unlike the /r parameter, which reboots the system only if required to make a change effective, the DevCon Reboot operation reboots the system without determining whether a reboot is required.

DevCon uses the standard ExitWindowsEx function to reboot. If the user has open files on the computer or a program will not close, the system does not reboot until the user has responded to system prompts to close the files or end the process. For more information about ExitWindowsEx, see the Microsoft Windows SDK.

Sample usage

devcon reboot

Example