4 ways to send output to NULL in PowerShell
1. Using Out-Null Cmdlet : Hides/discards the output instead of sending it down the pipeline or displaying it.
2. Typecasting to [void] : This is more of a very C#-flavored trick
3. Redirection to $NULL: Redirecting the output to the Automatic variable $Null
4 . Assignment to $NULL: Assigning the output to the Automatic variable $Null
Categories
Author of Books
Awards
Open Sourced Projects
Author at
Blog Roll
Mike F RobbinsDamien Van Robaeys
Stéphane van Gulick
Kevin Marquette
Adam Bertram
Stephanos Constantinou
Francois-Xavier Cat
Ravikanth Chaganti
Roman Levchenko
Blog Stats
- 1,131,903 People Reached