on 08-24-2017 8:37 AM
Good morning experts,
I swear I've seen this problem before but I cannot pinpoint where and searching SCN hasn't yielded results.
Anyway, I have a client who's got a Shell execute pass that's doing some work with a CSV file. When the line executes, the Powershell.exe program doesn't seem like it's closing. The instance stays resident in memory until so many instances of it are running in memory that an intervention is necessary to close all the hanging Powershell sessions.
Anyone have any ideas how to make sure the Powershell.exe instance exits once the pass has concluded?
Brandon,
in the task parameters of your Shell Execute pass, try adding a line:
Parameter name: CLOSEOUTPUTSTREAM
Parameter value: 1
Kind regards,
Lambert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A year ago when I asked this question, we ended up finding another way to do what needed to be done so the PowerShell script portion was eliminated and I forgot about this question. Today, I was running into the same problem but with a different client and came back across this question. I implimented your answer and it worked! Many thanks!
If you are using command line you need to add this lines before calling the ps1 file
-NoLogo -Noninteractive -InputFormat None -NoProfile
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Brandon,
Are you using any command line parameters? You might need /c with that. I think you need it just about any time you do a shell execute from IDM.
You can find a listing of the command line parameters here.
Matt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Test system? I like the world you live in. 🙂
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.