Installing Drivers with Standalone Media Deployments

Using SCCM standalone media can be a good way to deploy an OS when you have, for example, remote offices with no local distribution point.  However, if you use DVD media it can result in several DVDs if you include all the applications and drivers.  So I prefer to install the drivers and applications separately after deployment and keep the OS install on one or two DVDs. As we use Dell computers, it’s quite easy to get hold of the driver pack from the Dell website, which you can then install using PnPUnattend.  To speed up the process, I wrote a simple batch script that will download the relevant driver pack from Dell and install it.

This process can also be used for non-Dell models, you simply download the drivers you need, extract them, place them in the C:\Drivers folder, add the registry key, and run the PnPUnattend command.

Note: You need to have at least a NIC driver installed before running the script, so you can connect to the internet.

@echo off
cls
:Start
echo *********************************
echo Download and Install Dell Drivers
echo *********************************
echo _
echo 1. E4200
echo 2. E6220
echo 3. E6320
echo 4. E6410
echo 5. E6420
echo 6. E6430
echo 7. E6430s
echo 8. E6530
echo 9. Optiplex 9010
echo 10. Optiplex 9020
echo 11. Precision T5500
echo 12. E7240
echo 13. E7440
echo 14. E6440
echo 15. E6540
echo 16. E6230
echo 17. E6520
echo 18. Optiplex 990
echo _
set /p choice=Which Model do you wish to install Drivers for?
if '%choice%'=='1' goto E4200
if '%choice%'=='2' goto E6220
if '%choice%'=='3' goto E6320
if '%choice%'=='4' goto E6410
if '%choice%'=='5' goto E6420
if '%choice%'=='6' goto E6430
if '%choice%'=='7' goto E6430s
if '%choice%'=='8' goto E6530
if '%choice%'=='9' goto 9010
if '%choice%'=='10' goto 9020
if '%choice%'=='11' goto T5500
if '%choice%'=='12' goto E7240
if '%choice%'=='13' goto E7440
if '%choice%'=='14' goto E6440
if '%choice%'=='15' goto E6540
if '%choice%'=='16' goto E6230
if '%choice%'=='17' goto E6520
if '%choice%'=='18' goto 990
cls
echo !! "%choice%" is not a valid choice! Please try again"!
echo _
goto Start

mkdir C:\DriverPacks
mkdir C:\Drivers

:E4200

echo Downloading Driver cab from Dell for E4200...
echo _
start /wait bitsadmin /transfer E4200Drivers /download /priority normal http://downloads.dell.com/FOLDER00680122M/1/E4200-win7-A03-M90D4.CAB C:\DriverPacks\E4200-win7-A03-M90D4.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E4200-win7-A03-M90D4.CAB -f:* C:\Drivers
goto Install_Drivers

:E6220

echo Downloading Driver cab from Dell for E6220...
echo _
start /wait bitsadmin /transfer E6220Drivers /download /priority normal http://downloads.dell.com/FOLDER01449232M/1/E6220-win7-A08-0VK93.CAB C:\DriverPacks\E6220-win7-A08-0VK93.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6220-win7-A08-0VK93.CAB -f:* C:\Drivers
goto Install_Drivers

:E6320

echo Downloading Driver cab from Dell for E6320...
echo _
start /wait bitsadmin /transfer E6320Drivers /download /priority normal http://downloads.dell.com/FOLDER01440819M/1/E6320-win7-A10-2H76N.CAB C:\DriverPacks\E6320-win7-A10-2H76N.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6320-win7-A10-2H76N.CAB -f:* C:\Drivers
goto Install_Drivers

:E6410

echo Downloading Driver cab from Dell for E6410...
echo _
start /wait bitsadmin /transfer E6410Drivers /download /priority normal http://downloads.dell.com/FOLDER01384339M/1/E6410-win7-A11-D2H6P.CAB C:\DriverPacks\E6410-win7-A11-D2H6P.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6410-win7-A11-D2H6P.CAB -f:* C:\Drivers
goto Install_Drivers

:E6420

echo Downloading Driver cab from Dell for E6420...
echo _
start /wait bitsadmin /transfer E6420Drivers /download /priority normal http://downloads.dell.com/FOLDER01440751M/1/E6420-win7-A10-KFNW7.CAB C:\DriverPacks\E6420-win7-A10-KFNW7.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6420-win7-A10-KFNW7.CAB -f:* C:\Drivers
goto Install_Drivers

:E6430

echo Downloading Driver cab from Dell for E6430...
echo _
start /wait bitsadmin /transfer E6430Drivers /download /priority normal http://downloads.dell.com/FOLDER01659570M/1/E6430-win7-A07-KGR03.CAB C:\DriverPacks\E6430-win7-A07-KGR03.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6430-win7-A07-KGR03.CAB -f:* C:\Drivers
goto Install_Drivers

:E6430s

echo Downloading Driver cab from Dell for E6430s...
echo _
start /wait bitsadmin /transfer E6430SDrivers /download /priority normal http://downloads.dell.com/FOLDER01675322M/1/E6430s-win7-A05-GY4MD.CAB C:\DriverPacks\E6430s-win7-A05-GY4MD.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6430s-win7-A05-GY4MD.CAB -f:* C:\Drivers
goto Install_Drivers

