Alexander Anikin's blog

My personal blog

Archive for October 2010

Sharepoint 2010, Powershell and object dispose

with one comment

Source article:

Extraction about disposing object in Powershell for Sahrepoint:

If you’re going to be working with the SharePoint PowerShell cmdlets then there are two cmdlets that you should learn before any others: Start-SPAssignment and Stop-SPAssignment. If you’ve used the custom cmdlets that I created for the 2007 product and read my articles around them then you should be familiar with the core issue that I was trying to solve with some of them – the handling of disposable objects.

#Use of the Global assignment variable

Start-SPAssignment –Global

$site = Get-SPSite http://portal

$site | fl Stop-SPAssignment –Global

#Use of a semi-global, or named variable

 $gc = Start-SPAssignment

$site = $gc | Get-SPSite http://mysites

$site | fl

$gc | Stop-SPAssignment


Written by Alex Anikin

October 5, 2010 at 11:33 am

Posted in Sharepoint

FAST Server Installation

leave a comment »

I recently setup FAST Search Server 2010 for SharePoint 2010 and here are the documented steps:

  • FAST Search Server was installed on a dedicated server different from SharePoint 2010 server.

  • FAST Server was not installed on a domain controller.

  • FAST Server was patched with latest windows update and windows update service was running.

  • Used the Pre-requisite installer for FAST Server 2010 (available on the installation media) to install all required components for FAST Server 2010

  • Identify the user who is running the Microsoft SharePoint 2010 Timer Service (you will need this account to provide handshake between SharePoint 2010 Server and FAST 2010 Search Server)

  • Configuring SSL enabled communicate is required when you setup Content SSA.

  • Followed all step by step instructions mentioned in TechNet

Here are the high level steps that I followed from the article:

  • Enable PowerShell scripts to run.

  • Install FAST Search Server 2010.

  • Configure a single server deployment.

  • Setup the Content Search Service Application (SSA) – Content SSA is responsible for crawling content and feeding it into FAST Server for SharePoint back-end.

  • Setup the Query Search Service Application – Query SSA fetches query results from the content that is crawled by the Content SSA.

  • Configure claims authentication.

Required permissions

  • Ensure that the user who runs the installer is a member of the Administrators group.
  • Create a domain user for running the FAST Search Server 2010 for SharePoint, for example fastuser. Do not run FAST Search Server 2010 for SharePoint as a local administrator or a domain administrator.
  • To simplify the process of adding more search administrators, create a domain group. You will later add this group to a local group named FASTSearchAdministrators on every server in the FAST Search Server 2010 for SharePoint deployment.
    Add all users who will administer the FAST Search Server 2010 for SharePoint installation to this group.
  • The FAST Search Server 2010 for SharePoint user (example: fastuser) must have dbcreator and security administrator permissions in SQL Server for the FAST Search Server 2010 for SharePoint administrative database. For detailed steps, see Set up permissions for Microsoft SQL Server (FAST Search Server 2010 for SharePoint).


Powershell (run as Administrator) string:

Set-ExecutionPolicy RemoteSigned

PS C:FASTSearchinstallerscripts> .psconfig.ps1 -action i -roleName admin -userName dev1fastuser -localMachineName -adminMachineName -baseport 13000 -databaseConnectionString db002 -databaseName FASTSearchDB -logFileName c:fastsearchsetup.log -logLevelAsString Error

Verify that all services are running

On each server in the FAST Search Server 2010 for SharePoint installation, follow these steps:

  1. On the Start menu, click All Programs.
  2. Click Microsoft FAST Search Server 2010 for SharePoint.
  3. Click Microsoft FAST Search Server 2010 for SharePoint shell.
  4. At the Windows PowerShell command prompt, type the following command:

    nctrl status

  5. Verify that all services have the status running.

FAST Search Center Site Creation

Next, you should configure a SharePoint Server 2010 site to use the Query SSA that you created as part of Create and set up the Query Search Service Application (FAST Search Server 2010 for SharePoint). Make sure that the FAST Query SSA that you created is associated with your Web application (as specified in that topic).

  1. Open the SharePoint Server 2010 Web application where you want to create a new site.
  2. Enable features unless this has already been done:
    1. Click Site Actions > Site Settings > Site collection features.
    2. Make sure that the following are enabled:
      • SharePoint Server Publishing Infrastructure
      • SharePoint Server Enterprise Site Collection features
  3. Create a new site:
    1. Click Site Actions and then click New Site.
    2. Select the FAST Search Center template.
    3. Click Create. A FAST Search Center is created at the specified URL.

You should now be able to search for the documents that you previously fed to FAST Search Server 2010 for SharePoint.

Make sure that some documents that you fed to FAST Search Server 2010 for SharePoint are returned in the search results.

Connect the Query SSA to your Web application(s)

The following steps require that at least one Web application was created. For information about how to create Web applications in SharePoint Server 2010, see Create a Web application.

  1. On SharePoint Server 2010, on the Central Administration Home page, select Application Management.
  2. Under Service Applications, click Configure service application associations.
  3. Click the Application Proxy Group that you want to change, typically default.
  4. Make sure that the Query SSA (for example FAST Query SSA) is the default and only selected Search Service Application Proxy, and then click OK.
  5. Verify that the correct Query SSA is associated with the Web application.

All the default search service applications should now point to FAST Search Server 2010 for SharePoint.


FAST Search queries of SharePoint Server 2010 content generate an error in the Web browser: The search request was unable to connect to the Search Service

Has the SharePoint certificate been copied to the FAST Search Server 2010 for SharePoint query processing node?

As part of the setup for connecting SharePoint Server to the FAST Search Server 2010 for SharePoint query processing node, a certificate must be copied to enable communication between the two servers. To verify that the certificate is located on the FAST Search Server 2010 for SharePoint server, look at the certificates in the Local Computer, Trusted People certificates. You should find a certificate named SharePoint Security Token Service and it should have a thumbprint ID that matches the certificate located on the SharePoint Server computer at Local Computer, SharePoint, SharePoint Security Token Service. To view the certificates on a server, follow these steps.

  1. Run MMC from the Windows Start menu.
  2. Select File > Add or Remove Snapin.
  3. Select Certificates in Available snap-ins and Add.
  4. Select Computer account then Local computer. Click Finish and OK.
  5. Expand Certificates (local Computer).
  6. Expand Trusted People.
  7. Expand Certificates.
  8. Double-click SharePoint Security Token Service.
  9. On Details tab, click Thumbprint to get the thumbprint id.

Written by Alex Anikin

October 1, 2010 at 12:15 pm

Posted in Sharepoint