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”