guimatheus92 / Get-file-metadata-from-PowerShell-script

Get a file’s metadata inside the Windows system using a PowerShell script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get file metadata from Powershell script

A document repository can also be found in my profile article at Medium.


The main file to get the final result is the filename GETMETADATA_CSV.ps1, from this file you will access another powershell script (explained both below and in my Medium article), and then export the result into a CSV file.

The first step is to download a powershell script that has the function to access this information from the link at Get-FileMetadata.

If you want, you can change the folder where you want to get the metadata from and also to download the metadata to a CSV file

# Defines the directory where the files will be, to get their metadata
$FilePath = "C:\"

# Defines the directory and name of the file to be exported to the CSV file
$Dir = "C:\METADATA_CSV.csv"

About

Get a file’s metadata inside the Windows system using a PowerShell script.


Languages

Language:PowerShell 100.0%