In Windows XP and Server 2003, we can launch ‘Add Hardware Wizard‘ from command line using the below command.
This command can be also be used from Run window. Below is snapshot of this wizard.
The above command does not work in Windows 7. We can add new hardware by plugging in the device to the computer. Windows 7 will automatically try to install the drivers for it. If it could not find, you will be prompted to install it from a CD.
To install legacy hardware, you can open device management wizard, and then click on Action -> Add legacy hardware.