Remotely executing a memory intensive exe with powershell -
i'm trying kick off exe (it written in house) using powershell. exe memory intensive, using 12 - 15 gigs @ times (it's overnight job) exe works fine , it's been moved it's own machine 32 gigs of ram. rather use winat or schedule it, i'd use powershell centralize nightly processes run , execute remotely. however, keep running memory issues (from searching around has shown). i'm getting message on calling machine - "the ws man process did not return proper response. provider in host may have behaved improperly." started changing value of maxmemorypershell , exe start sometimes, though i've yet finish. setting i'm referring to:
get-item wsman:\localhost\shell\maxmemorypershellmb
i've tried setting 15 gigs on target machine , had no luck. have experience calling memory intensive processes powershell? i'm not clear maxmemory should set to, machines needs set on, or if there's other settings i'm not aware of.
thanks in advance help.
edit: here call i'm using in powershell:
invoke-command -computername targetmachine.mydomain.com -scriptblock{cd "d:\code";.\myprocess.exe n 30}
"n" , 30 , parameters passed exe.
i ended using psexec, works champ. no memory issues @ all.
Comments
Post a Comment