Suppressing undesired output that appears in generated EXE
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: Suppressing undesired output that appears in generated EXE
Ran a packaged exe with invoke-webrequest in a debugger and looked where the output comes from.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Suppressing undesired output that appears in generated EXE
I tried to do that but couldn't get the VS debugger to break in the script and didn't push further. I assumed you would do better with the source and PDB to work with. You did it pretty fast but then I guess you have been looking at this in the debugger for a long time.
- andycarpenter@westat.com
- Posts: 18
- Last visit: Wed Jan 17, 2024 9:56 am
Re: Suppressing undesired output that appears in generated EXE
I just did a quick test and this looks to suppress the output -- for Get-NetConnectionProfile also.
I REALLY appreciate the assistance each of you provided in resolving this. Ultimately, it was a PowerShell coding issue, but took a lot of work by folks far more knowledgeable than me to see that.
Thank you again.
Andy
I REALLY appreciate the assistance each of you provided in resolving this. Ultimately, it was a PowerShell coding issue, but took a lot of work by folks far more knowledgeable than me to see that.
Thank you again.
Andy
Re: Suppressing undesired output that appears in generated EXE
Glad to help. It baffled me but Alex with his trusty debugger saw it right away. It is not something that most of us would have guessed since no progress came up ever when testing as a script.