Very good Jig - now you 'get it'
1. As far as i know there is no "unknown device remover"
(for devices found and then added to device manager with no driver)
2. Nor do I know of anyway of starting "search for new hardware wizard" from a Batch.
(for after they are removed)
Im sure the first one could be coded... but using a program to automaticaly regedit is risky
the second one i'm sure is easy.
question? if you install with driverpacks then this is not an issue. if these are preexisting systems then the OEM should have provided those. so how is it that you have a machine with so many unknown devices? (what in the world are you doing - and why are you doing it the hard way)
to answer your question NO this cannot be done with existing tools.
On the other hand no one has ever asked and i cant think of any valid reason to do it.
I would like to point out here that IF you were to use a variation of Jaaks idea (Jeff-modded)
1.
- do.cmd - run this command before removing drivers
SET TAGFILE=\OEM\BIN\un7zip.exe
FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y) DO IF EXIST "%%i:%TAGFILE%" SET CDDRIVE=%%i:
rem copy %CDDRIVE%\$OEM$\$1 %SystemDrive%
%SystemDrive%\makePNF.exe "%CDDRIVE%\$OEM$\$1\D"
%SystemDrive%\DevPath.exe "%CDDRIVE%\$OEM$\$1\D"
2. remove all the devices without drivers from device manager
(and the ONLY way i would remove devices IS manually)
3. Reg Key - for running finisher on next reboot.
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\999 /V 1 /D "%SystemDrive%\DPsFnshr.exe"
4. reboot
note - A reboot may not be required but I think it's a good idea. i have not tested this but i belive it will find the new hardware assign drivers and then "finish" them
@Tiger Read Post 16 Again
The question you asked is answered there...
Please take the time to read through the forum before asking
And try working with the base as intended for a while Tutorial!
After you are at least a little familiar with the way it normaly works,
then if you wish to experiment...
Last edited by OverFlow (2007-07-21 09:59:43)