title: Access Music File Metadata in Powershell
body: <p>So over the years between getting copied from one PC/hard drive to the next, my music collection is in a bit of a mess, so I want to go through each one programmatically and update the file metadata in the below screenshot (from right click > Properties on the file):</p>
  
  <p><a href="https://i.stack.imgur.com/pYS4B.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pYS4B.png" alt="enter image description here"></a></p>
  
  <p>Some of the files are MP3 so I know ID3 can be used there (I had tried using Get-Content to view the last 128 bytes where the ID3 tags go, but only some small bits show as readable text, assuming this is because it's a binary file and needs decoded/parsed in some specific way). About an equal number are WMA (quite an old codec version, probably 7 or 8) and some are uncompressed WAV.</p>
  
  <p>So I possibly need two things:</p>
  
  <p>a) a way to access and update the ID3 info for the MP3 type files
  b) a way to access the File Properties (at the Windows level) for WMA and WAV; if this method would also work for MP3 that'd be fantastic</p>
  
  <p>Anyone got any ideas? I know this is possible in C# but that's a bit over my head right now as more used to scripting. If it needs to be done in a proper compiled program so be it but hoping there's a way to do it in shell.</p>