.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Disable site templates via powershell?

Posted By:      Posted Date: September 14, 2010    Points: 0   Category :SharePoint
I'm looking to disable certain site templates available to users via the "create site" menu and would like to just do it for one entire web application, but not the whole farm. Is there a way to do this via powershell? (It honestly baffles me that this still isn't a UI control via central admin)

View Complete Post

More Related Resource Links

Sharepoint 2010 - How to Disable Site Templates?

Using Sharepoint 2010, how can one disable site and list templates that are available when a user creates a new site or a new list?

Disable Feature Across Site Collections using Powershell


Hello all,

I am trying to disable a feature across multiple site collections. Is there anyway to scope this so it hits all site collections in a Web Application? I am currently using the following:

Disable-SPFeature –identity "MyFeature" -URL https://mywebapp

Master Pages: Master Your Site Design with Visual Inheritance and Page Templates


Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.

Fritz Onion

MSDN Magazine June 2004

ASP.NET Web Site Templates

I need to redo a web site, and I'd like to start with a fancy template that's asp.net based.  There are tons of web site templates out there, but I'm not finding any that are focused on asp.net developers.  I've purchased an html/.css template, but it's a pain to integrate it into a web site in VS 2010.  I'd gladly pay $100 for a pre-built project.  Does any one know of a site offering such templates? 

SharePoint 2010 - noticed a possible bug with regard to custom site templates.

Hi All, I'm wondering has anyone else noticed this behaviour in relation to custom site templates. I wanted to move an site A ( content included ) from site collection A to site collection B. I saved site A as a site template ( content included ) I uploaded the site template to site collection B's solution gallery. I created Site B on site collection B using this site template. unfortunately the top links to site A have been preserved causing major confusion to the users. i.e. the shared documents document library link and the tasks link both link to Site A! the links to documents within the document library on the other hand are to site B!? Is this a known issue ? Is this something that I should have expected to happen? look forward to hearing other folks experience with this functionality. thanks and regards, Counie  

Best Way to Convert MOSS 2007 Site Templates to SharePoint 2010 Templates

Ok, I just treid to do something that I didn't really think would work, but now that I've seen it fail, I get to ask the question. Is there a best practice on converting site templates built for MOSS 2007 to SharePoint 2010. We have several projects that used the Visual Studio Extensions (v1.3) and the SharePoint Solution Generator to build custom site templates and the .wsp packages. I can add and deploy the solution packages using the STSADM tool, but when I try to create a sub-site based on that template, I get an Object Not Set to an Oject Reference Error. In case anyone is wondering, it works fine in MOSS 2007. I have not tried Visual Studio 2010 yet (it's downloading in the background). I'm just wondering if anyone has run into this and what they did to fix it. TIA, John.

Site templates and Library Labels

I have been having an issue with labels and a document library... I have a created a document library...docs, with a new site content type ...doc1 If I then save site as a template....works fine. However, the template I have for the content type doc1, has a Quick Part (label) added to it to show the document version number on the document. In order for this to pass from the library to the document, I need to activate labels on the list through the Information Management policy settings on the library. I have done this  and got the template working correctly, updating the version number within the document. But, now if I save site as a template I get the error...   Error Error exporting the list named "Docs" at the URL: Docs Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: ea226ba4-0a68-4cfb-9b6f-c557f4ec8ab6 I have tried saving the template at every stage and it is fine up until I turn on the Label option. Any ideas?

Types of site templates

There are a number of articles around that list the different types of site template available in Sharepoint 2010. Some of the templates that appear in these lists do not appear as options when you go to create a new site. SPSNEWS#0 for example. Are these templates that should no longer be used? 

Applying site templates fails

Hi, I MOSS 2007 we have created several site templates - all based on 'team site template' and ONLY customized using the browser. All ‘source sites’ are kept in one web app. We have 1)      Migrated this web app to SP 2010 2)      Saved the sites as ‘site templates’ resulting in .wsp-files 3)      Created a site collection WITHOUT reference to a site template 4)      Connected to the  site coll – ‘choose template dialog’ shows up 5)      Added/activated solution (.wsp-file) to the site coll 6)      Tried to apply the custom site template – results in the following error message: ”Filen blev ikke fundet. (File Not found) Fejlfinding af problemer med Microsoft SharePoint Foundation. Korrelations-id: 333faed9-fe3e-4c46-aa4d-2d40fb162c01 Dato og klokkeslæt: 10-09-2010 11:02:24 ” Tracing using the correlation-id exposes a lot of data – too much to insert here – but this extract might be important: “Area     : SharePoint Foundation Category : General Level    : High EventID  : 8l36 Message  : Failed to activate site-scoped features for template 'STS#0' in site 'http://skabelon2010.xxx.xxx.xx/site

