Jump to content

Is there a way to make windows rescan hardware?


TheWave

Recommended Posts


Well, i think thats near to an impossible, because the drivers of the hardware in the PC's are always in the page of the manufacturer and doesn't exist one main service who can make a "global drivers database" to be used as a absolute updater.

Link to comment
Share on other sites

you misunderstood me. I have few driver packs on lan and i want windows to search there for drivers for all the devices that has no drivers. i can copy them to c: and put all the links to inf folders in the registry so it will search there automatically but how do i make it rescan?

Link to comment
Share on other sites

you misunderstood me. I have few driver packs on lan and i want windows to search there for drivers for all the devices that has no drivers. i can copy them to c: and put all the links to inf folders in the registry so it will search there automatically but how do i make it rescan?

Do you mean this, because it isn't obvious to me what you're saying:

-Add hardware

-Add hardware Wizard ==> let it automatically scan the defined folder (e.g.: C:\Windows\DriverPackLAN)

Is this what you mean???

Link to comment
Share on other sites

what i want is to install from xp's cd only lan drivers. on the first boot i want to copy all the drivers form lan to local hdd and i want to automaically install all the "unknown devices". Is it possible?

For plug & play devices:

1. download devcon (google is your friend)

2. run > cmd > devcon rescan

Link to comment
Share on other sites

obtain the current status of all your PCI and USB PnP devices

devcon status @PCI\V* @USB\V*

sample output

PCI\VEN_1033&DEV_0035&SUBSYS_00011799&REV_41\4&2B96F39&0&50F0

    Name: NEC PCI to USB Open Host Controller

    Driver is running.

PCI\VEN_1033&DEV_0035&SUBSYS_00011799&REV_41\4&2B96F39&0&51F0

    Name: NEC PCI to USB Open Host Controller

    Driver is running.

PCI\VEN_1033&DEV_00E0&SUBSYS_00021799&REV_02\4&2B96F39&0&52F0

    Name: NEC PCI to USB Enhanced Host Controller B1

    Driver is running.

PCI\VEN_10DE&DEV_002D&SUBSYS_002210DE&REV_15\4&5F3FF6B&0&0008

    Name: NVIDIA RIVA TNT2 Model 64 Pro

    Driver is running.

PCI\VEN_8086&DEV_1130&SUBSYS_00000000&REV_02\3&61AAA01&0&00

    Name: Intel® 82815 Processor to I/O Controller - 1130

    Driver is running.

PCI\VEN_8086&DEV_1131&SUBSYS_00000000&REV_02\3&61AAA01&0&08

    Name: Intel® 82815 Processor to AGP Controller - 1131

    Driver is running.

PCI\VEN_8086&DEV_2440&SUBSYS_00000000&REV_02\3&61AAA01&0&F8

    Name: Intel® 82801BA LPC Interface Controller - 2440

    Driver is running.

PCI\VEN_8086&DEV_2444&SUBSYS_24118086&REV_02\3&61AAA01&0&FC

    Name: Intel® 82801BA/BAM USB Universal Host Controller - 2444

    Driver is running.

PCI\VEN_8086&DEV_2445&SUBSYS_000B0E11&REV_02\3&61AAA01&0&FD

    Name: SoundMAX Integrated Digital Audio

    Driver is running.

PCI\VEN_8086&DEV_2449&SUBSYS_00120E11&REV_01\4&2B96F39&0&40F0

    Name: Intel® PRO/100 VM Network Connection

    Driver is running.

PCI\VEN_8086&DEV_244B&SUBSYS_24118086&REV_02\3&61AAA01&0&F9

    Name: Intel® 82801BA Ultra ATA Controller

    Driver is running.

PCI\VEN_8086&DEV_244E&SUBSYS_00000000&REV_02\3&61AAA01&0&F0

    Name: Intel® 82801BA/CA PCI Bridge - 244E

    Driver is running.

PCI\VEN_9004&DEV_3860&SUBSYS_38699004&REV_03\4&2B96F39&0&68F0

    Name: Adaptec AHA-2930CU PCI SCSI Controller

    Driver is running.

13 matching device(s) found.

if one or more device not installed the message "Driver is running." would be different.

to install the device named: Intel® PRO/100 VM Network Connection

devcon updateNI c:\PnPDrvrs\NIC\net82557.inf "PCI\VEN_8086&DEV_2449&SUBSYS_00120E11&REV_01"

type devcon help updateni for more details

in my example :

<inf> = c:\PnPDrvrs\NIC\net82557.inf = name and path of the driver inf file

<hwid> = "VEN_8086&DEV_2449&SUBSYS_00120E11&REV_01" = value obtained with devcon status... keep only VEN DEV SUBSYS REV values and don't forget to surround by "

to obtain only the network devices list

devcon listclass net

to make the whole process automatic needs batch expertise to write a full unattended script like XPCREATE...

reference : Scripting Device Manager Changes By: Justin How

Link to comment
Share on other sites

Thank you.

so as far as you know there is no tool to automate it what means i have to write a program that searches for hwid's in all my inf's, compare them to the hwid's of drivers and install them if necessary?

Link to comment
Share on other sites

The tool to obtain the hwid from the inf's files already exist.

It's call pnpids.exe and can be found in OPK (OEM Preinstallation Kit) CD in tools folder.

The hard part is :

1/ scan folders containing inf's files to build a complete list.

sample IDEPNPIDS.TXT

[mshdc.inf]Manufacturer: (Contrôleurs ATA/ATAPI IDE standard)

  Contrôleur IDE/ATAPI PCMCIA:

    PCMCIA\*PNP0600

  Carte d'interface CD-ROM Panasonic ATAPI:

    PCMCIA\KME-KXLC005-A99E

  Carte d'interface CD-ROM ATAPI:

    PCMCIA\_-NinjaATA--3768

  Carte Fujitsu IDE PC:

    PCMCIA\FUJITSU-IDE-PC_CARD-DDF2

  Canal IDE principal:

    Primary_IDE_Channel

  Canal IDE secondaire:

    Secondary_IDE_Channel

  Contrôleur de disque dur IDE/ESDI standard:

    *PNP0600

  Contrôleur de disque dur IDE/ESDI standard:

    *AZT0502

  Contrôleur IDE standard double canal PCI:

    PCI\CC_0101

  9 devices listed

[mshdc.inf] Manufacturer: I-O DATA DEVICE,INC.

  Carte CBIDE2-LM DuoATA (mode 16 bits):

    PCMCIA\LOOKMEET-CBIDE2______-6C0A

  1 device listed

[mshdc.inf] Manufacturer: Acer Labs Inc

  Contrôleur IDE PCI ALi:

    PCI\VEN_10B9&DEV_5215

  Contrôleur IDE PCI Bus Master ALi M5219:

    PCI\VEN_10B9&DEV_5219

  Contrôleur IDE PCI Bus Master ALi M5229:

    PCI\VEN_10B9&DEV_5229

  3 devices listed

[mshdc.inf] Manufacturer: Appian Technology

  Contrôleur IDE PCI Appian:

    PCI\VEN_1097&DEV_0038

  1 device listed

[mshdc.inf] Manufacturer: CMD Technology

  Contrôleur CMD CSA-6400E PCI vers IDE:

    PCI\VEN_1095&DEV_0640

  Contrôleur CMD PCI-0646 Bus Master PCI vers IDE:

    PCI\VEN_1095&DEV_0646

  2 devices listed

[mshdc.inf] Manufacturer: Compaq

  Contrôleur IDE PCI Compaq:

    PCI\VEN_0E11&DEV_AE33

  1 device listed

[mshdc.inf] Manufacturer: Intel

  Contrôleur IDE PCI Intel® 82092AA:

    PCI\VEN_8086&DEV_1222

  Contrôleur IDE PCI Bus Master Intel® 82371FB:

    PCI\VEN_8086&DEV_1230

  Contrôleur IDE PCI Bus Master Intel® 82371SB:

    PCI\VEN_8086&DEV_7010

  Contrôleur IDE PCI Bus Master Intel® 82371AB/EB:

    PCI\VEN_8086&DEV_7111

  Contrôleur IDE Bus Master Intel® 82801AA:

    PCI\VEN_8086&DEV_2411

  Contrôleur IDE Bus Master Intel® 82801AB:

    PCI\VEN_8086&DEV_2421

  Contrôleur IDE Bus Master Intel® 82801BA:

    PCI\VEN_8086&DEV_2441

  Contrôleur IDE Bus Master Intel® 82801BA:

    PCI\VEN_8086&DEV_244A

  Contrôleur IDE Bus Master Intel® 82801BA:

    PCI\VEN_8086&DEV_244B

  Contrôleur IDE Bus Master Intel® 82440MX:

    PCI\VEN_8086&DEV_7199

  10 devices listed

[mshdc.inf] Manufacturer: PC Technology

  Contrôleur IDE PCI PC Tech canal unique ou double:

    PCI\VEN_1042&DEV_1000

  1 device listed

[mshdc.inf] Manufacturer: Silicon Integrated System

  Contrôleur SiS PCI IDE:

    PCI\VEN_1039&DEV_0601

  Contrôleur SiS PCI IDE:

    PCI\VEN_1039&DEV_5513

  2 devices listed

[mshdc.inf] Manufacturer: Symphony Labs

  Contrôleur IDE PCI Symphony:

    PCI\VEN_10AD&DEV_0001

  Contrôleur IDE PCI Symphony:

    PCI\VEN_10AD&DEV_0150

  2 devices listed

[mshdc.inf] Manufacturer: Promise Technology

  Contrôleur IDE PCI Promise Technology:

    PCI\VEN_105A&DEV_4D33

  1 device listed

[mshdc.inf] Manufacturer: VIA Technologies, Inc.

  Contrôleur IDE Bus Master VIA:

    PCI\VEN_1106&DEV_0571

  1 device listed

2/ detect the hwid of your net adapter with devcon.exe

3/ found the correct inf file name and path in the output list of pnpids.exe

4/ launch the correct devcon updateni <inf> <hwid> to install or update the driver.

It was one of my project to write such cmd script to make it full unattended.

But due to lack of time and small knowledge of batches commands, i've never make it.

but i've read elsewhere on this forum one member would like to create such script.

here

i'm sure with the help of great cmd coders like GM or iddle.newbie we can achieve that...

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...