Create directory listing of netwok drive, showing file/folder permissions
I need to review the contents and security attributes of some network drives. I'd like to list folders and subfolders, and potentially the files within the folders, and see who has what permissions to the folders and subfolders. I know how to display this information onscreen using Windows Explorer. But is there any way to extract this information into an Excel file, or possibly a text file, or even to print it? I'll be working with the owners of the folders to make sure that we have the proper security settings for the various folders and subfolders, and it would make the review process a lot easier if we could get the information into a spreadsheet. Thanks.
August 29th, 2012 10:13am

Hi, You can use the dir command to display a list of a directory's files and subdirectories. /q : Displays file ownership information. /s : Lists every occurrence, in the specified directory and all subdirectories, of the specified file name. dir [Drive:][Path][FileName] /s /q > [Drive:][Path][FileName.txt] For example: dir e:\ /s /q > e:\dir.txt It will display the files and subdirectories in drive E, and export the display result from Command Prompt to a txt file which located in e:\dir.txt. For you reference: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dir.mspx?mfr=trueTracy Cai TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2012 2:24am

Hi, You can use the dir command to display a list of a directory's files and subdirectories. /q : Displays file ownership information. /s : Lists every occurrence, in the specified directory and all subdirectories, of the specified file name. dir [Drive:][Path][FileName] /s /q > [Drive:][Path][FileName.txt] For example: dir e:\ /s /q > e:\dir.txt It will display the files and subdirectories in drive E, and export the display result from Command Prompt to a txt file which located in e:\dir.txt. For you reference: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dir.mspx?mfr=trueTracy Cai TechNet Community Support
August 30th, 2012 2:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics