How to find directories with 'log' in them.
- Open File Explorer
- From the Search upper right corner type keyword filetype:directory
Example: log filetype:directory will return all directories with the word log in it.
Remember to select the starting folder.
Example: Documents search will return only what was found in the default documents folder.
C:\Windows will return everything within the Windows folder.
Selecting C:\ drive with Admin privileges should get you everything on the C: drive.
If you have multiple drives select "Computer" then search keyword filetype:directory
Updated with simple script.
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run ("explorer /root,""search-ms:query=logs&crumb=kind:=folder&crumb=location:&""")
Set objShell = Nothing
The above will search all your internal and mapped drives in your explorer.exe view.
The location: can be set if you need to check only select drives.
It would look like
location:C:\
You can repeat this for every target drive or folder path you need to search.
&crumb=location:C:\&crumb=location:F:\directory&crumb=location:G:\
From my testing on 2008 R2 I found simply leaving the location without a target will search all physical and mapped drives.
&crumb=location: