Great stuff Jeff. I've never messed around with [void] and or Out-Null. I'm still a PS noon so much of the stuff I do is just Ah-Hoc. Is the main reason for Out-Null for performance?
This is the StackOverflow thread I referenced in the video: stackoverflow.com/questions/5260125/whats-the-better-cleaner-way-to-ignore-output-in-powershell The way I am using Out-Null seems to be slower but someone points out it may be due to the pipeline. Overall, we're talking milliseconds, but if you're script is long running and doing the operation millions of times, it could make a difference.
Great stuff Jeff. I've never messed around with [void] and or Out-Null. I'm still a PS noon so much of the stuff I do is just Ah-Hoc. Is the main reason for Out-Null for performance?
This is the StackOverflow thread I referenced in the video:
stackoverflow.com/questions/5260125/whats-the-better-cleaner-way-to-ignore-output-in-powershell
The way I am using Out-Null seems to be slower but someone points out it may be due to the pipeline. Overall, we're talking milliseconds, but if you're script is long running and doing the operation millions of times, it could make a difference.
@@jeffbrowntech Thanks Jeff. Keep up the great work you're doing.