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

  • Apocalypse Maybe: A D&D Campaign Log. Part 19: Manic Myconid Mushroom Mayhem
  • 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

Most Popular

  • XCOM 2: Legendary Ironman Guide / Tips
  • XCOM 2: Long War 2 Guide and Tips (Spoiler-Free)
  • XCOM 2: War of the Chosen Tips
  • PowerShell: Display A Menu And Get a Valid Choice
  • PowerShell : Get Folder Size on Disk, One-Line Command

Interesting Read

The Equality Trust

Top Posts & Pages

  • XCOM 2: Legendary Ironman Guide / Tips
  • XCOM 2: Long War 2 Guide and Tips (Spoiler-Free)
  • XCOM 2: War of the Chosen Tips
  • PowerShell: Display A Menu And Get a Valid Choice
  • PowerShell : Get Folder Size on Disk, One-Line Command

Recent Posts

  • Apocalypse Maybe: A D&D Campaign Log. Part 19: Manic Myconid Mushroom Mayhem
  • 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

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 (88)
    • Board Gaming (5)
    • Hearthstone (3)
    • LAN Yarns (6)
    • Marvel Heroes Online (2)
    • MechWarrior:Online (1)
    • Painting (1)
    • Role Playing (20)
      • Dungeons and Dragons (19)
        • Apocalypse Maybe (19)
    • 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 (4)
Blog at WordPress.com.
  • Subscribe Subscribed
    • Herring's Fishbait
    • Join 62 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Herring's Fishbait
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar