Table of contents
TOC
Collapse the table of content
Expand the table of content

DevCon Restart

Last Updated: 11/22/2016

Stops and restarts the specified devices. Valid only on the local computer.

    devcon [/r] restart {* | ID [ID ...] | =class [ID [ID ...]]} 

Parameters

/r
Conditional reboot. Reboots the system after completing an operation only if a reboot is required to make a change effective.

\*
Represents all devices on the computer.

ID
Specifies all or part of a hardware ID, compatible ID, or device instance ID of a device. When specifying multiple IDs, type a space between each ID. IDs that include an ampersand character (&) must be enclosed in quotation marks.

The following special characters modify the ID parameter.

CharacterDescription

Matches any character or no character. Use the wildcard character () to create an ID pattern, for example, disk.

@

Indicates a device instance ID, for example, @ROOT\FTDISK\0000</strong>.</p></td>

'

(single quote)

Matches the string literally (exactly as it appears). Precede a string with a single quote to indicate that an asterisk is part of the ID name and is not a wildcard character, for example, '*PNP0600, where *PNP0600 (including the asterisk) is the hardware ID.

=class
Specifies the device setup class of the devices. The equal sign (=) identifies the string as a class name.

You can also specify hardware IDs, compatible IDs, device instance IDs, or ID patterns following the class name. Type a space between each ID or pattern. DevCon finds devices in the class that match the specified IDs.

Comments

The system might need to be rebooted to make this change effective. To have DevCon reboot the system, add the conditional reboot parameter (/r) to the command.

Sample Usage

devcon restart *
devcon restart pci*
devcon restart "PCI\VEN_115D&DEV_0003&SUBSYS_0181115D"
devcon restart =printer
devcon restart =printer *desk*

Example

Example 38: Restart a device

Send comments about this topic to Microsoft

© 2017 Microsoft