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.


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


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.


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!


    • #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.


  2. #3 by prashant on November 14, 2019 - 4:17 pm

    need help , could you please share complete snapshot so we can look in to the options and command lines to make changes in our Task sequence accordingly.


  3. #4 by Austin Buse-Oberto on December 5, 2019 - 4:14 pm

    Where did you download/install devcon.exe to? I attempted to copy this exe from a local install and it didn’t seem to work for me.


  4. #5 by Alberto on February 5, 2020 - 7:35 pm

    Hey, could you please show the command or method used to copy devcon. I’m using a copy command that works manually but doesn’t work on the task sequence.


Leave a Reply

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

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