Reboots the system after completing an operation when a reboot is required to make the change effective. By default, DevCon does not reboot the system. If you omit the path, DevCon assumes that the file is in the current directory. The specified hardware ID must exactly match the hardware ID of the device. Patterns are not valid. Do not type a single quote character ' to indicate a literal value.
The system might need to be rebooted to make this change effective. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Is this page helpful? Please rate your experience Yes No. Any additional feedback?
The DevCon source code is also available so that you can examine the methods that DevCon uses to retrieve and change setup and configuration data. DevCon illustrates the use of general setup functions , device installation functions , and PnP Configuration Manager functions.
Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Windows Device Console Devcon. You can respond by rebooting the system, either manually, or by using the DevCon Reboot operation. In response, DevCon enables the device and then reboots the system to make the enabling effective. The following command enables all printer devices on the computer by specifying the Printer setup class in a DevCon Enable command.
In response, DevCon displays the device instance ID of the printer that it found in the Printer class and reports that it is enabled. Note Before using an ID pattern to disable a device, determine which devices will be affected. This command identifies the devices by their device instance IDs as indicated by the at character that precedes each ID.
Each device instance ID is separated from the others by a space. The following command uses the DevCon Update operation to replace the current device driver for communication ports on the system with a test driver specified in the test.
You can use this command to replace signed drivers on the system with alternate drivers for testing or troubleshooting, or to associate the devices with the newest version of the same drivers. In response, DevCon displays a Hardware Installation warning explaining that the driver has not passed Windows Logo testing.
If you select the Continue Anyway button on the dialog box, the installation continues. The DevCon UpdateNI operation is identical to the DevCon Update operation except that it suppresses all user prompts that require a response and assumes the default response to the prompt.
In this case, DevCon does not display the Hardware Installation warning. Instead, it assumes the default response, Stop Installation. As a result, DevCon cannot update the drivers and displays a failure message. The following command uses the DevCon Install operation to install a keyboard device on the local computer.
The command includes the full path to the INF file for the device keyboard. In response, DevCon reports that it has installed the device, that is, it has created a device node for the new device and updated the driver files for the device. To install this device during an unattended setup, begin by adding the following files to a floppy disk: devcon.
The command also specifies that DevCon use the Netloop. Finally, add network configuration settings to the unattended setup file and run the unattended setup. Warning Before removing any devices by using a pattern, determine which devices are affected.
The command specifies the Net class and then refines the search by specifying devices in the class whose hardware ID or compatible ID include "ndiswan. Warning Before removing any devices by using a pattern, determine which devices will be affected. The following command use the DevCon Rescan operation to scan the local computer for new devices.
You can also use a DevCon Rescan command on a remote computer. The following command uses the DevCon Restart operation to restart the loopback adapter on the local computer. The at character identifies the string as an device instance ID.
The single quote character ' , which requests a literal search, prevents DevCon from interpreting the asterisk in the ID as a wildcard character. The following command uses the DevCon Reboot operation to reboot the operating system on the local computer and to associate the reboot with a hardware installation. In response, DevCon displays a message indicating that it is restarting the computer Rebooting local machine.
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. It uses the at character to indicate that the string is a device instance ID.
The command does not use any symbol parameters to position the ID. In this case, because the device has no other hardware IDs, placement is irrelevant. In response, DevCon displays a message indicating that it is added beep to the hardware ID list for the device. It also displays the resulting hardware ID list.
In this case, there is only one hardware ID in the list. The command uses the - symbol parameter to add the new hardware ID to the end of the hardware ID list for the device, in case a preferred hardware ID has been created for one of the devices. After you assign the same hardware ID to a group of devices, you can use the other DevCon operations to view and change the devices in a single command. It uses the hardware ID, legacy , to identify all devices that have that hardware ID.
Then, it uses the! Before using DevCon, the device had the following list of hardware IDs:. Because Hw2 already appears in the list, it is moved, not added. The command identifies the device by its device instance ID, as indicated by the at character preceding the ID. In response, DevCon displays the new hardware ID list for the device.
Note that Hw1 and Hw2 appear at the beginning of the list in the specified order. The following command uses the!
0コメント