Searching for Files Using the Everything Search Tool
Void Tools is a software company that produced the Everything search tool. Most IT pros run it from the GUI but there is a community module to help you use this tool using PowerShell. The Everything tool and the PowerShell community have developed a nice little product that you can easily leverage in PowerShell. The Everything applications return fully qualified filenames for those files on your system whose names meet a specified pattern. You can use either a wild card (e.g., *.PS1
) or a regular expression (e.g., '\.PS1$'
) as a pattern. There is also an add-on module that provides an easy-to-use PowerShell COMMAND.
The key benefit is that it is very fast. On a large Windows host with say one million total files, it might take 10-12 seconds to return a list of all the files on that system. To find all the .PS1
files on the system drive would take under 100 milliseconds. By comparison, using Get-ChildItem
would take...