hi,
i have this code in my script: ($myIP = Get-NetIPAddress -AddressFamily IPv4 | Select-Object IPAddress)
When i build the script and run it (.exe file) i receive this in the console:
I have tried to pipe the result to | out-null without any change. How can i remove the output in the console?
Supress output from a build file (.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.
Supress output from a build file (.exe)
That is a progress message. You cannot pipe that to null.
Try this:
$ProgressPreference = 'SilentlyContinue'
Go to full postTry this:
$ProgressPreference = 'SilentlyContinue'
Re: Supress output from a build file (.exe)
[Topic was moved by moderator to PowerShell Forum]
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- Alexander Riedel
- Posts: 8575
- Last visit: Sat Nov 02, 2024 12:15 pm
- Been upvoted: 42 times
Re: Supress output from a build file (.exe)
That is a progress message. You cannot pipe that to null.
Try this:
$ProgressPreference = 'SilentlyContinue'
Try this:
$ProgressPreference = 'SilentlyContinue'
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Supress output from a build file (.exe)
Thank you . That solution solve the problem and teached me someting new