2

Similar to This question. However, what I want is output similar to what you get when you ls or dir the directory, so that I get the timestamps, size, etc.

I tried

Get-ChildItem -recurse | Select-String -pattern "dummy" | group path | select lastwritetime,name

but had no success. When typing above I get:

Name                                    lastwritetime
File1.txt                                              
File2.txt                                

and so on.

Community
  • 1
  • 1
Mitch
  • 1,604
  • 4
  • 20
  • 36

1 Answers1

3

You could try something like:

Get-ChildItem -r | Select-String "dummy" -list | ls
DarkAjax
  • 15,955
  • 11
  • 53
  • 65