Saturday, June 25, 2011

"Windows server features or role services required by this product are not enabled" when installing Office Web Apps

I was trying to install Office Web Apps on my SharePoint server farm and came across this error when I launched the installer: "Windows server features or role services required by this product are not enabled"

I checked all the prerequisites listed under the Hardware and Software Requirements (SharePoint Server 2010) and they are all there.

After a bit of head scratching, I decided to launch Server Manager and see what roles and features were installed. I clicked on Add Feature and it complained that another user was still configuring a role. It turned out that when I was enabling the Desktop Experience Feature using a different account, however that required a reboot and was waiting for that account to login again in order to continue the installation of Ink and Handwriting Services. Once I logged in, that feature was successfully enabled.

Then the prerequisite check succeeded.

Thursday, June 16, 2011

Listing sites, their creators, template and date created

Just a simple Powershell script using the splat operator (which is quite new to me).


(Get-SPSite myurl).AllWebs | Select-Object url, @{label="Creator"; Expression={$_.Author}}, @{label="Template"; Expression={$_.WebTemplate}}, @{label="Date Created"; Expression={$_.Created}} | Format-Table -AutoSize


This returns a table of URL, Creator, Template and Date Created of each site in the site collection specified by myurl. Note that your screen needs to be wide enough to see the whole table otherwise some columns may not display.