Sunday, February 26, 2012

Managed account is duplicate

When updated farm account with local user, I found account is duplicated.
When tried to remove this user found error:

Item has already been added. Key in dictionary.. How do I clean up service account?


I solved solution by using powershell:
Remove-SPManagedAccount -Identity DOMAIN\ServiceAcct



Register new managed account local user

When tried to register local account user I faced the following error:
The specified user 'accountname' is a local account. Local accounts should only be used in stand alone mode.
I found solution using powershell:
type $cred = Get-Credential
When prompted enter an account and password (here you can type in a local account)
type New-SPManagedAccount -Credential $cred
After finished the account is added.

Wednesday, February 8, 2012

Creating a FAST Search Scope

When you try to create scope in Fast Search Search 2010. This will not work only way to create scope in SharePoint Search using PowerShell. Command Below is sample of command for creating scope:

New-SPEnterpriseSearchQueryScope -SearchApplication "FAST Query Application" -Name "NewScope" -Description "This is my new scope" -DisplayInAdminUI 1 -ExtendedSearchFilter 'path:starts-with("http://myserver/mysitecoll")'

The ExtendedSearchFilter parameter specifies a FAST Query Language (FQL) expression that will filter the content for that scope.

There is 2 good blogs talk about Fast Search scope:
http://blogs.msdn.com/b/jorgeni/archive/2010/02/26/search-scopes-in-fast-search-for-sharepoint-part-1.aspx

http://blogs.msdn.com/b/jorgeni/archive/2010/03/11/search-scopes-in-fast-search-for-sharepoint-part-2.aspx