Share this post:This blog post is part of an ongoing series by Adam Gordon. Adam will walk through each PowerShell command every week, explaining when and how to use them. Adam will be covering Out-Null this week.
When is Out-Null appropriate?
The Out-Null cmdlet sends the output to NULL. This removes it from the pipeline and prevents the output from being displayed on the screen.
What version of PowerShell should I use for this blog?
Get the PowerShell Version for your machine
This command displays the PowerShell version information for your machine.
How to use Out-Null
Get-ChildItem | Out-Null
This command retrieves items from the current directory/location, but it does not pass through the pipeline or display at the command line.
This is useful to hide output you don’t need.
Learn the command for last week: Remove-Module.
Do you need PowerShell training? ITProTV offers PowerShell online IT training courses.