var tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("[url to your tfs server]"));
var store = tfs.GetService<WorkItemStore>();
var project = store.Projects["[your project name"];
var sourceGuid = new Guid("14c1bcab-0bcb-40ee-80c1-e23d1dc41a15");
List<Guid> destinationGuids = new List<Guid>
{
new Guid("183dba3a-06fd-4b3f-bf60-9dec3fe8cfcd"),
new Guid("c0a612b9-9e61-4f78-98ab-07c70702b9d6"),
new Guid("3925276a-389c-4052-b1c9-6efedc2ee3a0"),
new Guid("599f08f7-a3c0-4b88-a7fe-66f1b9e88e54"),
new Guid("80d10f84-b14d-429c-82df-c6c0113fd043"),
new Guid("5cc37d79-70c2-426d-bfe4-8544c805ae21"),
new Guid("d147d553-0aac-4ebb-8ee7-d281cb5fc7c0"),
new Guid("01e8daea-585a-4d3e-af0d-c2c11e742f8c")
};
// the QueryText is a lot like SQL... SELECT COLUMNS FROM TABLE ORDER BY COLUMNS
// we want to get the selected COLUMNS and the ORDER BY columns, then copy those to the destination queries
var sourceQuery = project.StoredQueries[sourceGuid];
// get the columns
var sourceColumns = sourceQuery.QueryText.Substring(0, sourceQuery.QueryText.IndexOf(" from "));
// get the order by
var sourceSort = sourceQuery.QueryText.Substring(sourceQuery.QueryText.IndexOf(" order by "));
foreach (Guid destinationGuid in destinationGuids)
{
// get the destination query filters, the stuff in between the columns and the order by
StoredQuery destinationQuery = project.StoredQueries[destinationGuid];
int fromIndex = destinationQuery.QueryText.IndexOf(" from ");
int orderByIndex = destinationQuery.QueryText.IndexOf(" order by ");
string queryFilters = destinationQuery.QueryText.Substring(fromIndex, orderByIndex - fromIndex);
// combine the source columns and sort with the destination filters
destinationQuery.QueryText = string.Concat(sourceColumns, queryFilters, sourceSort);
destinationQuery.Update();
}