Why does Select-Object take so long to keep the -first objects?
There’s recently been a big discussion on the PowerShell MVP mailing list about Select-Object and its -first parameter, which instructs it to only keep the first “x” objects it’s given. The discussion basically goes like this:
1..10000 | select -first…
Read More