Tuesday, August 7, 2012

How To Enable Office Web Apps across Site Collections using PowerShell

Once you have installed and configured Office Web Apps for SharePoint 2010. You are now at the step of activating it for your users. Perform this quick tip to use PowerShell to activate the feature across all of your site collections within a given web application.
  • Open the SharePoint 2010 Management Shell with a properly privileged account.
  • Type or paste in the following to obtain the Office Web Apps Feature

    $webApps = $(Get-SPFeature -limit all | where {$_.displayname -eq “OfficeWebApps”}).Id

  • Type or paste in the below command to loop through each site collection and activate Office Web Apps
    Get-SPWebApplication -identity “http://portal.mywebappurl.com” | Get-SPSite -limit all | %{Enable-SPFeature $webApps -Url $_.URL}


    Note: Modify the Identity parameter for Get-SPWebApplication to match your environment

No comments:

Post a Comment