Saturday, July 28, 2012

Configuring Multi-Tenancy in SharePoint 2010


Create a SubscriptionSettings Service Application and Proxy

Subscription settings service application is used to keep track of Multi - Tenant services and subscription ID's. So go to the below path

Start the  Microsoft SharePoint Foundation Subscription Settings Service

Central Administration => Application Management => Manage services on server
Start the service "Microsoft SharePoint Foundation Subscription Settings Service".


Create Service Application and Proxy via PowerShell

 $appPool  =  New-SPServiceApplicationPool -Name Subscription_Settings_Service_Pool -Account Domain\UserName

$sa = new-spsubscriptionsettingsserviceapplication –Name SubscriptionSettingsServiceApplication –Databasename SubscriptionSettingsServiceApplicationDB –applicationpool $appPool

$sap = new-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $sa

Create Tenant Administration site

New-SPSite –url "http://<servername>:<port no>/sites/Tenant Administration" –template "tenantadmin#0" –owneralias Domain\UserName –sitesubscription $subscription -AdministrationSiteType TenantAdministration

Create Member Site

Before creating the Member\Tenant Site enable the Self Service Site Creation of the Web Application.
Click Manage Site Collection under SharePoint Site Section on the Tenant Administration Site

Click New  and enter the required information  then click ok.


Reference : http://blogs.msdn.com/b/russmax/archive/2010/04/03/sharepoint-2010-multi-tenant-hosting-part-2-configuring.aspx
 

Thursday, July 26, 2012

How to Find the SharePoint 2010 Installed version

Go to the Registry of the Below path and Identify the GUID of installed SKU's


HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\WSS\InstalledProducts
  • BEED1F75-C398-4447-AEF1-E66E1F0DF91E: SharePoint Foundation 2010
  • 1328E89E-7EC8-4F7E-809E-7E945796E511: Search Server Express 2010
  • B2C0B444-3914-4ACB-A0B8-7CF50A8F7AA0: SharePoint Server 2010 Standard Trial
  • 3FDFBCC8-B3E4-4482-91FA-122C6432805C: SharePoint Server 2010 Standard
  • 88BED06D-8C6B-4E62-AB01-546D6005FE97: SharePoint Server 2010 Enterprise Trial
  • D5595F62-449B-4061-B0B2-0CBAD410BB51: SharePoint Server 2010 Enterprise
  • BC4C1C97-9013-4033-A0DD-9DC9E6D6C887: Search Server 2010 Trial
  • 08460AA2-A176-442C-BDCA-26928704D80B: Search Server 2010
  • 84902853-59F6-4B20-BC7C-DE4F419FEFAD: Project Server 2010 Trial
  • ED21638F-97FF-4A65-AD9B-6889B93065E2: Project Server 2010
  • 926E4E17-087B-47D1-8BD7-91A394BC6196: Office Web Companions 2010 


use the below PowerShell command to get the GUID of the Installed SKUs.
 get-spfarm | select Products

Reference http://msdn.microsoft.com/en-us/library/ff721969.aspx

Thursday, July 12, 2012

Rename a SharePoint Server machine name

There are number of concerns that contribute to defining the process that you will be taking to change a machine name for a SharePoint server.

Make sure you execute the following steps in order:

  • Run the following command:
    Stsadm.exe -o renameserver -oldservername <OLD_SERVER_NAME> -newservername <NEW_SERVER_NAME>
  • Rename the machine name from the computer properties
  • Reboot the machine
  • Update credentials (if required) if you are using domain accounts and the account didn’t change you can skip this step 
    stsadm –o updatefarmcredentials –userlogin <NEW_SERVER_NAME>\username -password ********
    stsadm –o osearch –farmserviceaccount <NEW_SERVER_NAME>\username -farmservicepassword ********

    stsadm –o spsearch –farmserviceaccount <NEW_SERVER_NAME>\username -farmservicepassword ********

    stsadm –o editssp –title “SHARED_SERVICE_TITLE” -ssplogin <NEW_SERVER_NAME>\username -ssppassword ********
  • Run the this command to reset the IIS: IISRESET /NOFORCE
  • Fix the Alternate access mappings
     If you are not able to get into the central admin site yet run the following command:
        stsadm -o addalternatedomain -url http://<OLD_SERVER_NAME>:<CENTRAL_ADMIN_PORT> -urlzone extranet –incoming url http://<NEW_SERVER_NAME>: <CENTRAL_ADMIN_PORT>

    Now you should be able to go to the central admin to clean the miss in the AAM. Basicly rename all the old server names into the new server name.
  • Now through the central administration or command line, make sure that you have the right credentials for the app pools (again if you are using domain users you shouldn’t worry about this at all)
  • Reboot the machine
  • Now run the SharePoint Products and Technologies configuration wizard to seal the deal
  • Reboot the machine
  • If you get the error related to SQL Server check your Database settings and make sure that they are correct. You can use stsadm to reset the config db name if the server name has changed and the same thing with the content DBs
  • If you do any changes to the DB settings make sure that your run: "IISRESET /NOFORCE" afterwards
  • After all that, if you have the db on the same machine as the sharepoint that means that you probably need to take care of the sql server settings (server name change) do run the following SQL Queries:
  •     -In case you use the default or no sql instance name:

    EXEC sp_dropserver '<OLD_SERVER_NAME>'
    GO
    EXEC sp_addserver '<NEW_SERVER_NAME>', 'local'
    GO
  •     -In case you use a custom sql instance name:
    sp_dropserver <’OLD_SERVER_NAME\instancename'>
    GO
    sp_addserver <'NEW_SERVER_NAME\instancename'>, local
    GO
  • Then restart the Sql Service to take effect

Wednesday, July 4, 2012

SharePoint supported languages, culture names and locale IDs

Download the language pack from
here


Language Name

Culture Name

Locale ID

Arabic

ar-sa

1025

Bulgarian

bg-bg

1026

Catalan

ca-es

1027

Chinese (Simplified)

zh-cn

2052

Chinese (Traditional, Taiwan)

zh-tw

1028

Croatian

hr-hr

1050

Czech

cs-cz

1029

Danish

da-dk

1030

Dutch

nl-nl

1043

English

en-us

1033

Estonian

et-ee

1061

Finnish

fi-fi

1035

French

fr-fr

1036

German

de-de

1031

Greek

el-gr

1032

Hebrew

he-il

1037

Hindi

hi-in

1081

Hungarian

hu-hu

1038

Italian

it-it

1040

Japanese

ja-jp

1041

Kazakh

kk-kz

1087

Korean

ko-kr

1042

Latvian

lv-lv

1062

Lithuanian

lt-lt

1063

Norwegian (Bokmål)

nb-no

1044

Polish

pl-pl

1045

Portuguese (Brazil)

pt-br

1046

Portuguese (Portugal)

pt-pt

2070

Romanian

ro-ro

1048

Russian

ru-ru

1049

Serbian (Latin)

sr-latn-cs

2074

Slovak

sk-sk

1051

Slovenian

sl-si

1060

Spanish

es-es

3082

Swedish

sv-se

1053

Thai

th-th

1054

Turkish

tr-tr

1055

Ukrainian

uk-ua

1058