Rename SharePoint 2010 Central Admin database

I had a post on this for SharePoint 2007 and needed to do the same thing for SharePoint 2010, but wanted to do this the powershell way instead of the stsadm way I used for MOSS. Not sure if that would even work…

turns out I didn’t need to reinvent the weel as Todd Klindt has already blogged about this here

The trick to all this is that for moving all site collections in a content database you would execute Get-SPSite with -contentdatabase parameter to get all the site collections for that content database and then pipe that to a Move-SpSite command. With the Central Admin content database the only way to get the site collections is to specify the GUID of the contentdatabase instead of the database name

In short, here are the commands:


#Create a new Content Database
New-SPContentDatabase -Name SharePoint_CentralAdmin -WebApplication http://sp2010:1000
#Get the Database GUIDs
get-spcontentdatabase -webapplication http://sp2010:1000
Id: d3d04cb1-b919-4262-b2d7-46733ef2c5df
Name : SharePoint_AdminContent_81476219-04f5-46b8-807f-31aa4afb4056
WebApplication : SPAdministrationWebApplication
Server : SP2010-DB
CurrentSiteCount : 2

Id : d8647aed-ef42-4052-814b-670b36fb8c1e
Name : SharePoint_CentralAdmin
WebApplication : SPAdministrationWebApplication
Server : SP2010-DB
CurrentSiteCount : 0

#Move the site collections
Get-SPSite -ContentDatabase d3d04cb1-b919-4262-b2d7-46733ef2c5df | Move-SPSite -DestinationDatabase d8647aed-ef42-4052-814b-670b36fb8c1e

Now do an IISRESET and check that the Central Admin site renders properly. If it does you can safely remove the content database with the GUID in it. Since I check the Central Admin site, I just delete the content database with the GUID from within the Central Admin Site

Updating User Profile pictures with powershell on SP2010

I finally had the chance to play around with user profiles. My customer asked me if it was possible to have the pictures of all employees show up in their respective user profiles in SharePoint and this without uploading the pictures themselves because they already had a dedicated website with all the pictures available. So the only thing to try to figure out was if it was possible to specify a link to the picture on a different website.

The customer was able to give me a CSV file with about 20K lines in it with 2 fields: Username + url of the picture. Worth mentionning was that the url of the user picture was not saved in any Active Directory property of the user object, sow e could not get it from there using the User Profile import process.

As it turns out the User profile actually has a property called PictureUrl which is completed by SharePoint when you upload your profile picture. So the task at hand was to write a script that could read the CSV file and update the user profiles. I started out with the script of Phil Childs and ended up with the following script:


$CSVFile = "C:\Scripts\pictureurls.csv"
$mySiteUrl = "http://people.contoso.com"

#Connect to the User Profile Manager
$site = Get-SPSite $mySiteUrl
$context = Get-SPServiceContext $site
$profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)

#Read CSV file and process each line
$csv = import-csv -path $CSVFile
foreach ($line in $csv)
{
$up = $profileManager.GetUserProfile($line.UserName)
if ($up)
{
$up["PictureURL"].Value = $line.PictureUrl
$up.Commit()
write-host $up.DisplayName," --> ", $line.PictureUrl
}
if (!$up) {
write-host $line.UserName, " --> no profile found"
}
}

Now, I’m not a powershell expert (yet) so this script can probably be optimized or improved.

For my customer, we are planning to have this script adapted to check if the pictureUrl field has already been populated and only add the value when it is not and have it run on a regular basis. Ultimately my customer is looking into saving this picture url in Active Directory afterwhich we can play around with FIM to have it popluate the user profiles that way.

SharePoint 2010 gradual upgrade approach using ISA server

Now first a little remark about this post: This post will not handle the actual upgrade from MOSS 2007 to SP2010. It will only provide a possible method to use when you are considering to gradually upgrade specific web applications, meaning that you actually want to have the same web application with the same hostheader available on MOSS 2007 and SP2010 and redirect your users to the correct farm depending on the site collection they target.

I have been doing some brainstorming with regards to an upcoming SharePoint 2007 to SharePoint 2010 migration for one of my customers. I have had my fair deal of upgrading from SharePoint 2003 to MOSS 2007 using the gradual upgrade approach that was built-in into MOSS 2007.  

