[Solved] output file properties like filename, etc in powershell into a csv


Get-ChildItem C:\Windows\System32\ | Select-Object Name,CreationTime,@{n='MD5';ex={(Get-FileHash $_.fullname).hash}}

Use -Recurse parameter if you want to get files from sub directories also:

Get-ChildItem C:\Windows\System32\ -Recurse 

Use -File parameter if you want to get only files and not folders:

Get-ChildItem C:\Windows\System32\ -Recurse -File

Type the following command to get the list of all available properties:

Get-ChildItem | Get-Member

9

solved output file properties like filename, etc in powershell into a csv