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?
LVL 1
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
0
 
John DarbyPMAuthor Commented:
Thank you for the pointer! :)
0
 
footechCommented:
Just to add, supposedly PS 3.0 is much faster in this regard.
0
 
John DarbyPMAuthor Commented:
I sure look forward to that! :)
0
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.