Yammer App for SharePoint

If your organization has a Yammer network, you can use the Yammer App for SharePoint to add a Yammer feed to your SharePoint site. That way people can post, reply, and like Yammer conversations right inside of team and project websites.
The Yammer App for SharePoint allows you to add a real-time social layer to your SharePoint environment. You can engage in team and company-wide conversations, collaborate around files and projects, and become more productive by using Yammer and SharePoint together. This will help you make collaboration a more social, mobile, and engaging experience.
Moreover, The Yammer App for SharePoint is free. You just need to add the app to your SharePoint.
Get the app here
Setup the app Yammer App for SharePoint: Add a Yammer feed to a SharePoint page

Office 2010 and SharePoint 2010 Service Pack 2 now available

Office and SharePoint 2010 Service Pack 2 (SP2) is now available!. The SP2 release improves the compatibility of the Office and SharePoint 2010 products with Windows 8, Internet Explorer 10, Office 2013, and SharePoint 2013. It also addresses several security, stability, and performance issues.

As of today, all of the SP2 updates are available from the Download Center at the links listed below as well as from Microsoft Update as a manual download. After a 90-day period, SP2 will be offered as an automatic update through Microsoft Update.

  1. Service Pack 2 also includes a roll-up of all Cumulative Updates through April 2013, and all Public Updates through May 2013. The list below is specific to changes shipping for the first time in SP2.
  2. Text for some list items describes a problem now fixed by SP2, while other items describe both the problem and the new behavior after installing SP2. Despite variations in phrasing, SP2 fixes all of the issues listed.
  3. SP2 also contains additional changes which are less visible, but improve various aspects of the product. This includes reducing crashes, improving security, and fixing other issues too specific to include in this list.
The issues fixed specifically in the service pack are listed here


Farm Solution Deployment Lock and Removal

Farm Solution Deployment Lock may occur when a solution (.wsp) deployment fails unexpectedly.
Solution Deployment in SharePoint happens through the timer jobs. When you deploy a solution along with the deployment job a timer job named “Solution Deployment Job Lock” is created which store the deployment job’s id and the lifetime of the job is till the deployment job is completed. With this SharePoint ensures that no two deployments conflict with each other.

From the above we can conclude that in SharePoint one deployment job happens at a given time courtesy the solution deployment lock. Hence using this feature SharePoint ensures that no more than one deployment or retraction can happen at a given time.

So, why are we discussing this here. Ideally the lock is released once a deployment or retraction has been released, but there might be some cases when this lock doesn’t get released i.e. for some reason the timer job responsible for the lock does not get deleted. For instance as mentioned earlier that the solution deployment/retraction is done by a timer job and for some reason the timer service gets terminated leaving the lock unreleased.

To recover from this lock you need to use the following PowerShell command which releases the solution deployment lock.


Stsadm to Windows PowerShell mapping

For the ones who are well versed with stsadm and switching to PowerShell, the following table provides a mapping of stsadm commands to their PowerShell counterparts

Stsadm operation Windows PowerShell cmdlet
Activatefeature Enable-SPFeature
Addalternatedomain New-SPAlternateUrl
Addcontentdb Mount-SPContentDatabase New-SPContentDatabase
Addpath New-SPManagedPath
Addpermissionpolicy None
Addsolution Add-SPSolution
Addtemplate Install-SPWebTemplate
Adduser New-SPUser
Addwppack Install-SPWebPartPack
Addzoneurl New-SPAlternateUrl
Authentication Set-SPWebApplication Use the AuthenticationMethod or AuthenticationProvider parameters.
Backup Backup-SPConfigurationDatabase Backup-SPFarm Backup-SPSite
Backuphistory Get-SPBackupHistory
Binddrservice None
Blockedfilelist None
Canceldeployment None
Changepermissionpolicy None
Copyappbincontent None
Createadminvs New-SPCentralAdministration
Creategroup None
Createsite New-SPSite
Createsiteinnewdb New-SPSite Use the ContentDatabase parameter. New-SPContentDatabase
Createweb New-SPWeb
Databaserepair None
Deactivatefeature Disable-SPFeature
Deleteadminvs None
Deletealternatedomain Remove-SPAlternateUrl
Deleteconfigdb Remove-SPConfigurationDatabase
Deletecontentdb Dismount-SPContentDatabase
Deletegroup None
Deletepath Remove-SPManagedPath
Deletepermissionpolicy None
Deletesite Remove-SPSite
Deletesolution Remove-SPSolution
Deletetemplate Uninstall-SPWebTemplate
Deleteuser Remove-SPUser
Deleteweb Remove-SPWeb
Deletewppack Uninstall-SPWebPartPack
Deletezoneurl Remove-SPAlternateUrl
Deploysolution Install-SPSolution
Deploywppack Install-SPWebPartPack
Disablessc None
Displaysolution Get-SPSolution
Email None
Enablessc None
Enumalternatedomains Get-SPAlternateURL
Enumcontentdbs Get-SPContentDatabase
Enumdeployments None
Enumgroups None
Enumroles None
Enumservices Get-SPServiceInstance
Enumsites Get-SPSiteAdministration (To run this cmdlet, you must be a member of the Farm Administrators group.) Get-SPSite (To run this cmdlet, you must be a local administrator on the computer where SharePoint 2010 Products is installed.)
Enumsolutions Get-SPSolution
Enumsubwebs Get-SPWeb
Enumtemplates Get-SPWebTemplate
Enumusers Get-SPUser
Enumwppacks Get-SPWebPartPack
Enumzoneurls Get-SPAlternateURL
Execadmsvcjobs Start-SPAdminJob
Export Export-SPWeb
Extendvs New-SPWebApplication
Extendvsinwebfarm New-SPWebApplicationExtension
Forcedeletelist None
Getadminport Get-SPWebApplication Use the following syntax:

  • Get-SPWebApplication -IncludeCentralAdministration | ? {$_.IsAdministrationWebApplication -eq $true} 
