How do I access "Details" ("Title", "Subject", etc.) of file properties in Perl or PowerShell script

Vasily A picture Vasily A · Sep 28, 2012 · Viewed 19.2k times · Source

If one looks at file properties in Windows Explorer, the "Details" tab, - for many filetypes (for example, tiff or jpeg images, Office documents, etc.) there is the "Description" section with fields like "Title", "Subject", "Tags", and "Comments". Is there a way to read/write these fields from Perl or a PowerShell script?

Answer

Keith Hill picture Keith Hill · Sep 28, 2012

I wrote up a blog post on how to access extended properties a while back - as in when PowerShell was still in beta and called Microsoft Command Shell (MSH). :-) I think it's still a valid approach.