:E6530

echo Downloading Driver cab from Dell for E6530...
echo _
start /wait bitsadmin /transfer E6530Drivers /download /priority normal http://downloads.dell.com/FOLDER01658654M/1/E6530-win7-A08-MK7V1.CAB C:\DriverPacks\E6530-win7-A08-MK7V1.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6530-win7-A08-MK7V1.CAB -f:* C:\Drivers
goto Install_Drivers

:9010

echo Downloading Driver cab from Dell for Optiplex 9010...
echo _
start /wait bitsadmin /transfer 9010Drivers /download /priority normal http://downloads.dell.com/FOLDER01566211M/1/9010-win7-A05-X8DTY.CAB C:\DriverPacks\9010-win7-A05-X8DTY.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\9010-win7-A05-X8DTY.CAB -f:* C:\Drivers
goto Install_Drivers

:9020

echo Downloading Driver cab from Dell for Optiplex 9020...
echo _
start /wait bitsadmin /transfer 9020Drivers /download /priority normal http://downloads.dell.com/FOLDER01764360M/1/9020-win7-A01-4CG9T.CAB C:\DriverPacks\9020-win7-A01-4CG9T.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\9020-win7-A01-4CG9T.CAB -f:* C:\Drivers
goto Install_Drivers

:T5500

echo Downloading Driver cab from Dell for T5500...
echo _
start /wait bitsadmin /transfer T5500Drivers /download /priority normal http://downloads.dell.com/sysman/T5500-Win7-A00-R253041.CAB C:\DriverPacks\T5500-Win7-A00-R253041.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\T5500-Win7-A00-R253041.CAB -f:* C:\Drivers
goto Install_Drivers

:E7240

echo Downloading Driver cab from Dell for E7240...
echo _
start /wait bitsadmin /transfer E7240Drivers /download /priority normal http://downloads-us.dell.com/FOLDER01819337M/1/E7240-win7-A01-XK9P3.CAB C:\DriverPacks\E7240-win7-A01-XK9P3.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E7240-win7-A01-XK9P3.CAB -f:* C:\Drivers
goto Install_Drivers

:E7440

echo Downloading Driver cab from Dell for E7440...
echo _
start /wait bitsadmin /transfer E7440Drivers /download /priority normal http://downloads-us.dell.com/FOLDER01819350M/1/E7440-win7-A01-XT5VG.CAB C:\DriverPacks\E7440-win7-A01-XT5VG.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E7440-win7-A01-XT5VG.CAB -f:* C:\Drivers
goto Install_Drivers

:E6440

echo Downloading Driver cab from Dell for E6440...
echo _
start /wait bitsadmin /transfer E6440Drivers /download /priority normal http://downloads-us.dell.com/FOLDER01832732M/1/E6440-win7-A01-5DDKN.CAB C:\DriverPacks\E6440-win7-A01-5DDKN.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6440-win7-A01-5DDKN.CAB -f:* C:\Drivers
goto Install_Drivers

:E6540

echo Downloading Driver cab from Dell for E6540...
echo _
start /wait bitsadmin /transfer E6540Drivers /download /priority normal http://downloads-us.dell.com/FOLDER01832723M/1/E6540-win7-A02-JF7Y8.CAB C:\DriverPacks\E6540-win7-A02-JF7Y8.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6540-win7-A02-JF7Y8.CAB -f:* C:\Drivers
goto Install_Drivers

:E6230

echo Downloading Driver cab from Dell for E6230...
echo _
start /wait bitsadmin /transfer E6230Drivers /download /priority normal http://downloads-us.dell.com/FOLDER01692655M/1/E6230-win7-A05-7D8JC.CAB C:\DriverPacks\E6230-win7-A05-7D8JC.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6230-win7-A05-7D8JC.CAB -f:* C:\Drivers
goto Install_Drivers

:E6520

echo Downloading Driver cab from Dell for E6520...
echo _
start /wait bitsadmin /transfer E6520Drivers /download /priority normal http://downloads-us.dell.com/FOLDER01819787M/1/E6520-win7-A10-P2X6K.CAB C:\DriverPacks\E6520-win7-A10-P2X6K.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\E6520-win7-A10-P2X6K.CAB -f:* C:\Drivers
goto Install_Drivers

:990

echo Downloading Driver cab from Dell for Optiplex 990...
echo _
start /wait bitsadmin /transfer 990Drivers /download /priority normal http://downloads.dell.com/FOLDER01834164M/1/990-win7-A09-6DHG2.CAB C:\DriverPacks\990-win7-A09-6DHG2.CAB
echo _
echo Expanding Cab file...
echo _
start /wait expand C:\DriverPacks\990-win7-A09-6DHG2.CAB -f:* C:\Drivers
goto Install_Drivers

:Install_Drivers

echo _
echo Configuring Registry..
echo _
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\UnattendSettings\PnPUnattend\DriverPaths\1" /v Path /t REG_SZ /d "C:\Drivers"
echo _
Echo Initiating PNP driver installation...
echo _
start /wait C:\Windows\System32\pnpunattend.exe auditsystem /l
goto End
:End

rmdir C:\DriverPacks /S /Q
rmdir C:\Drivers /S /Q

pause

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s