Hide Explorer button in the Ribbon

Hide Explorer button in the Ribbon
2 votes, 5.00 avg. rating (96% score)


In this post we will see how to hide ‘Open with Explorer’ button option from the ribbon. This is one common requirement where most of the clients request for as they do not want expose this option for users.

Skill Level – Medium

Hide Explorer

To hide explorer, custom action element should be deployed with the following details.

	<?xml version="1.0" encoding="utf-8"?>
	<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
			  Location="Ribbon.Library.Actions.OpenWithExplorer" />

The location of CommandUIDefinition should be ‘Ribbon.Library.Actions.OpenWithExplorer’ is the key point. Change the location for hiding any other buttons in Ribbon
Deploy the xml as feature and activate the feature to hide the button in the Ribbon

Other location parameters that can be used

    <CommandUIDefinition Location="Ribbon.Documents.New.AddDocument.Upload.Upload" />
    <CommandUIDefinition Location="Ribbon.Documents.New.AddDocument.Upload.UploadMultiple" />
    <CommandUIDefinition Location="Ribbon.Documents.New.NewDocument" />
    <CommandUIDefinition Location="Ribbon.Documents.New.AddDocument" />
    <CommandUIDefinition Location="Ribbon.Documents.New.UploadDocument" />

You can download the source code (VS2010) from Hide Explorer Source Code. It has site collection level feature setting to deploy the xml


Simple one and hope this code helps when required.

August 10, 2013 В· Adi В· No Comments
Tags: , ,  В· Posted in: Sharepoint 2007, Sharepoint 2010, SharePoint 2013

Leave a Reply

What is 14 + 5 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)