Powershell very slow in recursing through directory listing

When I execute a recursive directory listing in CMD shell it zips along speedily.

dir /s

However, when I do the same with Powershell the result is much slower

get-childitem -recurse

Is there a way to improve the speed of output?
John DarbyPMAsked:
Who is Participating?
Meir RivkinFull stack Software EngineerCommented:
you can use FileSystem.GetFiles which is faster and can be run via powershell:
How to speed up Powershell Get-Childitem over UNC
John DarbyPMAuthor Commented:
Thank you for the pointer! :)
Just to add, supposedly PS 3.0 is much faster in this regard.
John DarbyPMAuthor Commented:
I sure look forward to that! :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.