Getproperty Get-SPFarmConfig Get-SPTimerJob Disable-SPTimerJob Enable-SPTimerJob Set-SPTimerJob Start-SPTimerJob
Getsitelock Get-SPSiteAdministration
Geturlzone Get-SPAlternateURL
Import Import-SPWeb
Installfeature Install-SPFeature
Listlogginglevels Get-SPLogLevel
Localupgradestatus None
Managepermissionpolicylevel None
Mergecontentdbs Move-SPSite
Migrateuser Move-SPUser
Provisionservice Start-SPServiceInstance
Refreshdms None
Refreshsitedms None
Registerwsswriter None
Removedrservice None
Removesolutiondeploymentlock None
Renameserver Rename-SPServer
Renamesite Set-SPSite Use the Url parameter.
Renameweb Set-SPWeb Use the RelativeUrl parameter.
Restore Restore-SPFarm Restore-SPSite
Retractsolution Uninstall-SPSolution
Retractwppack None
Scanforfeatures Install-SPFeature Use the Scanforfeatures parameter.
Setadminport Set-SPCentralAdministration
Setapppassword None
Setconfigdb Connect-SPConfigurationDatabase
Setlogginglevel Set-SPLogLevel
Setproperty Set-SPFarmConfig Get-SPTimerJob Disable-SPTimerJob Enable-SPTimerJob Set-SPTimerJob Start-SPTimerJob
Setsitelock Set-SPSiteAdministration Use the LockState parameter.
Setworkflowconfig Set-SPWorkflowConfig
Siteowner Set-SPSiteAdministration
Spsearch Get-SPSearchService Set-SPSearchService Get-SPSearchServiceInstance Set-SPSearchServiceInstance
Spsearchdiacriticsensitive None
Syncsolution Install-SPSolution Use the Synchronize parameter.
Unextendvs Remove-SPWebApplication
Uninstallfeature Uninstall-SPFeature
Unregisterwsswriter None
Updateaccountpassword Set-SPManagedAccount
Updatealerttemplates None
Updatefarmcredentials None
Upgrade None
Upgradesolution Update-SPSolution
Upgradetargetwebapplication None
Userrole Get-SPUser Move-SPUser New-SPUser Remove-SPUser Set-SPUser

Hiding SharePoint Lists

Sometimes we do feel a need to hide SharePoint Lists. Following are few ways which could some in handy while trying to achieve this objective.
Using SharePoint Designer:

  1. Start SharePoint Designer and open your site.
  2. Click on the “Lists and Libraries” in the Navigation pane
  3. Select the list/library which you need to hide
  4. On the details page check the “Hide from browser” checkbox and save
  5. To unhide the list un-check the checkbox and save 
sharepoint designer
SharePoint Designer

Using Code:
The other way is to obviously do this through code. SPList has a property as Hidden which can be set to true or false

using (SPSite site = new SPSite("http://YourSiteUrl"))
                    using (SPWeb web = site.OpenWeb())
                        SPList list = web.Lists["Announcements"];
                        //Set this property to true or false accordingly
                        list.Hidden = false;