July 2, 2013

Find all files and folders with specific name

To find all files and folders with ‘excel’ within their name :

Get-ChildItem -filter "*excel*" -Recurse | select name, fullname, lastwritetime,PSIsContainer | Out-GridView

2 comments:

Anonymous said...

Out-GridView does not work in remote sessions.

ParadisJ said...

When you say 'remote session', do you mean Remote Powershell (WInRM) ?
If yes, you should get the resulting object locally (from WinRM) then call out-gridview.

Post a Comment