martylist
Posts: 41
Score: 0 Joined: 6/10/2005 From: Colorado, USA Status: offline
|
Since you're using "select-string" it looks like you're using the V2 tech preview, which I don't have installed at the moment. This works on PowerShell 1.0: >get-childitem $path -filter $SearchString | get-acl | format-table PsChildName,Owner PSChildName Owner ----------- ----- Dir1.txt BUILTIN\Administrators Dir2.txt BUILTIN\Administrators Dir3.txt BUILTIN\Administrators reg1.txt BUILTIN\Administrators reg2.txt BUILTIN\Administrators reg3.txt BUILTIN\Administrators Tmp.txt BUILTIN\Administrators
|