powershell for folder stats

pma111
pma111 used Ask the Experts™
on
is there an easy way in powershell to provide a path e.g. \\server\share\directory, and the script produce for all files and directories in that path to include filename, type, size, date modified, date accessed, date created fields, and output to CSV? I need a quick tool to analyse activity on working folders to ensure when staff say they have worked on a file that the date stamps correlate with this and they aren't lying.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Systems Engineer
Commented:
get-childitem -path \\server\share\directory -Recurse | select fullname,name,attributes,lastwritetime,creationtime,LastAccessTime | Export-Csv C:\temp\export.csv -NoTypeInformation

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial