Use PowerShell to Resolve the Error: “Not Enough Server Storage is Available to Process this Command”

Recently after updating the antivirus solution at one of my customer sites they started receiving the following error when attempting to access their old Windows 2003 servers:

\\Server\Share is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. Not enough server storage is available to process this command.

IRPStackSize1.png

Once this registry entry is added, it does require the remote server to be restarted.

Luckily, I had previously installed PowerShell version 2 along with enabling PowerShell remoting on all of their Windows 2003 servers so I was able to use PowerShell remoting to add the entry in the registry and reboot the servers:

$cred = Get-Credential

Invoke-Command -ComputerName server01, server02, server03, server04, server05, server06 {
    New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters" -Name "IRPStackSize" -Value 20 -PropertyType "DWord"
    Restart-Computer -Force
} -Credential $cred

IRPStackSize2.png

I’m looking forward to replacing all of their old Windows 2003 servers with Windows 2012 R2 during the first quarter of next year.

µ