How to fix CMD command DISM /Online /Cleanup-image /Restorehealth and you get Error 3, “Unable to execute file in the temporary directory” Error on Wi

  • Thread starter Thread starter Arsim Murtezi
  • Start date Start date
A

Arsim Murtezi

Guest
Create a new Temp Folder


1. In the C: drive, create a new folder, name it Temp. (Replace C: with the drive where your operating system is installed)

2. Right-click This PC or My Computer, depending on which version of Windows you have, and select Properties from the menu.

3. On the left side, there is an Advanced System Setting link, click it.

4. In the window that opens, click on the Advanced tab, and click the Environment Variables

5. In the User variables list, double click TMP and after it TEMP

6. The value should be %USERPROFILE%\AppData\Local\Temp or X:\Temp. Change that to C:\Temp, by both TMP and TEMP. Close the windows by pressing OK.

7. Restart you Computer.

8. Run again CMD as Administrator and apply the command: DISM /Online /Cleanup-image /Restorehealth and everything will work perfectly.

Continue reading...
 
Back
Top