Changing Site Owners from the Command Line (Windows SharePoint Services 2.0)
From the command line for Windows SharePoint Services, you can perform many of the same tasks that you can perform from the HTML administration pages. You can also change the site owner by using the siteowner operation with the stsadm.exe command.
Note
Additionally, you can get a list of the command-line operations by typing stsadm.exe -help on the command line. Syntax help for specific operations is available by typing stsadm.exe -help<operation name>.
Change the owner of a site by using Stsadm.exe
You need to know the URL for the site and the specific user name that you want to change. You can use the siteowner operation to change the owner or secondary owner of a site.
Command-Line Parameters for the siteowner operation
Required parameters | Optional parameters |
---|---|
-url |
|
Either –ownerlogin or –secondownerlogin |
Sample syntax:
stsadm.exe -o siteowner -url <url> [-ownerlogin <DOMAIN\username> | -secondownerlogin <DOMAIN\username>]