Beruflich Dokumente
Kultur Dokumente
cd\Drivers
Now run:
Expand –F:* source.cab C:\Drivers\cab
(source.cab being the name of whatever the .cab file is named.)
Then run:
for /f %i in (‘dir /b /s *.inf’) do pnputil.exe -i -a %i
This will loop through every .inf file and the system will install every driver that’s included.
Here’s an example txt file that you can use to either paste directly into your DOS window with some
Home or even use it to WARNING
modification create yourFor
ownNooBs!!
DOS batch file. I haveTutorials 1337
created this because Links
within
WordPress and Windows some characters from DOS or Notepad get automatically altered like double
quotes and hyphens so if you typed the syntax above it works but if you copy and paste from your web
browser to DOS you get errors.
NOTE: If you are installing drivers on a machine that has BOTH Intel and a discrete GPU and would like
to follow installation “by the book” you should First install the Intel Drivers either from Dell or directly from
Intel and then install the discrete video card drivers from Dell or directly from the manufacturer and then
lastly install the driver back as described above. Depending on your make and model of machine this
may or may not make any difference but it is worth a note.
This concludes the tutorial for Manual Installation of a Dell Driver Pack on a local machine.
If this article has saved you some valuable time please like and subscribe.
Posted in DOS, Scripting, Tutorials, Windows, Windows 7, Windows 8 and tagged manual installation of
a dell driver pack on a local machine.
Like 6 Tweet
← operator overloading in C#
Home Running Internet
WARNING For Explorer
NooBs!! in compatibility…
Tutorials → 1337 Links
38 Comments
Dave Johnston
Utterly brilliant, every driver installed within about 5 minutes. This saved me hours. Many thanks.
Bradley Brundage
July 8, 2015 at 10:21 PM Reply
Glad to have helped. What other tasks take the most time? I may have a solution or
suggestion that may also help save hours of time.
Daniel Apps
July 8, 2015 at 5:33 PM Reply
Daniel Apps
July 8, 2015 at 5:43 PM Reply
Taking a deeper dive into the process. The command doesn’t “loop through every .inf file and the
system will install every driver that’s needed”.
It installs ALL drivers from the CAB then applies the required ones to the appropriate devices.
For a cleaner image it would be nicer if it only installed the required drivers only.
Bradley Brundage
July 8, 2015 at 10:18 PM Reply
That is correct, but since the Dell driver packs are for a range of a particular model it
will work on multiple variations of a machine, but at the cost of doing more than
what’s needed. If Dell were to release a specific driver pack for your exact model
then it would not contain say other WiFi and ethernet chipsets than whats under the
hood on your laptop. Unfortunately since they offer options for say upgrading to a
wireless 802.11AC card the Dell Driver Pack will contain the drivers to all cards that
were available (Intel, Broadcom, Etheros, Dell, etc.) This technique saves me at least
20-60 minutes per manually rebuilt machine and I hope it saves you as much time as
Home WARNING
well. For NooBs!!
When re-building Tutorials
a fresh box I also always 1337
use http://ninite.com Links
for unattended
installations of mandatory apps like chrome, firefox, .net 4.5, skype, shockwave,
Glary Utilities etc. When I have time I’ll finish writing my own similar app in C# to do
this and release it here. If you have any suggestions, or can recommend any
programs or techniques that improve your efficiency or can help save time please
feel free to contribute.
Thanks!
Phil
July 14, 2015 at 2:02 PM Reply
I have used this on at least 5 computers. I used to spend an hour or two installing drivers from
Dell’s website, picking only the ones I needed to avoid bundled crapware. I have versions of
Windows on various thumb drives and every extracted .CAB on another drive, each computer
model in its own folder. I would love a .bat that would let me pick the appropriate folder/model and
run the command line “for /f %i in (‘dir /b /s *.inf’) do pnputil.exe -i -a %i”.
Thanks for this! I feel like a 70 year old because I actually printed this webpage on paper so I don’t
loose it!
wallone
July 23, 2015 at 4:25 PM Reply
This sounds really great and exactly what I need. However, my folders structure looks a bit different
in the beginning, which doesnt matter in the end. It is: c:\drivers\cab\E6330\win7\x64
After typing “for /f %i in (‘dir /b /s *.inf’) do pnputil.exe -i -a %i” my cmd tells me that the file “dir”
could not be found.
Could you help me out with this? I am about to do that on a couple of computers the next days and
I can really feel for the guy who actually printed that website on a piece of paper because it sounds
fantastic. Just, it doesnt work for me at the moment
Bradley Brundage
September 15, 2015 at 9:41 AM Reply
Sorry for the delay, I’ve updated the article now and even have a text file that you can
download to use as a template. I hope this get’s you going and eventually when I
have time I’ll write a base batch file with a menu to do everything that you will just
edit the defined paths to streamline the process. How many different versions of
machines should my batch file contain and could you please provide me with model
numbers like Latitude 6800?
Thanks!
Stan
July 31, 2015 at 11:04 AM Reply
Home WARNING For NooBs!! Tutorials 1337 Links
Great post! This will definitely help out a lot of people. Installing the driver pack is a lot easier and
cleaner. I just wanted to add that there is an even easier way to do it if you’re not familiar with cmd.
1. Extract the cab file with winrar, 7zip, etc. to anywhere (can be desktop, my documents, c:…
doesn’t matter)
2. Navigate to the x64 or x86 folder(depending on which one you use)
3. Create a new bat file in the above folder with the following line:
for /f %%i in (‘dir /b /s *.inf’) do pnputil.exe -i -a %%i
3a. To make a bat file: open notepad > paste the line above > save as > change file type to all files
> save as “install.bat” (anything you want as long as it has the .bat extension)
4. Run the bat file (double click on it)
Note: The cab file and extracted folder(s) can be moved or deleted after installation as they are no
longer needed.
Thanks to warren byle and chrisg87 over at the dell community forum.
Zac
December 11, 2015 at 1:16 PM Reply
Thank you Stan! I am working on imaging a bunch of out of date computers that my
organization is donating to local schools and this bat file has made it effortless for our
service desk people to install the drivers. Without the double % in the batch file, it will
not run.
Elpoep
July 30, 2016 at 8:03 PM Reply
This didn’t work for me– do I change any of the command line or do I simply copy
and paste that “for /f %%i in (‘dir /b /s *.inf’) do pnputil.exe -i -a %%i” line, without
parenthesis, when u create the bat file?
Daniel
September 10, 2015 at 3:43 AM Reply
Hi Bradley,
Many thanks for your guide. With regard to the Driver Pack, I have the Windows 10 Driver Pack, in
your opinion would you install the driver pack after upgrading to Windows 10 from 8.1, or before? I
would imagine that the driver would be backward compatible therefore should work on 8.1
Bradley Brundage
September 15, 2015 at 9:51 AM Reply
It could work, but what if it works on only 80% of the hardware and causes
Home WARNING
unforeseen Forlike
issues NooBs!!
a BSOD? What I’ve Tutorials 1337
done so far is fresh install Links
7/8/8.1 and
then with the Windows 10 creation tool (Available Here) from another machine tell it
to create an ISO image. Then take that ISO and extract it to a thumb drive and then
put it in the machine you are building and load it within Windows and tell it during the
install to not keep anything from the previous versions of Windows. I’ll go into “why”
on that in another article when I have a moment. After it upgrades to Windows 10 it
will more than likely already have the drivers it needs from the beginning because it’s
an updated OS. Then if needed or you just feel like it you could install the driver pack
in the same method. I’d check the device manager first to see if anything wasn’t
detected and you can always compare driver dates and version numbers from here
to the dates and version numbers directly on Dell’s site although the same driver
release isn’t always the same version number when re-released by Dell but you can
see if the drivers being used are relatively new releases and what’s available.
dejj
October 10, 2015 at 8:41 PM Reply
toggs
October 30, 2015 at 4:17 AM Reply
Andykippers
December 28, 2015 at 7:04 AM Reply
After wasting a day scratching round for the appropriate drivers I have just rebuilt my wife’s Dell
E6440 laptop using your detailed instructions in about an hour. Thank you very much!
Amadiaz
March 26, 2016 at 5:23 AM Reply
After typing “for /f %i in (‘dir /b /s *.inf’) do pnputil.exe -i -a %i” my cmd tells me that the file “dir”
could not be found. pleease hel
p
Bradley
May 28, 2016 at 12:10 AM Reply
Please don’t copy and paste. Windows changes the quotes and other syntax.
Manually type into DOS it works flawlessly.
Frederico Pinho
Home May 23, 2016 atWARNING
6:50 AM For NooBs!!
Reply Tutorials 1337 Links
Because of you guys the internet is a better place. This is such valuable information that i all gotta
say is a BIG THANK YOU ! You guys rock keep up the good work.
santos
May 25, 2016 at 1:32 AM Reply
Elpoep
I’m a total newb and try to learn as I go along… so, pardon any ignorance in my post. Any help or
guidance would be greatly appreciated. Thank you if you’re even reading this.
I have the cab file, which was downloaded from dells driver package pg. — and didn’t extract it. I
Put in in the directory as instructed– I dragged it into the folder that I named “cab” which is in a
folder named “Drivers” in my computers C drive folder.
The name of the cab file is E7450-WIN7-A06-034K4 (this is for a latitude E7450 running W7) —
this is not the path name which is C:\Drivers\cab\E7450-WIN7-A06-034K4.CAB
Bradley
August 12, 2016 at 8:51 PM Reply
you have to specify the .cab file extension instead of typing E7450-WIN7-A06-034K4
you would need to type the extension e.g. E7450-WIN7-A06-034K4.CAB
Curtis
October 3, 2016 at 7:02 AM Reply
I know this thread is over a year old now, but I wanted to say thanks for putting this up. In my
specific instance I was having an issue getting the USB drivers working after imaging an Optiplex
3040 with Achronis 11.5. Upon boot up, I had no keyboard and mouse and was unable to remotely
access the PC. I struggle for three weeks before finding this, so thank you so much!
RonSTL
Home November 7, 2016
WARNING For NooBs!!
at 8:26 AM Reply Tutorials 1337 Links
After spending hour reading other guides on how to do this, your page was the only one that
worked without a hitch. Several other guides had the syntax as %%i which totally borked the
installation of the drives. Why Dell no longer lets you download drivers for the newer laptops
(E5570) is beyond me. This guide saved me a mental breakdown!!
kocey
I have a different kind of problem, whenever i try running driverpack on my system it show
“Microsoft (R) HTML Application host has stopped working” please what could i do.
Bradley
January 17, 2017 at 2:07 PM Reply
You don’t “run” driverpack since it’s not a binary executable file. My solution walks
you through the decompressing the cab files from Dell within DOS and creating a
loop to install everything that is contained within the cab file that you extract
manually. This error is not possible from a scripting point of view and is not related. If
you still have this issue with a fresh install of the OS, then I’d check the hard drive
S.M.A.R.T. status, then RAM (You can run the built in diagnostics, but may need to
enable S.M.A.R.T. in the BIOS. This is still applicable on brand new systems as Dell
does not always enable.) If all pass, then it’s probably the installation media. You can
always download Windows for free directly from Microsoft to avoid infected copies of
their software.
Bradley
March 30, 2017 at 12:25 PM Reply
The “Driverpack” that you are running sounds like a fake program that you just
downloaded and are trying to run. The actual “driverpack” from dell is just a single file
that contains other files and folders that IS NOT executable. You extract from the
command line everything that is contained inside the driver pack file and then loop
through the subfolders telling the drivers to install, reboot and you are done.
Kyle
March 18, 2017 at 10:37 PM Reply
Holy crap, thank you for this. I wiped my Dell Venue 11 Pro and couldn’t install drivers the
traditional way, so the thing was basically useless. Drivers installing now. One thousand thank-
yous.
Timo
Home April 1, 2017 at 1:21
WARNING For NooBs!!
AM Reply Tutorials 1337 Links
When I type
mark_philipipnes
June 7, 2017 at 6:52 AM Reply
“Adding the driver package failed : Invalid INF passed as parameter.” ERROR
BUT when i read “even have a text file that you can download to use as a template”, clicked the txt
link, copy and paste to command prompt PROBLEM SOLVE.IN WINDOWS 10
thanks Man
Peter
June 8, 2017 at 2:28 PM Reply
buy_my_shit_on_ebay
October 10, 2018 at 10:45 PM Reply
You’re out here saving lives, my dude. It was a very good feeling watching drivers scroll past and
hearing Windows connection/disconnection sounds. Thank you for this quality post
Nick
November 28, 2018 at 8:35 PM Reply
After a lot of googling i found i needed the last line to be: for /f %%i in (‘dir /b /s *.inf’) do pnputil.exe
-i -a %%i
As the two %’s indicate a batch file rather than an open command box. After that it worked
Home excellently WARNING For NooBs!! Tutorials 1337 Links
Dan
December 5, 2018 at 1:34 AM Reply
It’s been well over a year since the last post on here, but I needed to add a huge THANK YOU
Bradley! I just wiped a Dell Precision 5510 with Windows 7 Pro, ran a fresh install of Windows 10
Pro, and was faced with the painful task of downloading and installing drivers. Like most people on
here, I found the CAB file from Dell, but without any instructions on how to use the effing thing.
Some quick Googling, and bingo! Thank you again Bradley…you’re a good man.
Bradley
January 28, 2019 at 11:13 PM Reply
Glad to hear, and I haven’t had much time to update unfortunately. I plan on updating
the site but it’s as time permits.
Fitulas
February 13, 2019 at 12:30 PM Reply
You are GOD for my right now!!! This article has saved my tons of hours, literally. I have created a
folder with all Dell .cabs we use in our company and with a batch file that gets computers model
and puts it into a variable, I am able to install/update all drivers of any PC with just two clicks. I
LOVE YOU!!!
Bradley
March 26, 2019 at 2:36 PM Reply
Adam
April 15, 2019 at 7:25 PM Reply
FYI if you’d rather use powershell this is the equivalent command. Also the pnputil command -i -a is
legacy and is replaced by /add-driver and /install
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment
Home WARNING For NooBs!! Tutorials 1337 Links
Name *
Email *
Website
Post Comment
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Recent Posts
Categories
C#
Cisco
Debugging
DOS
Hyper-V
Hyper-V 2012 R2
Home WARNING For NooBs!! Tutorials 1337 Links
Linux
MS Office
MSSQL
Oracle Linux
PowerShell
Programming
RDP Server
RHEL
Scripting
SQL
Submitted Questions
Tutorials
Ubuntu
Uncategorized
Visual Studio
VNC Server
Windows
Windows 7
Windows 8
Windows Server