Skip to content

Herring's Fishbait

Family, Cool Stuff and Assorted Geekery; the finer things in life. Updated when I have something interesting to write :)

  • Home
  • Powershell
    • All PowerShell
    • Scripts
  • Gaming
    • All Gaming
    • Apocalypse Maybe
    • LAN Party Game List
  • Diary Entries
    • All Diary Entries
    • Days Out
    • Holidays
      • All Holidays
      • Australia 2013
      • Iceland 2015
      • California 2016
    • LAN Yarns
    • Tales from IT
  • Bazaar of the Strange And Unusual
  • About

Tag: Files

Posted on April 3, 2015July 1, 2015

PowerShell : Getting All File Metadata from a Folder

I noticed my wife going through some photos manually tracking which tags were used to classify different subjects so I wondered if I could write a little PowerShell that could return all the file metadata on a set of files (or the contents of a folder).  That would enable me to list out all the tags we’ve used on our photo collection, filter them and generally get an idea about the organisation.

After a quick Google I found a great script here from Microsoft but there were a few additional things I wanted it to do;

  • Return the information in a stream of objects so I can use the pipeline.
  • Accept input from the pipeline.
  • Use either a path to a file or a path to a folder;  if the latter is provided recurse through all the sub-directories.
  • Get more than 266 file properties.  In fact, assume we don’t know how many file properties are going to be listed on the file and get them all.

Updated script and explanation follows! Continue reading “PowerShell : Getting All File Metadata from a Folder”

Recent Posts

  • Favourite Video Game Music, Pt1
  • Apocalypse Maybe: A D&D Campaign Log. Part 18: Push It Good…. Push It Real Good.
  • Apocalypse Maybe: A D&D Campaign Log. Part 17: Funghis, Leggy Girls and Narak Exposition
  • Apocalypse Maybe: A D&D Campaign Log. Part 16: Derro Indemnity
  • Painting Miniatures: First Attempts (Core Space)

Most Popular

  • PowerShell: Synchronizing a Folder (and Sub-Folders)
  • XCOM 2: Legendary Ironman Guide / Tips
  • Fixes for the "Steam Stuck at a Blank Screen" Issue
  • PowerShell : Get Folder Size on Disk, One-Line Command
  • PowerShell: Check if an Email Address is Valid
  • Mission : Survive ~30 hours without sleep.
  • LAN Yarns : Warcraft 3 Maginot Line
  • PowerShell: Setting Exchange Send-As Permissions without Using the Add-ADPermission cmdlet
  • PowerShell: Finding Invalid Mailboxes in Exchange
  • Simple PowerShell to get a Computer's Specification

Interesting Read

The Equality Trust

Top Posts & Pages

  • PowerShell: Synchronizing a Folder (and Sub-Folders)
  • XCOM 2: Legendary Ironman Guide / Tips
  • Fixes for the "Steam Stuck at a Blank Screen" Issue
  • PowerShell : Get Folder Size on Disk, One-Line Command
  • PowerShell: Check if an Email Address is Valid
  • Mission : Survive ~30 hours without sleep.
  • LAN Yarns : Warcraft 3 Maginot Line
  • PowerShell: Setting Exchange Send-As Permissions without Using the Add-ADPermission cmdlet
  • PowerShell: Finding Invalid Mailboxes in Exchange
  • Simple PowerShell to get a Computer's Specification

Recent Posts

  • Favourite Video Game Music, Pt1
  • Apocalypse Maybe: A D&D Campaign Log. Part 18: Push It Good…. Push It Real Good.
  • Apocalypse Maybe: A D&D Campaign Log. Part 17: Funghis, Leggy Girls and Narak Exposition
  • Apocalypse Maybe: A D&D Campaign Log. Part 16: Derro Indemnity
  • Painting Miniatures: First Attempts (Core Space)

Categories

  • Books (3)
  • Diary Entries (85)
    • Days Out (31)
    • Holidays (40)
      • Australia 2013 (12)
      • Brecon Beacons 2015 (1)
      • California 2016 (18)
      • Iceland 2015 (7)
    • Tales from IT (10)
  • Family (5)
  • Films (7)
  • Gaming (87)
    • Board Gaming (5)
    • Hearthstone (3)
    • LAN Yarns (6)
    • Marvel Heroes Online (2)
    • MechWarrior:Online (1)
    • Painting (1)
    • Role Playing (19)
      • Dungeons and Dragons (18)
        • Apocalypse Maybe (18)
    • Starcraft (3)
  • Kickstarter (5)
  • Music (6)
    • Guitar (1)
  • Pets (2)
  • Reviews (7)
  • Technology (96)
    • Exchange (8)
    • Hardware (4)
    • Office 365 (7)
    • Powershell (75)
      • Tutorials (3)
    • UNIX (1)
    • Virtual Reality (1)
    • Windows (8)
  • Uncategorized (3)
Blog at WordPress.com.
  • Follow Following
    • Herring's Fishbait
    • Join 62 other followers
    • Already have a WordPress.com account? Log in now.
    • Herring's Fishbait
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar