Office SharePoint Server Publishing Infrastructure gives Access denied

Posted on 5/7/2008 @ 2:47 PM in #SharePoint by | Feedback | 7057 views

I keep forgetting the specific command, so I'm putting it up here.

Problem: Activating the "Office SharePoint Server Publishing Infrastructure" gives you an access denied.

Solution: Run -

stsadm -o activatefeature -name PublishingResources -url <yourwebsiteUrl>

Sound off but keep it civil:

Older comments..


On 8/6/2008 4:10:05 AM Belinda Ban said ..
So good. I met the same problem and solved it by the solution. Thanks.


On 11/11/2008 12:10:06 AM Harish Mathanan said ..
Thanks Sahil, needed this.


On 5/19/2009 6:10:59 AM Mask said ..
There is a centralized store of site templates called the central template gallery. This gallery is managed for your entire server or server farm, and can only be managed by using the command-line tool, Stsadm.exe. You must be a member of the local administrators group for the server computer to manage the central template gallery.


You use the following operations to manage the central template gallery.

Operation Description


addtemplate Adds a template to the central template gallery.


deletetemplate Removes a template from the central template gallery.


enumtemplates Lists the templates currently in the central template gallery.

The addtemplate operation takes the required filename and title parameters and the optional description parameter. To add a template, you would use the following syntax:

stsadm.exe -o addtemplate -filename <filename> -title <template title> -description <description of the template>

The deletetemplate operation takes the required title parameter and the optional lcid parameter. To delete a template from the central template gallery, you would use the following syntax:

stsadm.exe -o deletetemplate -title <template title> -lcid <language>

Note: After you add or delete a template from the central template gallery, you need to restart the Web service in Internet Information Services (IIS). You can restart all of IIS at once by running iisreset on the command line, or just restart the specific Web sites in Internet Information Services (IIS) Manager. If you are in a server farm environment, you must restart the Web services for each front-end Web server in your server farm.

The enumtemplates operation takes the optional lcid parameter. To list all templates in the central template gallery, you would use the following syntax:

stsadm.exe -o enumtemplates

To list only templates for a specific language, you would use the following syntax:


stsadm.exe -o enumtemplates -lcid <language>