Archive | SharePoint 2010 Administration RSS feed for this section

Get Active Databases in SharePoint 2010 Farm


Source: http://voices.yahoo.com/get-active-databases-sharepoint-2010-farm-11694386.html?cat=15

Follow these steps to list all active databases in the SharePoint 2010 Farm:

  • Logon to your SharePoint server farm (preferably the server that hosts Central Admin)
  • Click Start
  • Click All Programs
  • Click SharePoint 2010 Products
  • Click SharePoint 2010 Management Shell (run as administrator)
  • Type Get-SPDatabase | Select Name | Out-File c:\alldbs.txt (this will create the file for you if it doesn’t exist)

A Site Collection could not be created as the provided managed parth dose not exist


Creating one Content Database Per Site Collection In SharePoint 2010 using Windows PowerShell

One of the most common problems I see in a client built SharePoint environment is multiple site collections comingled in the same content database.  While this isn’t the end of the world, it’s a problem because SLAs, security, and even back strategies are often assigned to specific databases based upon the needs of the users that will be using the site collections hosted in each database.  If a site collection is not hosted in the database that the admin intended because SharePoint simply picks the first available content database with room  the administrator may unwittingly incorrectly back or, even worse, fail to backup a particular site collection because it does not exist in the proper database.  This is why I am a proponent of backing up at the Native SQL level but also at the site collection level.

On to the point of this article, how do I use PowerShell to create a site collection and assign the appropriate database

Here are the steps to how you can create Content Database Per Site Collection In SharePoint 2010 using Windows PowerShell

New-SPConfigurationDatabase : Timeout expired


We are doing a fresh installation of SharePoint server 2010 on a new farm using AutoSPInstaller which is getting failed with error message ” New-SPConfigurationDatabase : Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. At D:\SPInstall\SharepointInstall\AutoSPInstaller\AutoSPInstallerFunctions.ps1:..”. A summary of the solution is detailed below.

