To roll out a complete site structure (5 site colls + 30 sites) fast and identically onto 2 servers, I created a Powershell script (New-SPSite & New-SPWeb). No problems here. But we would also need the site feature SharePoint Server Publishing Infrastructure to be enabled. Which isn't a problem with Enable-SPFeature when you know the DisplayName. Which I didn't :(
How to get the displayname?
Well you could use the Get-SPFeature command, but that just generates a complete list (check below) of all features by DisplayName and ID. This doesn't help, because I don't know what the displayname is, I only know the site feature name used in the Site Collection Features screen within Site Settings.
I was trying to figure out how to get the DisplayName for the site feature. I tried Google several times; "DisplayName SharePoint Server Publishing Infrastructure" & "enable-spfeature -identify SharePoint Server Publishing Infrastructure" & "get displayname for site collection features"... It got me nowhere.
Then my awesome collegue Mark van Lunenburg told me I should use SharePoint Manager 2010 [codeplex]. And he was right! This was precisely what I was looking for.
1. Start up SharePoint Manager 2010
2. Navigate; Content Service > Web Applications > {Server} > Site Collection > {Server url} > Site Features
3. Click on the Site Feature by SharePoint Site Settings title
4. Check out the DisplayName in the Properties window on the right (see also picture below)
So never again am I searching for a site feature displayname.
