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


when executing commands interactively works should executing same commands via scriptblock using invoke-command returns failed execute: not enough quota available process command

my particular case using regsvr32.exe register dll's , ocx files.  i can run single command in interactive remote session 1 one , works.  bur running on directory recurse register dll's gives me error.

something gci c:\somedir -recurse | where-object {$_extension -eq ".dll"} | foreach (regsvr32.exe /s $_.fullname}  fails not enough quota error.  so there remote buffer filling up? clear out?

if did get-childitem , found dll's , registered them 1 one works fine.  when in loop register 3-5 error start on registering again 3-5 error again , on.

after finished leaves regsvr32.exe process running each 1 failed.

when run locally in loop - not remoted in - works on files without problems has pssession i'm @ loss right now.

any appreciated.

hi kevin,

please try cmdlet "enter-pssession" instead of cmdlet "invoke-command", check if can work.

in addition, please try increase quota allow command complete specifying sessionoption parameter in cmdlet "invoke-command".
more detailed information, please refer article:
about_remote_troubleshooting:
http://technet.microsoft.com/en-us/library/hh847850.aspx

if have feedback on our support, please click here.

best regards,

anna

technet community support



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607