jaguar5554
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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"
powershell.exe -Command "gci '\\Server\Share\Folder' -Recurse -Directory | select FullName, Name, LastWriteTime, CreationTime | Export-Csv 'c:\Folders.csv' -nti"
Sure.
ASKER