In that scenario you were able to use the URL redirection feature of MOSS. In short you could alter your DNS settings for your web application to point to your MOSS farm and then MOSS would determine if the specific site collection the user was targeting had already been upgraded and if not MOSS would redirect the user to the old SharePoint 2003 site using an alternative URL. This scenario causes a lot of confusion with your users that are accessing sites that have not been upgraded because they would start seeing your alternative url. For example: your original url was teamsites.contoso.com. Once you activated the gradual upgrade of a that specific web application, all your users would start targeting the MOSS farm and then be redirected to the alternative url which could be something like old-teamsites.contoso.com or teamsites.contoso.com:8080

In SharePoint 2010 there is still a way to use this alterantive url redirection as described in the “Using AAM URL redirection as part of the upgrade process (SharePoint Server 2010) white paper”

Now my customer asked me for a way to do it without an alternative url and simply use the same url and depending on the targeted site collection be redirected to either MOSS 2007 or SP2010. This got me thinking that it would certainly not be feasible using only DNS. The alternative url redirection feature was not an option, so I needed something that can handle such logic. This brought me to my good friend ISA server (more specifically ISA 2006)

Let me explain using a small scenario:

MOSS 2007 Farm
– Web application: teamsites.contoso.com
– site collection: /sites/siteA

SP2010 Farm
– Web application: teamsites.contoso.com
– site collection: /sites/siteB

Now there is no way that you can have your users access teamsites.contoso.com/sites/siteA and teamsites.contoso.com/sites/siteB if you are just going to use a DNS entry. To which farm would you have it pointed? The user would only be able to access one of these two sites.

What if you have the DNS entry pointed to an ISA server? Could you configure ISA to analaze the incoming request and redirect the users to the correct farm? The answer is Yes !

In ISA 2006 you can create a publishing rule for publishing a SharePoint site. With a publishing rule you can accept incoming hostnames and redirect that to a specific computer or IP address. Now in addition to that you can specify the paths that a rule should respond to.

So for this solution to work you would create 2 Publishing rules :

