Ask a questionAsk a question
 

AnswerUpdating site owners via STSADM

  • Monday, July 28, 2008 1:42 PMPirateEric Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Is there a method to update site owners via the stsadm command?  A user that left is named as a site owner for several sites and I would like to script an update to update the sites that this person is named as either a primary owner or secondary owner to another user.  We are running in a SPS 2003 environment currently.

    eric 

Answers

  • Monday, July 28, 2008 2:18 PMFrancesco Sodano Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    This is for Wss 2.0 so i think it's ok also for SPs2003

    Change the owner of a site collection by using Stsadm.exe

    1. Determine the URL of the site and the user name of the user you want to add as site owner. If you want to add a secondary owner, determine that user's user name.

    2. On the server running Windows SharePoint Services, open a command prompt.

    3. Type the following, replacing the italicized text with the correct information

      stsadm.exe -o siteowner -url URL [-ownerlogin DOMAIN\User_Name | -secondownerlogin DOMAIN\User_Name]
    For more information http://technet.microsoft.com/en-us/library/cc288089(TechNet.10).aspx

    www.sharepointinside.it
    • Marked As Answer byPirateEric Monday, July 28, 2008 2:19 PM
    •  

All Replies

  • Monday, July 28, 2008 2:18 PMFrancesco Sodano Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    This is for Wss 2.0 so i think it's ok also for SPs2003

    Change the owner of a site collection by using Stsadm.exe

    1. Determine the URL of the site and the user name of the user you want to add as site owner. If you want to add a secondary owner, determine that user's user name.

    2. On the server running Windows SharePoint Services, open a command prompt.

    3. Type the following, replacing the italicized text with the correct information

      stsadm.exe -o siteowner -url URL [-ownerlogin DOMAIN\User_Name | -secondownerlogin DOMAIN\User_Name]
    For more information http://technet.microsoft.com/en-us/library/cc288089(TechNet.10).aspx

    www.sharepointinside.it
    • Marked As Answer byPirateEric Monday, July 28, 2008 2:19 PM
    •  
  • Monday, July 28, 2008 2:19 PMPirateEric Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks!