Skip to content

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

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published