I know how to query workitems, although I haven't been very successful finding info on the WIQL. There's one basic example that seems to get repeated everywhere.
I'd like to be able to query changesets. Can I do it with tf.exe, tfpt.exe, or.. ?
The October 2008 release of the TFS PowerTools has some cmdlets for working with change sets.