Thursday, April 27, 2017

SharePoint and PowerShell: Get all Site Collections by Template

With this script you can check your farm for all site collections using a defined template, in my example it is the community site.
TemplateID:
Community Site(COMMUNITY#0, 62)
Community Portal(COMMUNITYPORTAL#0, 63)
Community Area Template (SPSCOMMU#0, 36)


How did I get the web template id?
$web = Get-SPWeb http://domain/site/yourcommunitysite
Write-Host "Template:" $web.WebTemplate " |ID:" $web.WebTemplateId
$web.Dispose()

Wednesday, April 26, 2017

SharePoint and PowerShell: Get all Site Collections that are using Nintex

Really simple: Run through every site collection of a web application and compare the feature definition IDs with the GUIDS provided in the array. Of course you can change the GUIDS in the array and use this script for other features as well. And yes, you will get a tiny .txt at the end, remove the header and footer and use the file in Excel or in a SharePoint list!

Tuesday, April 25, 2017

SharePoint and PowerShell: Get Site Collections that are using InfoPath

This script will crawl through a SharePoint Web Application and put out all the site collections and library where InfoPath is found, specifically the site owner, the site URL and the library URL.
Within the foreach, the script checks if there is a base template "XMLForm" used or if InfoPath is enabled.
Oh! And of course you will get a .txt at the end, remove the header and the footer and use it in Excel or in a SharePoint list!



Matthew McDermott wrote a similar script before I did, check it out here: .