SOLVED: How To Disable SHARE Button in Office 2016 Using a GPO

If you have Office 2016 and you want to block your staff from easily saving content in the cloud, you can disable the SHARE button using the following Group Policy Object (GPO):

User Configuration -> Administrative Templates -> “Office Product Name” -> Disable Items in User Interface -> Custom -> Disable Commands > ENABLE and enter 26594

26594 does seem like a random number and it probably is, however, Microsoft has made it possible to disable nearly every feature by assigning nearly every button and short cut a number.  You can get a list of those numbers from what Microsoft has cleverly named: “Office 2016 Help Files: Office Fluent User Interface Control Identifiers” which you can download directly from Microsoft HERE.

Note that you need to set each Office products rules separately; there is no global “turn off the SHARE button” GPO.  That means you have to set:

User Configuration -> Administrative Templates -> Microsoft Word 2016 -> Disable Items in User Interface -> Custom -> Disable Commands > ENABLE and enter 26594

and

User Configuration -> Administrative Templates -> Microsoft Excel 2016 -> Disable Items in User Interface -> Custom -> Disable Commands > ENABLE and enter 26594

and

User Configuration -> Administrative Templates -> Microsoft PowerPoint 2016 -> Disable Items in User Interface -> Custom -> Disable Commands > ENABLE and enter 26594

and..

You can download the codes for Microsoft Office 2013 HERE and Office 2010 HERE to figure out what the codes are for Office 2010 and 2013 products.  The codes are different.  For example you use code 18147 to disable the SHARE button in Word 2013.

 

View Comments

  • My experience... Helpful or not. Worked for me.

    Office 2016 – Disable the Share Button

    To do this you have to download:
    Office 2016 Administrative Template files (ADMX/ADML) and Office Customization Tool
    From…
    https://www.microsoft.com/en-us/download/details.aspx?id=49030
    ( Filename: admintemplates-x64-4696-1000_en-us.exe )

    _____________________________________________________________
    Run and extract the files.
    Goto: admx folder.
    Copy all the extracted files there and paste them to:
    C:\Windows\PolicyDefinitions\

    _____________________________________________________________
    Run gpedit.msc (Policy Editor)
    Goto & edit:
    User Configuration -> Administrative Templates -> "Office Product Name" -> Disable Items in User Interface -> Custom -> Disable Commands
    • Enable
    • Click "Show" button, in the lower left box
    • Type 26594 (and/or any other control IDs, one per line)
    • Click OK
    • Click OK
    Seems to work!
    Share is there but blanked out.
    _____________________________________________________________
    Seems to work without the next steps.
    • From an Administrative Command Prompt type "gpupdate /force"
    No reboot required.

    Original Info source:
    https://social.technet.microsoft.com/Forums/lync/en-US/05b66707-e67d-4b42-b363-096efd1b90f6/disable-share-button-in-office-2016?forum=Office2016ITPro

  • thanks for your help, it was very helpful

    you can also directly edit the registry (save the following lines in a new file with the ending ".reg")

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Word\DisabledCmdBarItemsList]
    "TCID1"="26594"

    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Excel\DisabledCmdBarItemsList]
    "TCID1"="26594"

    [HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Powerpoint\DisabledCmdBarItemsList]
    "TCID1"="26594"

  • Thank you, this is very helpful. Do you know which of the shortcuts would disable the following in Excel and Word?

    Excel
    File->Share->Invite People
    Share Ribbon->Save to Cloud
    Basically to make Share to Email the default Share behavior. I currently have enabled 26800, 26801

    Word
    File->Share->Invite People
    Share Ribbon->Save to Cloud
    Basically to make Share to Email the default Share behavior. I currently have 26800, 26801, 15791, 18165 set

This website uses cookies.