September 2011 - SharePoint Tips

  • Search scope

    Mattias Karlsson -Expert in Residence Search scopes is a way to define a subset of information to make the search result more accurate. The can be very useful when you want to enable searches in a specific content source or for a specific type of content. Search scopes are in SharePoint 2010 created at the Search Service application. Go to Application Management -> Manage Service applications and click on your Search Service Application. On the...
  • Display the Farm Build Versions

    Niklas Goude -Expert in Residence You can display the Farms build Version with a one-liner in Windows PowerShell. Simply type: PS > Get-SPFarm | Select -ExpandProperty BuildVersion Major Minor Build Revision ----- ----- ----- -------- 14 0 4762 1000 ReTweet this Tip!
  • Move Site collections to a new database in SharePoint 2007

    Mattias Karlsson -Expert in Residence When content databases had grown too large or if you for other reasons want to move a site collection or collections from on content database to another you can use the stsadm operation mergecontentdbs. The stsadm command allows you to either move all site collections from one content database to another of use an xml-file as input file with all the sites that should be moved. The xml-file needs to be in the same...
  • Modify Farm Configurations Information

    Niklas Goude -Expert in Residence You can use the Set-SPFarmConfig cmdlet to modify configuration information. If you want to change the workflow batch size, simply type: PS > $farmConfig = Get-SPFarmConfig PS > $farmConfig . WorkflowBatchSize = 120 PS > $farmConfig | Set-SPFarmConfig ReTweet this Tip!
  • Restrict the content changes in Site collections

    Mattias Karlsson -Expert in Residence In some occasions such as archiving or when moving sites between content databases it is possible to set site collections to read-only. By setting the site collection to read only users are still able to browse and access the content but it will not be possible to add or change content. This can be done using PowerShell to automate it in e.g. a lifecycle plan for site collection but can also be done using Central...
  • Add new service application pools

    Niklas Goude -Expert in Residence You can use the New-SPServiceApplicationPool cmdlet to create new Web service application pools in IIS. PS > New-SPServiceApplicationPool -Name “ AppPool ” ` >> -account ( Get-SPManagedAccount domain\account ) ReTweet this Tip!
  • Add Authoritative Pages to improve your search results

    Mattias Karlsson -Expert in Residence Authoritative Pages are a way for administrators to tweak search results. When adding Authoritative Pages, the relevancy ranking of a search result is calculated by how many clicks from the Authority Page the sites are located. These pages can then be designated in four different ways: most authoritative, second-level authoritative, third-level authoritative, or non-authoritative. Managing these Authority Pages...
  • Change the account used for your Web service application pool

    Niklas Goude -Expert in Residence You can change the account used for the identity of a specific service application pool by using the Set-SPServiceApplicationPool cmdlet. PS > Get-SPServiceApplicationPool -Identity “ AppPool ” | >> Set-SPServiceApplicationPool -Account domain\account ReTweet this Tip!
  • Improve your search results with Keywords and Best Bets

    Mattias Karlsson -Expert in Residence An easy way to improve the search relevancy in SharePoint is to use Keywords and Best Bets, which are created by the Site Collection Administrator as a way to promote important information to end users. For example, you might know that a common search query for employees is the word “benefits” to help them find out the different benefits for an employee. But since the word “benefits” is...
  • Display information about Web service application pools

    Niklas Goude -Expert in Residence You can use the Get-SPServiceApplication cmdlet to display information about your IIS service application pools. By default, the Name and ProcessAccountName properties are displayed. You can use Select-Object if you want to display all properties. PS > Get-SPServiceApplicationPool -Identity "Metadata AppPool" | >> Select-Object * ReTweet this Tip!
  • List all SharePoint Users that are member in a specific group

    Niklas Goude -Expert in Residence You can return a list showing all SharePoint Users that are member of a specific group by using the Get-SPUser cmdlet. The example below shows how to list all SharePoint Users that are member of the “Viewers” group in the Site http://sp01. PS > Get-SPUser -Web http : // SP01 -Group "Viewers" UserLogin DisplayName --------- ----------- POWERSHELL\spadmin POWERSHELL\SPADMIN POWERSHELL\user1...
  • Customize an input form using InfoPath 2010

    With InfoPath 2010, you can now create or modify the input forms used when editing or viewing data from SharePoint lists. When InfoPath 2010 is installed and you have sufficient rights in SharePoint, you will find the “Customize form” button on the List tab on the Ribbon. With InfoPath, you have more options to create validations and customize the appearance of the New, Edit or View form. When you save the changes made to the form, it...
  • List all the SharePoint User accounts in a Site

    Niklas Goude -Expert in Residence You should use the Get-SPUser cmdlet when you want to retrieve a list of all SharePoint Users in a specific Site. The example below sets the search criteria to a specific Web PS > Get-SPUser -Web http : // SP01PS UserLogin DisplayName --------- ----------- POWERSHELL\spadmin POWERSHELL\SPADMIN SHAREPOINT\system System Account POWERSHELL\user1 User1 ReTweet this Tip!
  • Separate Web application with Application pools

    When designing your SharePoint farm, you should plan for how to segment your Web applications and Service Applications with different Application Pools. In case of an application pool crash, only the Web applications using that application pool would be affected. When using different application pools, it is also recommended that you use different Managed accounts in case something happens to the account. The Application pools serving your Service...
  • Add a secondary Site Collection Administrators

    Niklas Goude -Expert in Residence You can add a Secondary Site Collection Administrator to a Site Collection using the Set-SPSiteAdministrator cmdlet followed by the SecondaryOwnerAlias parameter. The example below demonstrates how to set the user “powershell\user1” as secondary Site Collection Administrator. PS > Set-SPSiteAdministration -Identity http : // SP01 ` >> -SecondaryOwnerAlias powershell\User1 ReTweet this Tip!
1 2 Next >
Idera SharePoint Reviews SMBology, Inc. Rackspace Hosting Sponsored by Idera and SharePoint Reviews and SMBology and EPCGroup.net
Copyright 2011 SecretsOfSharePoint.com. All rights reserved.