how to disable creation of security groups as part of site provisioning for out of the box

I have requirements that I would like to create the sites with no security groups. Add users with specific permissions levels. Is there a way to disable the step in the default site provisioning process for out of box templates, that not to ask for creating of the security groups..net Architect

SharePoint 2010 RTM - Disable My Site ?

Is there a method to "disable" MY Site completly so that users wil be unable to create their own websites or have access to any links that pertain to "MY Site" etc I have been fighting this and looking for a way under Central Admin but thus far I am coming up short. I am running SP-2010 rtm on win server 2008 Thanks Paul  

How to disable "Colleagues on My Site" in MOSS 2007 from Manage Policy from SSP?


I am trying to disable "Colleagues on My Site" policy, under the Shared
Services Administration. But when I try to disable it it is not editable.
I can click edit but then enable is set and it is grayed out.

Any ideas


SiteDefinitions installed within the same powershell "session" not available upon site collection cr


We have an issue with creating a new site collection based on a SiteDefinition located in a solution which has just been installed.

Our powershell script look like this (pseudo code):


The New-SPSite command returns the following warning : "Warning: Template is not found and is not applied"

If we run Get-SPWebTemplate in the same powershell "session" out newly deployed SiteDefinition does not show up, however if we open a new "session" our new SiteDefinition is available.

Somehow it seems that various SharePoint objects are cached or some kind of state is preserved throughout the session.

Is there a way to reset this cache/state?

Site Settings - Page Layouts and Templates Error


I'm getting an error page when trying to reach Page Layouts and Templates page from site settings on one of the sites in our collection.  When the user clicks on Site Settings -> Modify all site settings -> Page Layouts and Site Templates an error page is displayed with the message: Data at the root level is invalid. Line 1, position 1.  I've checked Event Viewer on the server and found no errors for this issue.  I'm very new to SharePoint Admin and I'm not sure why this would happen.  I'm including an exerpt from the log file below.  Does anyone have any ideas for me? 

10/30/2009 13:50:01.42 	w3wp.exe (0x0BC4)                       	0x07C8	Windows SharePoint Services   	General                       	8e25	Medium  	Failed to look up string with key "ReportBuilderContentTypeDesc", keyfile .	 
10/30/2009 13:50:01.42 	w3wp.exe (0x0BC4)                       	0x07C8	Windows SharePoint Services   	General                       	8l3c	Medium  	Localized resource for token 'ReportBuilderContentTypeDesc' could not be found for file with path: "(unavailable)".	 
10/30/2009 13:50:01.43 	w3wp.exe (0x0BC4)                       	0x07C8	Windows SharePoint Services   	General                       	72kg	High    	#20015: Cannot open "Resources.en-US.resx": no such file or folder.	 
10/30/2009 13:50:01.43 	w3wp.exe (0

How to find and test templates of a web site?


I am new to web site templates, and I know that templates are the base for the creation of web pages.

I have the task of testing hundreds of web pages from a web site.

If a web site (For example, www.microsoft.com) has 1000 web pages, how can I know what are the different templates used to design these 1000 web pages?

The idea is, the test cycle time can be reduced and the reliability on coverage can be more by testing these templates.

Once I know the templates, how should they be tested?

Can anyone please help me know answer to my question?

I googled to check solution to my question and found that, there are many articles on the net which explains how to create web pages from a template.But, my problem is, how do I know what templates are used to create hundreds of web pages in an existing web site (say, www.microsoft.com)

Also, can you please let me know if there are any links relevant to this so that, i can read through it to understand this better?

regards, Krishna

disable top level site collection


I saw some compaies when they created sharepoint web application, they do not create a top level site collection.  thety created site collections under managed path. For example, the sharepoint web app called http://MyCompanyNmae.com. users can not access http://MyCompanyNmae.com directly. Instead they have to access through






Why they disable the top level site collection? for what purpose?


Thanks in advance,  


Is it possible to disable the recycle bin at the site level?


In Sharepoint 2007 we would like to be able to have items automatically deleted & not show up in the recycle bin at the site level or the site collection level without changing the settings for the entire site collection.

Can this be done? Could I setup a workflow to do this for me automatically once something is deleted from a list or document library?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend