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

Question:

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:

PowerShell has gone through some iterations, and this can now be achieved with a native command: Get-ItemProperty

Example: Shows the current details of ntdll.dll file:

Source:

How do I access “Details” (“Title”, “Subject”, etc.) of file properties in Perl or PowerShell script by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply