Link to home
Start Free TrialLog in
Avatar of jaguar5554
jaguar5554Flag for United States of America

asked on

Output directory of parent folders and subfolders of a network drive

Hello- I am requesting assistance with generating a directory listing of parent folders and subfolders with respective modified date of a network drive -- which output can be parsed or delimited into organized columns. The contents of the folders and subfolders should not be returned unless they can be easily suppressed or filtered.  (Note: dir and dir /s from a command prompt do not return desired results). Thanks much in advance- apc

SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jaguar5554

ASKER

Wowee -- Thank you! My apologies for having to ask but where does the export write to? 
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Would this work? so the file is saved to the root of my local drive?

powershell.exe -Command "gci '\\Server\Share\Folder' -Recurse -Directory | select FullName, Name, LastWriteTime, CreationTime | Export-Csv 'c:\Folders.csv' -nti"
Avatar of oBdA
oBdA

Sure.