Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Invoke-command causes "Not enough quota is available to process this command"

$
0
0

When executing commands interactively everything works as it should but executing the same commands via a scriptblock using invoke-command returns the Failed to execute: Not enough quota is available to process this command

my particular case is using regsvr32.exe to register some dll's and ocx files.  I can run that single command in an interactive remote session one by one and it works.  Bur running it on a directory with recurse to register all the DLL's gives me that error.

something like gci C:\somedir -recurse | where-object {$_extension -eq ".dll"} | foreach (regsvr32.exe /s $_.Fullname}  fails with the not enough quota error.  So is there some remote buffer I am filling up? that I could clear out?

If i did a get-childitem and found all the DLL's and registered them one by one it works just fine.  When in the loop it will register 3-5 then error then start over registering again for 3-5 then error again and so on.

After it is finished it leaves a regsvr32.exe process running for each one that failed.

When run locally in the loop - not remoted in - then it works on all the files without any problems so it has to do with the pssession but I'm at a loss right now.

Any help is appreciated.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>