– 1 publishing rule publishing the web application teamsites.contoso.com towards the SP2010 farm using the IP address of the SP2010 WFE or using load balancer Virtual IP address of the WFE Servers. On the Paths tab for the rule, remove the /* path and add the path /sites/siteB/* path

– 1 publishing rule publishing the web application teamsites.contoso.com towards the MOSS 2007 farm  using the IP address of the MOSS 2007 WFE or using load balancer Virtual IP address of the WFE Servers. On the Paths tab for the rule, remove the /* path and add the path /sites/siteA/* path

Apply the new rules and that should do it.

With this in place you can easily plan the upgrade of all the individual site collection one by one if you want and let your users work transparently throughout your migration period with the same url they are used too.

Now I have tested this scneario and it actually does work. I also must admit that I have not tested this scenario very thoughly yet and that there mey be some catches, but hey it’s the idea that I want to pass you on

 

New SharePoint Documents – July 2010

Upgrading to Microsoft SharePoint Server 2010
Brief Description:
Perform an upgrade from Microsoft Office SharePoint Server 2007 to SharePoint Server 2010.
Overview:
This book is designed to guide administrators and IT professionals through the process of upgrading to Microsoft SharePoint Server 2010.

 http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=fd2172e1-f9a7-45ce-ae5c-26714fd751f5

 

 

Deployment guide for Microsoft SharePoint Server 2010
Brief Description:
Deployment instructions for SharePoint Server 2010.
Overview:
This book includes information deployment scenarios, step-by-step installation instructions, and post-installation configuration steps for deploying Microsoft SharePoint Server 2010.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=a54c7191-eb05-489e-a7ca-6453aba8877c

 

Configuring Kerberos Authentication for Microsoft SharePoint 2010 Products
Brief Description:
Describes concepts of identity in SharePoint 2010 Products, Kerberos authentication, and how to use it in various scenarios
Overview:
This document provides you with information that will help you understand the concepts of identity in SharePoint 2010 products, how Kerberos authentication plays a critical role in authentication and delegation scenarios, and the situations where Kerberos authentication should be leveraged or may be required in solution designs. The document also shows you how to configure Kerberos authentication end-to-end within your environment, including scenarios which use various service applications in SharePoint Server. Additional tools and resources are described to help you test and validate Kerberos configuration. The “Step-by-Step Configuration” sections of this document cover several SharePoint Server 2010 scenarios. 

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=1a794fb5-77d0-475c-8738-ea04d3de1147

 

SharePoint 2010 Governance Planning
Brief Description:
This white paper focuses on the “front end” of the SharePoint environment – the business aspect of governance – the areas that impact business users.
Overview:
A Governance Plan describes how your SharePoint environment will be managed. It describes the roles, responsibilities, and rules that are applied to both the back end (hardware, farm, application, database configuration and maintenance) and the front end (information architecture, taxonomy, user experience). This white paper focuses on the “front end” of the SharePoint environment – the business aspect of governance – the areas that impact business users.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=d41ab7b1-385b-41f6-90a0-03cfda4fa98f

 

SharePoint Server 2010 design samples: Corporate portal with classic authentication or with claims-based authentication
Brief Description:
Design samples illustrating a typical corporate deployment of SharePoint Server 2010 and using two forms of authentication
Overview:
These design samples illustrate a typical corporate deployment, with the most common types of SharePoint sites represented. The two samples differ only in the mode of authentication that is implemented — one uses classic authentication and one uses claims-based authentication.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=704c984d-2245-4a7d-8ff5-1e57c9a473a8 

 

Microsoft Project and SharePoint Server 2010 — Better Together

Brief Description:
A white paper for stakeholders in a program ecosystem
Overview:
This white paper is written with the end user in mind. It will highlight the new features in Project Server 2010 and how this tool has evolved into a must-have requirement for Project Management. You will see capabilities in this release that you have been wanting, hoping for and most likely haven’t even thought of. Plus with Microsoft tethering Project to their shining star, SharePoint, it has created the most significant Project release of the decade.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=4f327363-181b-43ea-99f8-58927b452135 

 

End-to-End Content Deployment Walkthrough

Brief Description:
End-to-end example of how to create and complete a content deployment between two site collections.
Overview:
This paper provides an overview of the content deployment feature in Microsoft Office SharePoint Server 2007 for the IT Pro audience, and describes an end-to-end scenario for how to create and successfully perform a content deployment between two site collections.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=9a38c1cd-83b7-4759-b01f-2cd3f955a9ad 


SharePoint Server 2010 performance and capacity test results and recommendations

Brief Description:
These white papers describe the performance and capacity impact of specific feature sets included in Microsoft SharePoint Server 2010.
Overview:
These white papers describe the performance and capacity impact of specific feature sets included in SharePoint Server 2010. These white papers include information about the performance and capacity characteristics of the feature and how it was tested by Microsoft, including:

·         Test farm characteristics
·         Test results
·         Recommendations
·         Troubleshooting performance and scalability

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=fd1eac86-ad47-4865-9378-80040d08ac55 

 

Microsoft Forefront Protection 2010 for SharePoint Documentation

Brief Description:
Documentation about Microsoft Forefront Protection 2010 for SharePoint
Overview:
Forefront Protection 2010 for SharePoint (FPSP) helps reduce company liability and prevents data theft by denying access to documents containing out-of-policy content, confidential information, inappropriate language, and malware. FPSP integrates multiple scanning engines from industry-leading security partners into a single solution. The documents available in this download include information about FPSP deployment, operations, technical reference, and troubleshooting. This information is also available in the Microsoft TechNet Library at http://go.microsoft.com/fwlink/?LinkID=111584.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=bd917b26-bd06-4a93-8858-a0ea7e893992 

Microsoft SharePoint 2010 Administration Toolkit v1.0 released

Found this toolkit while scanvenging the new downloads on th MS Download site.

Beware of the final line on the download page:  This tool is not supported for SharePoint Foundation 2010.

Microsoft SharePoint 2010 Administration Toolkit v1.0

Brief Description:

The Microsoft® SharePoint® 2010 Administration Toolkit contains functionality to help administer and manage Microsoft® SharePoint® Foundation 2010 and Microsoft® SharePoint® Server 2010.

Overview:

The Microsoft SharePoint Administration Toolkit contains the following tools to help manage SharePoint Foundation 2010 and SharePoint Server 2010:

  • Security Configuration Wizard (SCW) manifests, which add roles for SharePoint 2010 Products to Windows Server 2008 with Service Pack 2 or to Windows Server 2008 R2.

    SCW is an attack surface reduction tool introduced with Windows Server 2003 Service Pack 1. SCW uses a roles-based metaphor to solicit the functionality required for a server and disables the functionality that is not required. By automating this security best practice, SCW helps to create Windows environments that are less susceptible, on the whole, to security vulnerabilities that have been exploited. For more information about SCW in Windows Server 2008, see Security Configuration Wizard (http://go.microsoft.com/fwlink/?LinkId=185511).

  • Load Testing Toolkit (LTK), which generates a Visual Studio Team System 2008 (VSTS) load test based on Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 IIS logs. The VSTS load test can be used to generate synthetic load against SharePoint Foundation 2010 or SharePoint Server 2010 as part of a capacity planning exercise or a pre-upgrade stress test.

    To install the Visual Studio Team System (VSTS), see Visual Studio Team System 2008 Team Suite (http://go.microsoft.com/fwlink/?LinkID=101641). To install Service Pack 1, see Microsoft Visual Studio 2008 Service Pack 1 (http://go.microsoft.com/fwlink/?LinkID=116488).

  • User Profile Replication Engine 2010 (UPRE2010), which provides a shared services administrator the ability to replicate user profiles and social data between shared services providers (SSP) in Office SharePoint Server 2007 and User Profile service applications in SharePoint Server 2010. This Windows PowerShell-based tool is not supported for SharePoint Foundation 2010.
  • Content Management Interoperability Services (CMIS) connector for SharePoint Server 2010

    The Content Management Interoperability Services (CMIS) connector for SharePoint Server 2010 enables SharePoint users to interact with content stored in any repository that has implemented the CMIS standard, as well as making SharePoint 2010 content available to any application that has implemented the CMIS standard.

    The CMIS connector for SharePoint Server 2010 includes two features:

    • The Content Management Interoperability Services (CMIS) Consumer Web Part, which can be added to any SharePoint page. This Web Part displays and lets users interact with the contents of any CMIS repository.
    • The Content Management Interoperability Services (CMIS) Producer, which allows applications to interact with SharePoint lists and document libraries programmatically by means of the interfaces defined in the CMIS standard.


For more information about the Content Management Interoperability Services (CMIS) standard, see
OASIS Content Management Interoperability Services (CMIS) TC (http://go.microsoft.com/fwlink/?LinkId=196694).

This tool is not supported for SharePoint Foundation 2010.

Some more newly published SP2010 material on Microsoft Downloads

Some more interesting downloads I happened to stumble upon while reviewing the latest downloads on the Microsoft Downloads site

 

Developing Applications for SharePoint 2010

Brief Description:

This guidance provides technical information about key areas of SharePoint 2010 application development. It contains a written guide, reference implementations with source code and documentation, and a library of reusable source code components.

Overview:

Developing Applications for SharePoint 2010 contains guidance documentation, detailed examples, and a reusable class library. These resources are designed to help solution developers and architects make the right decisions and follow proven practices when designing and developing applications for Microsoft® SharePoint® 2010. The guidance focuses on the building blocks that every developer needs to understand to become an effective SharePoint developer or architect. The guide is provided as a Help (.chm) file and has four core areas: application foundations, execution models, data models, and client models. Eight reference implementations illustrate the core concepts covered in the guide. The reusable class library provides code to help developers build more manageable, flexible, and testable applications. Source code is provided for all reference implementations and for the reusable library. The reference implementations have automated setup scripts to configure the applications.

http://www.microsoft.com/downloads/details.aspx?FamilyID=64b55569-2168-4545-8b7c-f185b2cf967d&displaylang=en

 

 

Planning and Deploying SharePoint Server 2010 User Profiles for My Site Web Sites

Brief Description:

Prescriptive guidance about profile synchronization and My Site planning and administrative tasks for SharePoint Server 2010.

Overview:

This whitepaper provides prescriptive guidance about profile synchronization and My Site planning and administrative tasks for SharePoint Server 2010. The whitepaper uses a combination of real-world scenarios, step-by-step instruction, and screen shots.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=cd93bc74-d923-4dc9-b112-715d5ddb64fd

 

Newly published SharePoint 2010 documents

Newly published SharePoint 2010 documents. I came across these through some of the tweets that I am following.

Thanks to Andreas Glaser for tweeting about these documents

 

Technical reference for Microsoft SharePoint Server 2010

Brief Description:

Technical information about the Microsoft SharePoint Server 2010.

Overview:

This document includes technical information about the Microsoft SharePoint Server 2010 provider for Windows PowerShell and other helpful reference information about general settings, security, and tools.

http://www.microsoft.com/downloads/details.aspx?FamilyID=a3b9fa1b-0300-489e-8d67-f14deb4c3a56&displayLang=en

 

 

Operations guide for Microsoft SharePoint Server 2010

Brief Description:

Operate and maintain servers, server farms, sites, and solutions in Microsoft SharePoint Server 2010.

Overview:

This document describes how to operate and maintain your servers, server farms, sites, and solutions in Microsoft SharePoint Server 2010.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=944519e8-e130-4e7a-8a8d-978b10af77c1

 

 

Operations guide for SharePoint Foundation 2010

Brief Description:

Operate and maintain your servers, server farms, sites, and solutions in Microsoft SharePoint Foundation 2010.

Overview:

This document describes how to operate and maintain your servers, server farms, sites, and solutions in Microsoft SharePoint Foundation 2010.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=71434993-e26f-43be-b1bc-1dcae65d46b5

 

 

Planning guide for Microsoft SharePoint Server 2010

Brief Description:

Information and guidelines for planning the deployment of a solution based on Microsoft SharePoint Server 2010

Overview:

This document provides information and guidelines to lead a team through the steps of planning the deployment of a solution based on Microsoft SharePoint Server 2010.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=10104e47-7dfe-4ae5-a9ea-459e6aebd34e

 

 

Planning guide for Microsoft SharePoint Foundation 2010

Brief Description:

Information and guidelines to lead a team through the steps of planning the deployment of a solution based on Microsoft SharePoint Server 2010

Overview:

This document provides information and guidelines to lead a team through the steps of planning the deployment of a solution based on Microsoft SharePoint Server 2010.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=206a9f99-c42d-42b2-9094-a3b2ef4fcd12

 

 

Upgrading to Microsoft SharePoint Foundation 2010

Brief Description:

Guide for administrators and IT professionals for upgrading to Microsoft SharePoint Foundation 2010

Overview:

This document is designed to guide administrators and IT professionals through the process of upgrading to Microsoft SharePoint Foundation 2010 from Windows SharePoint Services 3.0.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=1c001579-1712-4e75-98a4-aa179021e140

 

 

Document your SP2010 Farm configuration

I was passed a link today by Thomas Vochten, that leads to a Technet Article containing a pretty neat Powershell script for documenting a SharePoint 2010 farm configuration.

The script will output several XML files containing specifi farm configuration settings. Ideally you could have a single XML file created on a daily basis and windiff the files to check for any changes in the farm.

Find the original article on http://technet.microsoft.com/en-us/library/ff645391(office.14).aspx

 

SharePoint 2010 Knowledgde articles

So you took the step of installing your first SharePoint 2010 server or farm. You install the server, but not everything goes smoothly or doesn’t work as expected. What’s next? Well, a good place to start is to use the knowledge base that Microsoft tools use, such as the System Center Operations Center (SCOM) Knowledge articles. These are the articles that typically show up in SCOM, provided that you have installed the SharePoint 2010 Management pack,  if it has encountered an error on your SharePoint installation or farm.

The knowledge articles can be found at http://technet.microsoft.com/en-us/library/ee513133(office.14).aspx

Thanks to Neil Hodgkinson (@Nellymo) for providing this tip and link on Twitter

SP2010 Create site without template

I often let my users decide which site template they want to use for their new site collection. In SharePoint 2007 i did this by creating a site collection using stsadm without specifying a site template. this caused the first user to have to select the site template to use. There was no possibility to create a site collection without specifying a site template through central admin.

Now in SP2010, the possibilty to not specify a site template has been built in to Central Admin. When creating a new site through Central Admin, notice that there is now an entry in the Custom tab, called ‘ < Select Template Later … >

Now when your user hits his/her new site collection, he/she will get redirected to the templatepick.aspx page and has to pick a site template.