Previous Next

DevCon Rescan

Uses Windows Plug and Play features to update the device list for the computer. Valid on local and remote computers.

devcon [/m:\\computer] [/r] rescan 

Parameters

/m:\\computer
Runs the command on the specified remote computer. The backslashes are required.
/r
Conditional reboot. Reboots the system after completing an operation only if a reboot is required to make a change effective.

Comments

The /m parameter must precede the operation name (rescan). Otherwise, DevCon ignores the /m parameter and scans the local computer without returning a syntax error.

Rescanning can cause the Plug and Play Manager to detect new devices and to install device drivers without warning.

Rescanning can detect some non-Plug and Play devices, particularly those that cannot notify the system when they are installed, such as parallel-port devices and serial-port devices. As a result, you must have Administrator privileges to run DevCon Rescan commands.

Sample Usage

devcon rescan
devcon /m:\\Server01 rescan

Example

Example 37: Scan the computer for new devices