Found it, but I don't have time to write a solution. Luckily, I'm not the only person here. :)
1. look at $env:appdata\Apple Computer\iTunes or maybe $env:appdata\Roaming\Apple Computer\iTunes and check out iTunesPrefs.xml
2. Figure out how to go to the right place in the XML file and assign the contents of a certain node to a variable. This worked for me:
PS > $prefs = "$env:appdata\Apple Computer\iTunes\iTunesPrefs.xml"
PS > [xml]$xml = gc $prefs
PS > $xml.plist[1].dict.dict[2].data[7]
QwA6AFwAVQBzAGUAcgBzAFwASABhAGwAXABNAHUAcwBpAGMAXABpAFQAdQBu
AGUAcwBcAGkAVAB1AG4AZQBzACAATQB1AHMAaQBjACAATABpAGIAcgBhAHIA
eQAuAHgAbQBsAA==
I made an educated guess that this was the right key, and that it was base64-encoded. I manually stripped the spaces and so forth and...
PS > $str = "QwA6AFwAVQBzAGUAcgBzAFwASABhAGwAXABNAHUAcwBpAGMAXABpAFQAdQBuAGUAcwBcAGkAVAB1AG4AZQBzACA
ATQB1AHMAaQBjACAATABpAGIAcgBhAHIAeQAuAHgAbQBsAA=="
PS > $b = [convert]::FromBase64String($str)
PS > [system.Text.Encoding]::Unicode.GetString($b)
C:\Users\Hal\Music\iTunes\iTunes Music Library.xml
Instructions on how to do the base-64 encoding/decoding are here:
http://blogs.msdn.com/powershell/ar...83265.aspx.
Then put the right value in the file, and cross your fingers, and restart iTunes. :)