I have a directory that inadvertently had about 1.4 million files generated into it. I want to list just the first, say, 100 items, but without the underlying process trying to read the entire directory contents internally, which causes a very long wait which, at this stage, has been processing for nearly an hour.
How do I do this with Powershell?
Want the first hundred items in a directory?
Only want files?
Want to skip the first
40
directories and get the next 200?