September 26, 200421 yr I've spent the past few days trying to figure out HOW to make XP with SP2 install unsigned drivers silently. Changing DriverSigningPolicy in winnt.sif still warned that the driver wasn't signed. Changing Driver Signing registry entries still warned that the driver wasn't signed. Nothing I tried would get rid of the prompt, so I finally decided to just create an AutoIt script to "Continue anyway". I've attached the script, the compiled exe, grep.exe and devcon.exe.All you have to do to use this method (I'm sure there are other methods, but this is how I use it):Download the attached .rarExtract devcon.exe and grep.exe to $OEM$\$$\system32, DriverInstall.exe to $OEM$\$1\DriversIn RunOnceEx.cmd, add driver checks such as:devcon hwids =Display | grep Name: | grep -i GeForce > NULIF NOT ERRORLEVEL 1 ()Inside the IF ( ) block, invoke DriverInstaller with the relevant switches (for information about the switches that DriverInstaller supports, read about Commands for DevCon Operations), such as:%systemdrive%\Drivers\DriverInstall.exe update %systemdrive%\Drivers\002_graphics\NVIDIA\2KXP_INF\NV_OMEGA_DISP.INF PCI\VEN_10DEA brief breakdown about the DriverInstaller line above:%systemdrive%\Drivers\DriverInstall.exe: The path to DriverInstaller.exeupdate: Update the driver (as opposed to install, disable, enable, etc)%systemdrive%\Drivers\002_graphics\NVIDIA\2KXP_INF\NV_OMEGA_DISP.INF: Path to the .inf for the drivers you wish to updatePCI\VEN_10DE: The hardware vendor ID. You must get this from inside the driver's .infCompleted, my RunOnceEx.cmd looks something like: devcon hwids =Display | grep Name: | grep -i GeForce > NULIF NOT ERRORLEVEL 1 ( REG ADD %KEY%\325 /VE /D "NVIDIA ForceWare 56.72 video drivers" /f REG ADD %KEY%\325 /V 1 /D "%systemdrive%\Drivers\DriverInstall.exe update %systemdrive%\Drivers\002_graphics\NVIDIA\2KXP_INF\NV_OMEGA_DISP.INF PCI\VEN_10DE" /f)I've tested this to work with signed drivers, unsigned drivers, drivers with multiple prompts, and it has worked each time.Any questions/comments, feel free to let me know. Hope this helps someone as much as it helped me.DriverInstall.rar
September 27, 200421 yr Are u sure u've putDriverSigningPolicy=Ignoreunder the [unattended] tabin winnt.sif ?
September 27, 200421 yr Are u sure u've putDriverSigningPolicy=Ignoreunder the [unattended] tabin winnt.sif ?NVM...
September 30, 200421 yr WINNT.SIF for Windows 2000[Unattended]UnattendMode=FullUnattendedDriverSigningPolicy=IgnoreNtUpgrade=NoOemFilesPath = "..\$OEM$" OemPnPDriversPath = "PnPDrvrs\Display;PnPDrvrs\hdc;PnPDrvrs\Media;PnPDrvrs\Net;PnPDrvrs\System;PnPDrvrs\USB;PnPDrvrs\Modem;PnPDrvrs\Misc1;PnPDrvrs\Misc2"OemPreinstall=YesOemSkipEula=YesOverwriteOemFilesOnUpgrade=NoTargetPath=\WINNTWin9xUpgrade=NoThe AutoIt script need some strings modification for use with localized versions of Windows or different version (2000 Professional)
October 1, 200421 yr Make sure your WINNT.SIF file includes the following two lines in the [unattended] sectionDriverSigningPolicy=IgnoreNonDriverSigningPolicy=Ignoretguy
October 2, 200421 yr nondriversigningpolicy ??I havent seen that around somewhereand in the docs of m$ it only mentions driversigningpolicy ...
November 8, 200421 yr I found the NonDriverSigningPolicy 'switch' here in the Forums, worked for me, good luck....tguy
November 9, 200421 yr We can use the Windows findstr.exe utility rather than grep.exedevcon hwids =display | findstr Name: |findstr /i NVidiasearch for the Vendor ID (Display class device installed with default NVidia Windows CD outdated drivers)set VEN=VEN_10DEset class=Displaydevcon listclass %class% | findstr /i /c:%VEN%PCI\VEN_10DE&DEV_017A&SUBSYS_014610DE&REV_A3\4&3A321F38&0&58F0: NVIDIA Quadro NVS (Microsoft Corporation)search for the Vendor ID (Display class device with no drivers found under "Other devices" --> "Video controller" in device manager) set VEN=VEN_8086set class=Unknowndevcon listclass %class% | findstr /i "Video Controller" | findstr /i /c:%VEN%PCI\VEN_8086&DEV_2572&SUBSYS_101B1734&REV_02\3&61AAA01&0&10 : Video ControllerHow to find the Vendor ID:PCI Vendor and Device ListsA variety of tools are provided in \Tools of the Windows 2000 System Preparation Tool, Version 1.1 package, including:Sysprep.exe (v1.1)Setupcl.exePnpids.exethat assists in identifying the Plug and Play ID used by Windows to install the proper device. Edited September 18, 200520 yr by Bilou_Gateux
December 2, 200421 yr Can i do this in Windows2003 Servers? This is only for internal testing purpose. Where to look for the DriverSigning policy.Thanks,/N
December 23, 200421 yr You can find information on the DriverSigningPolicy on the MS MSDN site.Also in the unattend.doc or ref.chm help files.Did you try disabling the System File Checker?
April 24, 200917 yr Hi, I've tried using your script, and it works beautifully! Except in situations where devcon asks if you want to overwrite old files, where it will pause, waiting for input.I decided to edit the script, adding to the If...Then...Else block, to take this new prompt into account. Upon running the script, I get:"Line -1:Error: Unknown option or bad parameter specified."I thought this was a problem with my edits, so I recompiled the .exe from your original DriverInstall.au3 file that you included, to get the same error!So I was wondering, what were the differences between that file and the one you originally compiled from? Or am I just having problems on my machine?Thanks in Advance,Adam
April 24, 200917 yr Never mind, solved it! Turns out in the most recent version of AutoIt (Since 3.0) the Opt RunErrorsFatal is gone. Take out that line, and it works beautifully.
May 11, 200917 yr Never mind, solved it! Turns out in the most recent version of AutoIt (Since 3.0) the Opt RunErrorsFatal is gone. Take out that line, and it works beautifully.Have got a problem with my hp dv6000 audio and video drivers.The one's i downloaded from hp site appear not to work with my system.can please help out.thanks..............................
Create an account or sign in to comment