SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an issue, basically I've installed a web template and it was installed fine. When i try to create a website I see this template in the list and I can choose it and based on this template create a site.

But strangly enought, it maybe not registered well or I don't know why, but when I run powershell command Get-SPWebTemplate it is not there. I can also find it in the hive in SiteTemplate ...

I did clean the cache and did iisreset but still it is not there, although it works, how do I fix it?

share|improve this question
up vote 4 down vote accepted

Your webtemplate is probably not globally deployed

[..]the documentation for Get-SPWebTemplate which states “Displays all globally installed site templates that match the given identity.” A sandboxed solution is not globally deployed, which explains why the template couldn’t be found. Source

Try this:

$web = get-spweb http://intranet
$template = $web.GetAvailableWebTemplates(1033) | Where-Object {$_.Name -eq "My Custom Template Name"}

#Uncomment to create web..
#New-SPWeb -Url "http://intranet/site1" -Name "Site 1" –Template $template

This will get it from available web templates instead, see more (and source of above script) here

share|improve this answer
Ok, but how do I make it then globally deployed? Normally it should be globally deployd this web template. I deployed with the Install-SPSolution ... which normally is not really sandboxed – Shkipper Apr 29 '14 at 9:53
And just to note, this web template is note there either :( – Shkipper Apr 29 '14 at 9:55
Can you please add your feature information? Like scope, module etc – Robert Lindgren Apr 29 '14 at 9:56
It is not really deployed by the feature, it is webtemplate from here: – Shkipper Apr 29 '14 at 10:09
That is for WSS 3.0, not SP 2010. – Robert Lindgren Apr 29 '14 at 10:17

After trying to figure this out myself, I got the following that is dynamic. Hope this helps someone else that needs to use a template in multiple places.

$Siteurl = "http://intranet/site/custom"

$SPW = Get-SPweb $Siteurl

$template = $SPW.GetAvailableWebTemplates(1033) | Where-Object {$_.Title -eq "MyCustomTemplate"}

write-host "Applying custom template..."


share|improve this answer

Perhaps you may need to restart the server. I recently had a similar issue. However, I was migrating from SP 2010 to SP 2013. See here for more info:

share|improve this answer
I did restart Like everything, did IISRESET, cleared the cached, restarted timer ... everything many times :/ still nothing :( – Shkipper Apr 29 '14 at 10:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.