locked
Stsadm using a file to loop through for values? RRS feed

  • Question

  • Hit a problem with my sites not picking up changes to my masterpage.  If i manually open each site and change the default master to another page, then change it back to the one i want, it picks up the changes.

    I have 10,000 sites, so doing it manually is not an option and some sites have different masterpages so i can't run a whole command for the farm.

    I have a csv file with all the sites and masterpages i need to update, my question is, can i use this file with stsadm, i would like stsadm to loop through for the values.  I have found a Gary Lapointe command so i have 2 things i was thinking of, obviously the easiest would be my preferred option!

    stsadm -o gl-setmasterpage -url "<i want to loop through text file and pull through url here>" -sitemaster "<i want to loop through text file and pull through custom master url here here>" -systemmaster "i want to loop through text file and pull through custom master url here here"

    If you can help point me in the right direction that would be great!  Thanks!

    • Moved by Mike Walsh FIN Saturday, June 25, 2011 4:06 PM stsadm is a built-in command so any question on using it is not programming and goes to the admin forum (From:SharePoint - Development and Programming (pre-SharePoint 2010))
    Saturday, June 25, 2011 2:40 PM

Answers