Command Prompt error “Not enough memory resources” in Windows 10

In today’s post, we will examine the cause of the command prompt error that reads; Not enough memory resources are available to process this command when you execute a command in command prompt environment in Windows 10 – we will also provide the remediation to this issue.

Command Prompt error “Not enough memory resources”

Not enough memory resources are available to process this command

This error message indicates that there is not enough memory to execute the command you enter, usually in CMD – command prompt. It may also happen when you access shared items on a Windows server.

If it’s the former situation, it’s usually due to stopped Windows core services caused by corrupted system files, conflicts that involves system files, or malwares infections.

To resolve this issue, you can try the following solutions in no particular order:

1. Run SFC/DISM scan
2. Perform in-place repair upgrade using Windows 10 install disk
3. Increase the IRPStackSize registry value
4. Run a malware scan

Now, let’s delve into the details of the recommended solutions.

1] Run SFC/DISM scan

If you are getting the error in command prompt, in the same command prompt (make sure they have admin privileges), and initiate the SFC/DISM scan. This will run the system file scan to automatically scan and repair corrupted or missing files/Windows 10 image.

For the purposes of ease and convenience, you can run the scan using the procedure below.

Open Notepad – copy and paste the command below into the text editor.

@echo off
date /t & time /t
echo Dism /Online /Cleanup-Image /StartComponentCleanup
Dism /Online /Cleanup-Image /StartComponentCleanup
echo ...
date /t & time /t
echo Dism /Online /Cleanup-Image /RestoreHealth
Dism /Online /Cleanup-Image /RestoreHealth
echo ...
date /t & time /t
echo SFC /scannow
SFC /scannow
date /t & time /t
pause

Save the file with a name and append the .bat file extension – eg; SFC_DISM_scan.bat

Repeatedly run the batch file with admin privilege (right-click the saved file and select Run as Administrator from the context menu) until it reports no errors – at which point you can now restart your PC, and on boot, try executing commands you were entering earlier and see if the issue is resolved.

2] Perform in-place upgrade repair using Windows 10 install disk

Here, it’s recommended you perform an in-place upgrade repair using Windows 10 installation disk. The process will retain all your apps and files as well as personalised settings but will replace any corrupt system files with fresh and healthy copies from the installation media.

Once the procedure completes, re-execute the command and see if the error not enough memory resources are available to process this command still persists.

3] Increase the IRPStackSize registry value

 

For this solution, if you’re getting the error when you try to access shared items on Windows server, do the following to increase the IRPStackSize registry value.

  • Press Windows key + R. In the Run dialog box, type regedit, hit Enter to launch Registry Editor.
  • Now, navigate to the registry folder below:

HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > LanmanServer > Parameters

If the IRPStackSize entry cannot be found from the subkey, create it by right-clicking anywhere in the right pane. Select New > DWORD (32-bit) Value. Name it IRPStackSize.

  • Next, double-click on IRPStackSize entry, in the data value, enter a larger value, for example, a value of 20 with Decimal base. We suggest you to try a slight increase for the value first.
  • Click OK.
  • Restart PC.

Note: You can return to this registry entry to increase the value if the not enough memory resources are available to process this command problem persists.

4] Run a malware scan

If you’re having this issue on your PC, run a full system anti-virus scan. You might be experiencing this issue if your Windows 10 PC is infected by malware.

And that’s it, folks!

Leave a comment