•    Symptom – A new SharePoint server was unable to synchronize with its SQL server backend.
•    Cause – The servers were both in a DMZ and were unable to properly communicate with the domain controllers in the secure network.

 
•    Resolution – You opened the necessary ports for authentication (listed in http://support.microsoft.com/kb/832017) in the firewall between the DMZ and secure network.

Top 10 SharePoint Tools


SharePoint 2010 Top 10 tools for SharePoint Administrators

  1. http://cksdev.codeplex.com/  , CKSDev makes SharePoint development easier.
  2. http://spm.codeplex.com/  , SharePoint Manager is a SharePoint object model explorer.
  3. http://camldotnet.codeplex.com/  , CAML.NET:  IntelliSense for CAML.
  4. http://karinebosch.wordpress.com/2012/05/12/caml-designer/  , CAML Designer makes creating CAML queries a lot easier (successor of U2U CAML Query Builder).
  5. http://archive.msdn.microsoft.com/ULSViewer  , you’ll always need a tool to view the ULS log files. ULS Log Viewer is probably the most popular one of the lot.
  6. http://gallery.technet.microsoft.com/Maxer-for-SharePoint-2010-8cd0f26f  , the SharePoint Maxer tool helps checking for capacity planning limits.
  7. http://gallery.technet.microsoft.com/The-SharePoint-Flavored-5b03f323  , the SharePoint Flavored Weblog Reader (SFWR) helps troubleshooting performance problems by analyzing the IIS log files of SharePoint WFEs.
  8. http://gallery.technet.microsoft.com/The-Migration-Dragon-for-628acae0  , the Migration Dragon for SharePoint 2010 is a tool that can help to migrate file and folder structures from the file system to SharePoint 2010 Document Libraries leveraging the batching mechanism of the SharePoint managed client object model.
  9. http://visualstudiogallery.msdn.microsoft.com/36a6eb45-a7b1-47c3-9e85-09f0aef6e879  , Muse.VSExtensions, a great tool for referencing assemblies located in the GAC.
  10. *** spot available ***

 

SharePoint 2010 Installation, Configuration and Operation


SharePoint 2010 Installation, Configuration and Operation Best Practices

Rename SharePoint 2010 Central Admin database


How to rename SharePoint 2010 Central Admin Database GUID (Globally Unique Identifier)?
Is there a easy way to rename the Central Administration Content Database?

rename_sharepoint_admin_database_GUID_1

In this post you can find all the steps you needed to rename SharePoint 2010 Central Admin database with GUID to a friendly name

1. Login into SQL Server using Management Studio
2. Right click on the SharePoint 2010 Central Admin Database with GUID | Click on Rename

rename sharepoint 2010 central admin db

3. Copy the database name and past it into a notepad. Click anywhere outside of the database  to exit edit mode without changing the name

copy sharepoint 2010 central admin db name with guid

 

4. Right click on SharePoint 2010 AdminContent database which you want to rename and take a backup

rename_guid_for_sharepoint_admin_database

5. Now restore your database with new friendly name. Call it SharePoint_AdminContent_DB

restore_database_for_sharepoint_central_admin

restore_sharepoint_central_admin_database_without_guid

Now I have SharePoint AdminContent database with out GUID

SNAGHTML2f9490d3

6. Open SharePoint 2010 Central Administration | Application Management | Manage Content Database

Manage Content Database SharePoint 2010

7. Use this page to manage content databases for this web application. Click a content database name to change its properties.
Click on the database  to manage it’s settings

manage content databases SP2010

8. Specify database connection settings for this content database. Use the Database status options to control whether or not new Site Collections can be created in the database. When the database status is set to Ready, the database is available for hosting new Site Collections. When the database status is set to Offline, no new Site Collections can be created.

Click on the dropdown and make it OFFLINE

content database status offline in SharePoint 2010

9.  Do not remove the database, just click OK to make it OFFLINE

image

 

10. Open command prompt and run the stsadm command
cd C:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\BIN\

chaning central admin db name using stsadm

11. Delete the original database which contain GUID by running this command.

stsadm -o deletecontentdb -url http://CentralAdminURL -databasename SharePoint_AdminContent_<GUID> –databaseserver YourSqlServer

sample Script:
stsadm -o deletecontentdb -url
http://mysp:2012 -databasename SharePoint_AdminContent_02de613c-ae5b-4617-9d88-0b53a3f6610f -databaseserver mysp

removed guid database for Sharepoint central admin

 

12. Now add the new Admin Content database with out the GUID using the following command

stsadm -o addcontentdb -url http:// CentralAdminURL:portnumber -databasename SharePoint_AdminContent_DB -databaseserver YourSQLServer

sample Script:
stsadm -o addcontentdb -url

http://mysp:2012 -databasename SharePoint_AdminContent_DB -databaseserver mysp

New Admin Content Database is added to with out GUID

sharepoint 2010 central admin guid removed

 

13. Let’s open SharePoint 2010 central administration and see what happens. Looks like SharePoint 2010 central administration is running from a new database

SNAGHTML2facc913

14. Now I am going to delete SharePoint 2010 Central Administration database with the GUID name

delete SharePoint AdminContent Database

15. One last time I am going to access central administration to make sure all are fine. Yes, it’s working now from the new database

SNAGHTML2facc913

If you follow above steps you can  rename SharePoint 2010 Central Admin Database GUID (Globally Unique Identifier

SharePoint 2010 Installation Accounts


How to create SharePoint 2010 least Privilege Service Accounts in Active Directory? How many accounts do we need to install
SharePoint 2010?

Best practice you should have at lest three services account to install SharePoint 2010

- SQL Server Service Account: SPSql
- SharePoint Setup Account: AdminSP
- Server Farm and Database Account: SPFarmAdmin

1. Open your Active Directory and create a new OU

SharePoint_2010_Installation_Ad_Accounts

2. Create three SharePoint 2010 least Privilege Service Accounts in Active Directory

SharePoint_2010_least_Privilege_Service_Accounts

3. Add SharePoint Admin/Farm account (AdminSP and SPFarmAdmin) as a local administrator to each server which your going to install SharePoint 2010

sharepoint_2010_installation_account_as_local_admin

4. Add SPSQL account in SQL Server 2008 R2 and give following account access: dbcreator, securityadmin and sysadmin

sql_server_2008_r2_setup_sharepoint_account_16

Best practice you should have at lest three services account to install SharePoint 2010
- SQL Server Service Account: SPSql
- SharePoint Setup Account: AdminSP
- Server Farm and Database Account: SPFarmAdmin

Add both AdminSP and SPFarmAdmin account to local administrator group to each server which you want to install SharePoint 2010

Create a new SharePoint 2010 web Application


When creating a new SharePoint web application it creates a new IIS web Site with backing databases that can be used for creating new SharePoint sites.

To create new web application in SharePoint 2010
Central Administration | Application Management | Manage web applications | click New

 

Create new SharePoint 2010 web application

Select the following required information and click OK to create new web application

Authentication
Select the authentication for this web application.

Select Authentication

IIS Web Site
Choose between using an existing IIS web site or create a new one to serve the Microsoft SharePoint Foundation application.

If you select an existing IIS web site, that web site must exist on all servers in the farm and have the same name, or this action will not succeed.

If you opt to create a new IIS web site, it will be automatically created on all servers in the farm. If an IIS setting that you wish to change is not shown here, you can use this option to create the basic site, then update it using the standard IIS tools.

Choose IIS Web Site


Security Configuration

Kerberos is the recommended security configuration to use with Integrated Windows authentication. Kerberos requires the application pool account to be Network Service or special configuration by the domain administrator. NTLM authentication will work with any application pool account and the default domain configuration.

If you choose to use Secure Sockets Layer (SSL), you must add the certificate on each server using the IIS administration tools. Until this is done, the web application will be inaccessible from this IIS web site.

SharePoint 2010 Security Configuration

Public URL

The public URL is the domain name for all sites that users will access in this SharePoint Web application. This URL domain will be used in all links shown on pages within the web application. By default, it is set to the current server name and port.

http://go.microsoft.com/fwlink/?LinkId=114854

Public URL for web applicaiton


Application Pool

Choose the application pool to use for the new web application. This defines the account and credentials that will be used by this service.

You can choose an existing application pool or create a new one.

Application Pool for new web application


Database Name and Authentication

Use of the default database server and database name is recommended for most cases. Refer to the administrator’s guide for advanced scenarios where specifying database information is required.

Use of Windows authentication is strongly recommended. To use SQL authentication, specify the credentials which will be used to connect to the database.

Database Name and Authentication

 

Failover Server

You can choose to associate a database with a specific failover server that is used in conjuction with SQL Server database mirroring.

 

Search Server

Failover Server


Service Application Connections

Choose the service applications that this Web application will be connected to. A Web application can be connected to the default set of service applications or to a custom set of service applications. You can change the set of service applications that a Web application is connected to at any time by using the Configure service application associations page in Central Administration.

Name Type
Access Services Access Services Web Service Application Proxy
Application Registry Service Application Registry Proxy
Business Data Connectivity Service Business Data Connectivity Service Application Proxy
Excel Services Application Excel Services Application Web Service Application Proxy
Metadata Services Managed Metadata Service Connection
PerformancePoint Service Application PerformancePoint Service Application Proxy
Search Service Application Search Service Application Proxy
Secure Store Service Secure Store Service Application Proxy
State Service State Service Proxy
Usage and Health data collection Usage and Health Data Collection Proxy
User Profile Application User Profile Service Application Proxy
Visio Graphics Service Visio Graphics Service Application Proxy
Web Analytics Service Application Web Analytics Service Application Proxy
Word Automation Services Word Automation


Customer Experience Improvement Program

Collect web site analytics about web pages on this web application. Please read the Administration guide before turning this on for web applications available over the public Internet.

Enable Customer Experience Improvement Program


Yes
No

Warning: In order for Customer Experience Improvement Program (CEIP) to collect data, both CEIP and browser CEIP, at the farm level, should be enabled.

SharePoint 2010 Central Administration – Manage Web Applications


What we have in SharePoint 2010 Central Administration Manage Web Application?

In Left hand side we have option to create :  New  sites | Extend sites | Delete sites |

In the General Settings:  Manage Features | Managed Paths| Service Connections| Manage Authentication | Providers Self-Service Site Creation | Blocked File Types | User Permissions| Web Part Security| Security User | Policy Anonymous | Policy Permission | Policy Policy  |

SharePoint 2010 Manage Web Applications

SharePoint 2010 Application Management


SharePoint 2010 Application Management page in SharePoint 2010 Central Administration

SharePoint 2010 Application Management

SharePoint 2010 Web Applications

Web Applications
  • Manage web applications
  • Configure alternate access mappings

SharePoint 2010 Site Collections

Site Collections
  • Create site collections
  • Delete a site collection
  • Confirm site use and deletion
  • Specify quota templates
  • Configure quotas and locks
  • Change site collection administrators
  • View all site collections
  • Configure self-service site creation

SharePoint 2010 Service Applications

Service Applications
  • Manage service applications
  • Configure service application associations
  • Manage services on server

SharePoint 2010 Databases

Databases
  • Manage content databases
  • Specify the default database server
  • Configure the data retrieval service

SharePoint 2010 Central Administration


Quick Launch

  • Central Administration
    • Application Management
    • System Settings
    • Monitoring
    • Backup and Restore
    • Security
    • Upgrade and Migration
    • General Application Settings
    • Configuration Wizards

 

SharePoint 2010 Central Administration

 

Manage site collections, web applications, content databases, and service applications

Application Management
  • Manage web applications
  • Create site collections
  • Manage service applications
  • Manage content databases

Track, report, and view the health and status of your SharePoint farm

Monitoring
  • Review problems and solutions
  • Check job status
  • View Web Analytics reports

Manage settings for users, policy, and global security

Security
  • Manage the farm administrators group
  • Configure service accounts

Configure general application and feature settings

General Application Settings
  • Configure send to connections
  • Configure content deployment paths and jobs
  • Manage form templates

Manage servers, features, solutions, and farm-wide settings

System Settings
  • Manage servers in this farm
  • Manage services on server
  • Manage farm features
  • Configure alternate access mappings

Perform a backup or restore operation, or view history and status details

Backup and Restore
  • Perform a backup
  • Restore from a backup
  • Perform a site collection backup

Upgrade SharePoint, add licenses, enable Enterprise features, and more

Upgrade and Migration
  • Convert farm license type
  • Check product and patch installation status
  • Check upgrade status

Use wizards to help configure advanced scenarios

Configuration Wizards

Install and Configure RBS (Remote Blob Storage) for SharePoint


Where I can download Remote Blob Storage installation files for SharePoint 2010?
You can download rbs_x64.msi file from : http://go.microsoft.com/fwlink/p/?LinkID=165839&clcid=0×409

How do I install and configure RBS for SharePoint?

1. Download Remote Blob Storage from above link
2. Before you install Remote Blob storage, make sure SQL server 2008 enabled FILESTREAM. To enable FILESTREAM

Start | All Program | Microsoft SQL Server 2008 R2 | Configuration Tools | Configuration Manager
Click on SQL Server Services | SQL Server | Properties

Enable FILESTREAM for BLOB Storage

3.  Enable following services

Enable File stream for Transact-SQL Access
Enable File stream for file I/O streaming access
Allow remote clients to have streaming access to Filestream data

Enable Filestream for SharePoint BLOB storage

4. Open SQL Management Studio and performing following task

use WSS_Content If not exists
(select * from sys.symmetric_keys where name = N‘##MS_DatabaseMasterKey##’)
create master key encryption by password = N‘Pa$$word’


image

5. Next we need to enable FileStreamProvider

Filestream feature is disabled, how to enable

use WSS_Content if not exists

(select groupname from sysfilegroups where groupname=N‘RBSFilestreamProvider’)

alter database WSS_Content add filegroup RBSFilestreamProvider contains filestream

If you get error message saying “ FILESTREAM Feature is Disabled” run the following query

FILESTREAM Feature is Disabled

Configuration option 'filestream access level'

6.  Next run the following query.  This will create a folder in E called Blobdata. This can be different in your case

use WSS_content alter database WSS_Content add file

(name = RBSFilestreamFile, filename = ‘E:\blobdata’)

to filegroup RBSFilestreamProvider


Create RBS File Stream File Folder

8. Now let’s go and install RBS. Best practice would be to install using command prompt  but it won’t give you any steps about what’s going on.
I had problem using Command and I installed using the GUI.  If you want to install using command here are the steps

(open command prompt as administrator).
I placed RBS installation file at C:\RBS folder Navigate to RBS folder using your Command Prompt

image

9.  Enter the following code

msiexec /qn /lvx* rbs_install_log.txt /i RBS.msi TRUSTSERVERCERTIFICATE=true
FILEGROUP=PRIMARY DBNAME=”WSS_Content” DBINSTANCE=”YourServer”
FILESTREAMFILEGROUP=RBSFilestreamProviderFILESTREAMSTORENAME=FilestreamProvider_1

Installing RBS Using Command Prompt

10. It won’t give you any indication about the installation. To see if its successfully installed Blob storage, just go to the folder and look for the log file

11. Installing RBS using GUI.  Double click on RB_X64.msi

12.  Welcome to the installation wizard for Remote Blob Storage wizard pops up. Setup helps you install, modify or remote remote Blob storage.

To continue, click Next

installation wizard for Remote Blob Storage

12. Install SQL Remote Blob storage : Licence Agreement

Install SQL Remote Blob storage : Licence Agreement

13. Install SQL Remote Blob Storage: Registration Information, the following information will personalize your blob installation

SNAGHTMLe57dbb

14.  Install SQL Remote Blob Storage : Feature Selection

Select the program features you would like to install and select the installation path where you want to install the program

Install SQL Remote Blob Storage : Feature Selection

15. Blob Storage Database Connection. You can test your connection against the database
which your setting blob storage by hitting test connection.

Blob Storage Database Connection

16. SQL Remote Blob Storage: Database Configuration

Enter information to configure RBS database settings

Blob Storage Database Configuration

17. Filestream Blob Store: Enter Filestream blob store configuration Information

image

18. Maintainer Task. Enter information to optionally schedule the maintainer task

During installation, the windows task scheduler window will apper. Use this to set scheduled task properties.

image
19. Remote Blob Storage Client Configuration

Remote Blob Storage Client Configuration

20.  Install Remote Blob Storage.  The program features you selected are being installed.

Please wait while the installation wizard installs remote blob storage. This may take several minutes.

image

21.To ensure that the installation was successful, open up the Content DB | tables

Ensure the blob installation in SharePoint

22. Now open your SharePoint 2010 Management Shell and enter the following scripts
$cdb = Get-SPContentDatabase –WebApplication http://vsp2010be
$rbss = $cdb.RemoteBlobStorageSettings
$rbss.Installed() – This should result in True. Else the next command will fail.
$rbss.Enable()
$rbss.SetActiveProviderName($rbss.GetProviderNames()[0])
$rbss

 

image

23. Now set the minimum threshold so that only files larger than a 1 MB will be placed in our blobdata fodler

$rbss.MinimumBlobStorageSize=1048576

image

24. Go head and upload a document which is larger than 1 MB.  This document should end up in the blobdata folder

I uploaded 8 GB of PDF file and it end up in the blobdata folder

Files moved to Blobdata Folder

Best practices for SQL Server 2008 in a SharePoint 2010 farm


How to optimize SQL Server 2008 to get best performance for SharePoint 2010 farm?

Reference: http://technet.microsoft.com/en-us/library/hh292622.aspx

1. Use a dedicated server for SQL Server 2008
2. Configure specific SQL Server 2008 settings before you deploy SharePoint Server 2010

- Do not enable auto-create statistics on a SQL Server that is supporting SharePoint Server

auto-create statistics-on-a-SQL-Server

- Set max degree of parallelism (MAXDOP) to 1 for SQL Server instances that host SharePoint Server 2010 databases to ensure that each request is served by a single SQL Server process.

changing max degree of parallelism

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

3. Harden the database server before you deploy SharePoint Server 2010
4. Configure database servers for performance and availability
5. Design storage for optimal throughput and manageability
6. Proactively manage the growth of data and log files
7. Continuously monitor SQL Server storage and performance
8. Use backup compression to speed up backups and reduce file sizes

Reference: http://technet.microsoft.com/en-us/library/hh292622.aspx

Install SharePoint Server 2010 SP1 on the existing SP 2010 Farm


Do you want to know how to Install SharePoint 2010 Service Pack 1?

Complete step by step instructions to install SharePoint 2010 SP1 on the existing farm.  You can find all the instructions at
How to install and configure SharePoint Server 2010 SP1 on the existing SP 2010 Farm

Follow

Get every new post delivered to your Inbox.

Join 111 other followers