Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Create CSV for list of files and folders

$
0
0

Hello

I want to create a list of folders, their nested folder and files under each folder alongwith their file attributes like

  • FileName
  • Location
  • Size
  • FileType
  • LastModifiedBy (Username who modified the file last time)
  • WindowsModified (Last Modified Date)
  • WindowsCreatedBy(Username who create the file)
  • WindowsCreated (File Created Date)
  • AccessedDate (Last Assessed Date)
  • MD5Key (Generate MD5 hash key depending on file content)

How can I generate this information and save it into CSV file?

I want execute the scrpit like this fileassess.ps1 -path "c:\"

Regards

Avian


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>