Sunday, April 19, 2009

Updating site administrators information

Scenario:
My sharepoint farm administrator keep asking me to automate one or the other thing command through a single script. One of the step involved was to update site administrator information.

Solution:
I prefer STSADM over Powershell.Here's I did it.

Code:

STSADM -o siteowner -ownerlogin domain\admin1 -secondarylogin domain\admin2

STSADM -o siteowner -ownerlogin CustomMembershipProvider:admin1 -secondarylogin CustomMembershipProvider:admin2
Article:
http://technet.microsoft.com/en-us/library/cc262637.aspx

0 comments: