March 2012 - SharePoint Tips

  • Search scope in SharePoint

    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 left hand navigation you find Scopes...
  • Display the Farm Build Versions in SharePoint

    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

    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 format as the output you get from...
  • Modify Farm Configurations Information in SharePoint

    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 in SharePoint

    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 administration. In SharePoint 2010...
  • Using "Send To" to Route Documents in SharePoint

    Documents are not always created in the location where they should finally be routed to. For example, documents may be created in one site but routed to a different site for final review by clients or customers. This can be easily achieved in SharePoint 2010 via simple short cut menus that can be set up for a document library. This is done by enabling the content organizer features and configuring ‘send to’ connections from central administration...
  • Find information faster with Metadata navigation in SharePoint

    Metadata navigation is a new feature in SharePoint 2010 that allows you to quickly find and filter content in large document libraries. End users will get a new navigation pane in the left-hand side navigation of the document library when they enable the Metadata navigation. The entries displayed in the pane are the columns that are specified in the Metadata Navigation settings. Clicking on any of the items in the navigation panel of the document...
  • Sync Users Information from Active Directory in SharePoint

    You can sync User information from the User Directory Store. Simply, use the Set-SPUser cmdlet and use the SyncFromAD switch parameter to enable syncing. PS > Set-SPUser -Identity powershell\user3 ` >> -Web http : // sp01 -SyncFromAD ReTweet this Tip!
  • Create a template of your lists in SharePoint

    Some SharePoint lists could be useful to reuse at other locations in your SharePoint environment. Customized SharePoint lists can easily be created as templates so the customized list will be available when other users are creating new lists. You can browse the List, select the List tab in the Ribbon, and click List settings to create a template of a list in SharePoint 2010. ,. Under Permissions and Management, you will find Save list as a template...
  • Add existing users to a Group in SharePoint

    You can add an existing SharePoint User to a group using the Set-SPUser cmdlet. Simply specify the group using the Group parameter as shown in the example below. PS > Set-SPUser -Identity powershell\user3 ` >> -Web http : // sp01 -Group "Design" ReTweet this Tip!
  • Add Custom Validation to a Field in SharePoint

    You can add custom validation to a field in SharePoint 2010 using Windows PowerShell. The example below demonstrates how to configure the title field so that it only accepts values that are 15 characters or less: PS > $spWeb = Get-SPWeb http : // SP01.powershell.nu PS > $spList = $spWeb . Lists [ "Tasks" ] PS > $splist . ValidationFormula = "=LEN(Title)<=15" PS > $splist . ValidationMessage = >> "The Title...
  • Disable List Deletion in SharePoint

    If you don’t want users to be able to delete a specific SharePoint 2010 list, you can disable list deletion using Windows PowerShell. The example below demonstrates how to disable deletion of the tasks list on a Web site: PS > $spWeb = Get-SPWeb http : // SP01.powershell.nu PS > $spList = $spWeb . Lists [ "Tasks" ] PS > $spList . AllowDeletion = $false PS > $spList . Update () PS > $spWeb . Dispose () ReTweet this Tip...
  • Add Permission Levels to a Group in SharePoint

    You can add permission levels to a user or group in SharePoint 2010 using Windows PowerShell. First, store the permission level in a variable, next retrieve the user or group from the role assignments collection, and finally use the add() method to add a specific permission level. The example below demonstrates how to grant the members group full control on a Web site: PS > $spWeb = Get-SPWeb http : // SP01.powershell.nu PS > $roleDefinition...
  • Adding Custom Permission Levels in SharePoint

    You can create custom permission levels in SharePoint 2010 using Windows PowerShell. Start by creating a new object of the type Microsoft.SharePoint.SPRoleDefinition. Then, add a name and description and set the base permissions that you want to use: PS > $spWeb = Get-SPWeb http : // SP01.powershell.nu PS > $perm = New-Object Microsoft.SharePoint.SPRoleDefinition PS > $perm . Name = "Custom Permissions" PS > $perm . Description...
  • Grant Permissions in SharePoint

    You can grant permissions to a user or group in SharePoint using Windows PowerShell. Simply add the user or group to the role assignment collection:. PS > $spWeb = Get-SPWeb http : // SP01.powershell.nu PS > $spPrincipal = [ Microsoft.SharePoint.SPPrincipal ] $spWeb . SiteGroups [ $rGroup ] PS > $spWeb . RoleAssignments . Add ( $spPrincipal ) PS > $spWeb . Dispose () 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.