In this blog post, I will show you how to hide a PowerShell cmdlet output and not showing it on the screen.
In some cases, you might need to hide the output of you PowerShell cmdlet. for example, you might have a use case where you need to create a password or some sensitive information that you don’t want to output to the console or screen.
Out-Null
The cmdlet that allows us to hide PowerShell output, is out-null as shown in the example below
get-process | out-null
Processing…
Success! You're on the list.
Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.