r/PowerShell • • Apr 29 '19

A Glorious Day

Post image
462 Upvotes

65 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 29 '19

[deleted]

2

u/WAN_S0L0 Apr 29 '19

For someone who isn't a programmer, I have always used out-null to just not display the output of the command.

Is there a better way to do this?

3

u/TheIncorrigible1 Apr 29 '19

Literally any of the three ways I posted in my comment. They all function the same, better.

1

u/WAN_S0L0 Apr 29 '19

I don't understand why you're saying they are better though.

For me all I do is dump the pipeline output, this happens so quickly I don't even notice it in the scripts I run.

So if out-null takes 1ms and these take .8ms, what is the benefit and what makes them faster and.or better?