SCCM Task Sequence Remove Video Drivers

During my project to upgrade all our Windows 7 Enterprise SP1 (64bit) devices to Windows 10 Enterprise 1809 (64bit), I ran into a compatibility issue during the task sequence. Windows 7 video drivers were detected as incompatible during the in-place upgrade to Windows 10, so I had to find a way to remove the drivers during the SCCM task sequence.

This is the batch file code I used to disable, then remove video drivers from the task sequence.

@ECHO OFF

REM Driver is disabled
devcon disable =display

REM Driver is removed here
devcon remove =display

REM reg add command replaces whatever value is in the SearchOrderConfig with the appropriate value to tell the system NOT to go to windows update for driver updates
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching /t REG_DWORD /v SearchOrderConfig /d 0x0 /f

REM Driver package is removed here
FOR /F “tokens=4 delims= ” %%A IN (‘devcon driverfiles ^=display ^| FINDSTR “Driver installed from”‘) DO devcon.exe dp_delete -f %%A

EXIT 0

The following shows where in the task sequence I add the video driver removal step. Also, note that I have a step to copy devcon.exe utility which is not on Windows 7 by default.

SccmTsRemoveDrivers.png

I’ve extensively tested this on my DELL devices and it works perfectly.

, , , , , , , , , , ,

  1. #1 by Jon on October 29, 2019 - 8:52 pm

    I’m running into this issue right now. Trying to in-place upgrade from W7 SP1 to W10 and also have Dell equipment with incompatible video drivers (Intel 520/530 from SkyLake processor). Is there any way you can provide a little more detail for the TS setup?

    Also, is there a reason you chose v1809 over any of the others? I’m currently trying to upgrade to 1703 due to it being the newest version I’ve seen support keeping your existing apps,etc. Any tips would be extremely helpful. I have about 600 computers affected by this.

    Thanks in advance!

    Like

    • #2 by edwgon on October 30, 2019 - 12:08 am

      What kind of additional TS setup are you looking for?

      v1809 was what it was available when I was working on that project, but since then we’ve decided to to go with 1903. We’ve not completed the deployment of W10 yet, we’re weighing pro’s and con’s of an in-place upgrade, not to mention that we have to upgrade our hardware fleet and we’re looking to upgrade to O365.

      Like

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: