How To Hide PowerShell Output

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.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.