February 2012 - SharePoint Tips

  • Handling Errors in Your Scripts in Sharepoint

    When creating automated SharePoint scripts using Windows PowerShell, it’s a good idea to add some form of error handling. A typical example is when you try to access a non-existent site collection. By default, Windows PowerShell displays an error message. You can use a Try/Catch statement if you want to handle this. Note that the –ErrorAction is set to stop on the cmdlet: $url = "http://SP01.powershell.nu" try { # Trying to get...
  • Setting Permissions for People Search in Sharepoint

    After you have configured your User Profile Service Application, you will want to enable People Search on your farm. To ensure this works, you need to set the right permissions on your User Profile Service Application. To do that, go to Service Applications in Central Administration and select the application from the list. Click the Administrators button on the ribbon to set permissions. Confirm that the Search default content access account is in...
  • Enable Auditing in Sharepoint

    You can enable site audit using Windows PowerShell. The example below demonstrates how to add specific audit flags on a site collection and enable auditing: PS > $spSite = Get-SPSite http : // SP01.powershell.nu PS > $spSite . Audit . AuditFlags = >> ([ Microsoft.SharePoint.SPAuditMaskType ] :: All ` >> - bxor [ Microsoft.SharePoint.SPAuditMaskType ] :: View ) PS > $spSite . Audit . Update () PS > $spSite . Dispose () ReTweet...
  • Control metadata using the Managed Metadata Services

    Managing metadata in SharePoint 2010 has been significantly improved with the new Managed Metadata Service Application. With this new service application, you can now control and manage your metadata throughout the whole SharePoint farm, or even between farms. For example, you can create content types that could become available in all your site collections—this was not an easy task in earlier SharePoint versions. ReTweet this Tip!
  • Set the Site Collections Warning Limits

    You can configure your Site Collection to send a warning e-mail when Site storage reaches a specific size. If you want to send an e-mail when the Site storage reaches 300MB, you can type: PS > Set-SPSiteAdministration -Identity http : // SP01 ` >> -WarningSize 300 MB ReTweet this Tip!
  • Script installations to save time and maintain consistency

    As SharePoint gets more and more complex, the use of scripted installations is essential to maintaining consistencies in your different staging environment. With the introduction and tight integration of PowerShell in SharePoint 2010, PowerShell has taken scripted installations to a whole new level. You should always use a scripted installation to not only save time, but to make sure that your installations look the same, allowing you to easily set...
  • Remove headers and navigation areas from a printed SharePoint page

    By default, when you print a SharePoint page, the header and navigation areas print as well, which is typically undesired. This can be overcome by adding a few CSS statements to the master page or to the CSS file used by the website. @ media print { /* for SharePoint 2010 environment */ #s4-titlerow, #s4-statusbarcontainer, #s4-topheader2 { display:none; visibility: hidden; } #s4-leftpanel { display:none; visibility: hidden; } #MSO_ContentTable {...
  • Set the maximum storage size of Site Collections

    You can control the maximum storage size of a Site Collection by using the Set-SPSiteAdministration cmdlet. You can type if you want to limit the Site storage to 500MB: PS > Set-SPSiteAdministration -Identity http : // SP01 ` >> -MaxSize 500 MB ReTweet this Tip!
  • Remove a list in SharePoint 2010 from the Quick Launch toolbar in Sharepoint

    You can use Windows PowerShell to remove a list in SharePoint 2010 from the Quick Launch toolbar. Simply store an instance of an SPList Object, set the OnQuickLaunch property to $false, and update the SPList object. PS > $spWeb = Get-SPWeb http : // sp01 / site PS > $spList = $spWeb . GetList ( "http://sp01/site/Lists/MyList" ) PS > $spList . OnQuickLaunch = $false PS > $spList . Update () ReTweet this Tip!
  • Enable folder creation on a list in Sharepoint

    You can enable folder creation on a list in SharePoint 2010 using PowerShell. Simply store an instance of an SPList Object, set the EnableFolderCreation property to $true, and update the SPList object. PS > $spWeb = Get-SPWeb http : // sp01 / site PS > $spList = $spWeb . GetList ( "http://sp01/site/Lists/MyList" ) PS > $spList . EnableFolderCreation = $true PS > $spList . Update () ReTweet this Tip!
  • Reuse customized Web Parts in Sharepoint

    You will sometimes want to reuse a customized Web Part at different sites. An example of this could be the Content Query Web Part that you could customize to show aggregate content from different sites. If this customized Web Part could be useful in different sites, or at different locations, it can be exported and then stored in the Web Part Gallery. This is how to do this. (Note, not all Web Parts can be exported): Customize the web part Change...
  • Backup and restore: SQL Server encryption

    Starting with SQL Server 2008 Enterprise and Developer editions, databases can be encrypted on disk using transparent data encryption, or TDE. SharePoint has no qualms with TDE, and SharePoint’s databases can be encrypted without issue using TDE. When backing up and restoring databases that are encrypted, though, be careful. Encryption is handled by SQL Server, and such encryption “flies below the radar” of SharePoint. For backup...
  • Search Permissions and Indexed File Shares

    One very attractive feature of SharePoint Server 2010 (and MOSS 2007) its Search engine’s ability to index content sources outside of SharePoint, such as network file shares and other Web sites. When SharePoint indexes a file share, it also reads the NTFS permissions configured on the file share to determine which SharePoint users are able to see and access content through a search. So if User 1 does not have access to Folder A in that indexed...
  • Using SQL Aliases in Your SharePoint Farm for Sharepoint

    SharePoint depends on its connections to one or more SQL Server instances for the overwhelming majority of its content and configuration data. The loss of a SQL Server can spell disaster for SharePoint, particularly if the lost SQL Server can’t be restored and a new SQL Server instance (with a new name) must be used. The use of SQL Server names and/or addresses in difficult-to-alter SharePoint database connection strings is what makes this situation...
  • Using Dashboards to Quickly Communicate in Sharepoint

    For an Intranet, determining key company metrics and showing them graphically can help keep staff focused on the same goals. SharePoint provides a Key Performance Indicator (KPI) web part which is set up by default in a site created using the Reports template. This web part is also available in other site templates such as Team / Collaboration. Setup a KPI list and a data source such as Excel, a SharePoint list or any external data source to hold...
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.