Fix corrupt Opencl.dll in Windows 10

Fix corrupt Opencl.dll in Windows 10: A new problem seems to occur after updating Windows 10 to the latest build, users are reporting that opencl.dll becomes corrupt. The problem seems to be only affecting the users who have NVIDIA Graphic Card and whenever the user installs or updates NVIDIA drivers for the graphic card, the installer automatically overwrites the existing opencl.dll file in Windows 10 with its own version and hence this corrupts the Opencl.dll file.

Fix corrupt Opencl.dll in Windows 10

The main issue because of the corrupt opencl.dll file is that your PC will reboot randomly sometimes after 2 minutes of use or sometimes after 3 hours of continuous use. User’s can verify that the opencl.dll file is corrupt by running SFC scan as it notifies the user of this corruption but sfc won’t be able to repair this file. So without wasting any time let’s see how to actually Fix corrupt Opencl.dll in Windows 10 with the below-listed steps.

Fix corrupt Opencl.dll in Windows 10

Make sure to create a restore point just in case something goes wrong.

Method 1: Run DISM (Deployment Image Servicing and Management)

1. Press Windows Key + X then select Command Prompt (Admin).

command prompt with admin rights

2. Try these command sin sequence:

Dism /Online /Cleanup-Image /StartComponentCleanup
Dism /Online /Cleanup-Image /RestoreHealth

cmd restore health system

3. If the above command doesn’t work then try on the below:

Dism /Image:C:\offline /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows
Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows /LimitAccess

Note: Replace the C:\RepairSource\Windows with the location of your repair source (Windows Installation or Recovery Disc).

4. Don’t run SFC /scannow in order to verify the integrity of system run DISM command:

Dism /Online /Cleanup-Image /CheckHealth

5. Reboot your PC to save changes.

6. If you’re still facing the issue then you need to use techbench iso in order to fix the issue.

7. First, create a folder on the desktop with the name mount.

8. Copy install.win from the download ISO to the mount folder.

9. Run the following command in cmd:

Dism /mount-wim /wimFile:%USERPROFILE%\Desktop\install.wim /index:1 /MountDir:%USERPROFILE%\Desktop\mount
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /RestoreHealth /Source:%USERPROFILE%\Desktop\mount\windows /LimitAccess
Dism /unmount-wim /Mountdir:%USERPROFILE%\Desktop\mount /discard

10. Reboot your PC and this should Fix corrupt Opencl.dll in Windows 10 but if you’re still stuck then continue.

Method 2: Run Automatic/Startup Repair

1. Insert the Windows 10 bootable installation DVD and restart your PC.

2. When prompted to Press any key to boot from CD or DVD, press any key to continue.

Press any key to boot from CD or DVD

3. Select your language preferences and click Next. Click Repair your computer in the bottom-left.

Repair your computer

4. On choose an option screen, click Troubleshoot.

Choose an option at windows 10 automatic startup repair

5. On the Troubleshoot screen, click the Advanced option.

select advanced option from troubleshoot screen

6. On the Advanced options screen, click Automatic Repair or Startup Repair.

run automatic repair

7. Wait till the Windows Automatic/Startup Repairs complete.

8. Restart and you have successfully Fix corrupt Opencl.dll in Windows 10, if not, continue.

Also, read How to fix Automatic Repair couldn’t repair your PC.

Method 3: Try Running SFCFix Tool

SFCFix will scan your PC for corrupted system files and will restore/repair these files which System File Checker failed to do so.

1. Download SFCFix Tool from here.

2. Press Windows Key + X then select Command Prompt (Admin).

command prompt admin

3. Type the following command into cmd and hit enter: SFC /SCANNOW

4. As soon as the SFC scan has begun, launch the SFCFix.exe.

Try running SFCFix Tool

Once SFCFix has run its course it will open a notepad file with information about all the corrupt/missing system files that SFCFix found and whether or not it was successfully repaired.

Method 4: Manually replace the Opencl.dll corrupted system file

1. Navigate to the below folder on the computer that is working correctly:

C:\Windows\WinSxS

Note: In order to make sure the opencl.dll file is in good condition and is not corrupt, run the sfc command.

2. Once inside the WinSxS folder search for the opencl.dll file.

search for opencl.dll file inside WinSxS folder

3. You will find the file in the folder which will have its initial value as:

wow64_microsoft-windows-r..xwddmdriver-wow64……

4. Copy the file from there to your USB or external drive.

5. Now go back to the PC where opencl.dll is corrupted.

6. Press Windows Key + X then select Command Prompt (Admin).

command prompt admin

7. Type the following command and hit Enter:

takeown /f Path_And_File_Name

For example: In our case, this command will look something like this:

takeown /f C:\Windows\WinSxS\wow64_microsoft-windows-r..xwddmdriver-wow64-c_31bf3856ad364e35_10.0.14393.0_none_de9cd86dc2ec8d58\opencl.dll

takedown the opencl.dll file

8. Again type the following command and hit Enter:

icacls Path_And_File_Name /GRANT ADMINISTRATORS:F

Note: Make sure to replace Path_And_File_Name with you own, for example:

icacls C:\Windows\WinSxS\wow64_microsoft-windows-r..xwddmdriver-wow64-c_31bf3856ad364e35_10.0.14393.0_none_de9cd86dc2ec8d58\opencl.dll /GRANT ADMINISTRATORS:F

run icacls command on opencl.dll file

9. Now type the last command to copy the file from your USB drive to the Windows folder:

Copy Source_File Destination

For example: Copy G:\opencl.dll C:\Windows\WinSxS\wow64_microsoft-windows-r..xwddmdriver-wow64-c_31bf3856ad364e35_10.0.14393.0_none_de9cd86dc2ec8d58\opencl.dll

10. Reboot your PC to save changes.

11. Run Scan health command from DISM.

This method should definitely Fix corrupt Opencl.dll in Windows 10 but don’t run SFC as it will again create the problem instead use the DISM CheckHealth command to scan your files.

Method 5: Repair Install Windows 10

This method is the last resort because if nothing works out then this method will surely repair all problems with your PC. Repair Install just uses an in-place upgrade to repair issues with the system without deleting user data present on the system. So follow this article to see How to Repair Install Windows 10 Easily.

Recommended for you:

That’s it you have successfully Fix corrupt Opencl.dll in Windows 10 but if you still have any questions regarding this guide then feel free to ask them in the comment’s section.

Leave a Comment

Your email address will not be published. Required fields are marked *