Welcome to TechNet Blogs Sign in | Join | Help

Creating Shared Service Provider (SSP) via command-line options

Using the SharePoint Admin UI there can often be quite a delay to perform administrative actions compared to doing the same actions via the powerful command-line tools. One of the tools that should be very familiar to SharePoint Admins is STSADM.exe. 

The STSADM.exe admin tool is available in the default location: c:\program files\common files\microsoft shared\web server extensions\12\bin. To see what actions are available with the tool you can run STSADM.exe –help which will output the operations that can be performed and STSADM.exe –help <operation name> to get more detailed documentation about a particular operation.

Creating the Shared Service Provider (SSP) is one admin task that can be done via the command-line:

The recommended procedure for creating an SSP is to create a web application for the MySite host and a separate web application for the SSP. To create a new web application for both the MySite host and SSP run this STSADM.exe command for each new web application:

stsadm.exe -o extendvs -url <URL> -ownerlogin <domain/username> -owneremail <emailed> -exclusivelyusentlm -databaseserver <DBservername> -databasename <NewcontentDBname> -donotcreatesite -apcreatenew -apidname <Apppoolname> -apidtype configurableid -apidlogin <domain/username> -apidpwd <Password>

For example:

stsadm.exe -o extendvs -url http://intranet:8080 -ownerlogin Redmond\username -owneremail user@ms.com -exclusivelyusentlm -databaseserver SQLServer -databasename MySiteContentDB -donotcreatesite -apcreatenew -apidname MySiteAppPool -apidtype configurableid -apidlogin Redmond\username -apidpwd MyPassword

will create a web application with the URL http://intranet:8080 that can be used to host the MySite sites. Similarly, you can create another web application to host the SSP:

stsadm.exe -o extendvs -url http://intranet:8090 -ownerlogin Redmond\username -owneremail user@ms.com -exclusivelyusentlm -databaseserver SQLServer -databasename SSPContentDB -donotcreatesite -apcreatenew -apidname SSPAppPool -apidtype configurableid -apidlogin Redmond\username -apidpwd MyPassword

At this point, you can create the SSP by running this STSADM.exe command:

stsadm.exe –o createssp –title <SSP name> -url <Web application url> -mysiteurl <MySite Web application url> -ssplogin <username> -indexserver <index server> -indexlocation <index file path> -ssppassword <password> -sspdatabaseserver <SSP database server> -sspdatabasename <SSP database name>

 

 

Published Wednesday, October 03, 2007 2:37 PM by chrishe

Comments

Monday, February 04, 2008 8:27 AM by michaelve

# re: Creating Shared Service Provider (SSP) via command-line options

Hello.

I was wondering if there is a way to enumerate/edit/create SSP providers on a farm/server programmatically.

Thank you.

Monday, February 04, 2008 8:44 PM by chrishe

# re: Creating Shared Service Provider (SSP) via command-line options

Hello michaelve,

See the entry for SPWebApplication (http://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebapplication_members.aspx)

For enumerating existing SSPs, it will be something along these lines:

foreach (SPWebApplication spWebApp in srv.WebApplications)

if spWebApp.Properties.ContainsKey("Microsoft.Office.Server.SharedResourceProvider")

// found the SSP

Anonymous comments are disabled
 
Page view tracker