DISM is a powerful utility within of Windows 10. It tin last used amongst the Command Prompt ascendence trouble together with tin last used for a diversity of purposes. But still, it is prone to come across around errors. One such mistake is – The scratch directory size mightiness last insufficient to perform this operation. This mistake is caused when the DISM ascendence is executed from the Windows Recovery Environment, due to the express size permissions of a directory where the functioning is beingness performed.
The scratch directory size mightiness last insufficient to perform this operation
We take to specify a scratch directory that contains the Windows Folder.
For that, y'all tin either utilization the DIR command or the BCDEDIT command to detect out the place of the Windows folder within a detail drive.
If the Windows folder is constitute to last within the C:\ partition.
Inside that, exercise a folder named scratch.
To exercise that, run the next ascendence inward CMD-
mkdir C:\Scratch
It volition exercise a directory within the rootage of C:\ segmentation named equally Scratch.
Now, whenever y'all take to run whatsoever of the DISM commands, y'all take to piece of occupation into the next code snippet inward your commands-
/ScratchDir:C:\Scratch
For example, if y'all are using the DISM ascendence to repair the offline Windows Image, instead of:
Dism /Online /Cleanup-Image /RestoreHealth
You take to use:
DISM /Image:C:\ /ScratchDir:C:\Scratch /Cleanup-Image /Restorehealth
If y'all want to take a selected installed update bundle ( In this code, equally an example, I accept used Package_for_RollupFix 31bf3856ad364e75 amd64 16299.196.4.9) using the DISM Commands, y'all tin utilization the next command:
DISM /image:C:\ /ScratchDir:C:\Scratch /Remove-Package /PackageName:Package_for_RollupFix 31bf3856ad364e75 amd64 16299.196.4.9
In the given ascendence examples above, y'all take to supervene upon the drive missive of the alphabet amongst the novel code snippet.
Does this help?
comment 0 Comments
more_vert