4

I'm trying to disable the new share button on the top right corner of the Office 2016 apps.

Does anyone know the correspondent IdMso? I've tried to locate the IdMso tables but I only find tables for the previous versions of Office.

Dirk Vollmar
  • 161,833
  • 52
  • 243
  • 303
RicardoSBA
  • 735
  • 1
  • 6
  • 18

2 Answers2

2

Microsoft has published the IDs for Office 2016 here:

Office 2016 Help Files: Office Fluent User Interface Control Identifiers

As far as I can see, however, the Share button at the top left is not part of the Ribbon, i.e. you cannot remove it using a custom Ribbon XML (you can easily check this by providing a Ribbon XML which resets everything).

In case that you don't know the ID of a control, there is also a simple way to retrieve it inside Office: Go to File > Options > Customize Ribbon and hover over the respective command or group:

Command:

enter image description here

Group:

enter image description here

Dirk Vollmar
  • 161,833
  • 52
  • 243
  • 303
  • Thanks! It's unfortunate that we're not able to disable it :\ Thanks for the tip to get the Ids ;) Meanwhile we are able to prevent the action afterwards on the save action. – RicardoSBA Nov 03 '16 at 14:54
0

Sorry for being late to the party, but since there's a way to at least disable the button in question, I'd like to share my findings after a TechNet forum post.

While there's a GPO (group policy object) way, I opted for the quicker way of adding the registry key myself:

  1. Open the registry editor.
  2. Since there's no single "Disable Share button" setting, you've got to create the node path Computer\HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Office\16.0\<OfficeApp>\DisabledCmdBarItemsList & replace <OfficeApp> for each Office application you want the button being disabled in its Ribbon, i. e.
  • Computer\HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Office\16.0\Excel\DisabledCmdBarItemsList for Excel
  • Computer\HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Office\16.0\Word\DisabledCmdBarItemsList for Word
  • ...
  1. In each created node path, add a String value named TCID1. 3.1. In case there's already such an entry, increase the index at the end appropriately.
  2. Set the newly created String value actual value to 26594.
  3. (Re-)Start the configured Office application to see the button awesomely disabled.

Bonus for privacy lovers: While you're already within the registry editor, you can get rid of the Sign In button like this (courtesy of another TechNet forum post):

  1. Go to Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\SignIn.
  2. Create a DWORD value named SignInOptions.
  3. Set its value to 3. 3.1. For the curious: according to MS docs, these are the value meanings:
  • 0 = sign in via MS your organization's account
  • 1 = MS account only
  • 2 = organization's account only sers can sign in only by using the user ID that is assigned by your organization. This - 3 = Active Directory Domain Services (AD DS) on Windows Server only
  • 4 = no sign in with any ID allowed
  1. (Re-)Start the configured Office application to see the button awesomely gone.
Yoda
  • 428
  • 1
  • 7
  • 18