Microsoft Office query files

This policy setting allows you to determine whether users can open, view, edit, or save Excel files with the format specified by the title of this policy setting.

If you enable this policy setting, you can specify whether users can open, view, edit, or save files.

The options that can be selected are below. Note: Not all options may be available for this policy setting.

- Do not block: The file type will not be blocked.

- Save blocked: Saving of the file type will be blocked.

- Open/Save blocked, use open policy: Both opening and saving of the file type will be blocked. The file will open based on the policy setting configured in the "default file block behavior" key.

- Block: Both opening and saving of the file type will be blocked, and the file will not open.

- Open in Protected View: Both opening and saving of the file type will be blocked, and the option to edit the file type will not be enabled.

- Allow editing and open in Protected View: Both opening and saving of the file type will be blocked, and the option to edit will be enabled.

If you disable or do not configure this policy setting, the file type will not be blocked.

Supported on: At least Windows 7

File block setting:


  1. Do not block
    Registry HiveHKEY_CURRENT_USER
    Registry Pathsoftware\policies\microsoft\office\16.0\excel\security\fileblock
    Value Nameofficequeries
    Value TypeREG_DWORD
    Value0
  2. Save blocked
    Registry HiveHKEY_CURRENT_USER
    Registry Pathsoftware\policies\microsoft\office\16.0\excel\security\fileblock
    Value Nameofficequeries
    Value TypeREG_DWORD
    Value1
  3. Open/Save blocked, use open policy
    Registry HiveHKEY_CURRENT_USER
    Registry Pathsoftware\policies\microsoft\office\16.0\excel\security\fileblock
    Value Nameofficequeries
    Value TypeREG_DWORD
    Value2
  4. Block
    Registry HiveHKEY_CURRENT_USER
    Registry Pathsoftware\policies\microsoft\office\16.0\excel\security\fileblock
    Value Nameofficequeries
    Value TypeREG_DWORD
    Value3
  5. Open in Protected View
    Registry HiveHKEY_CURRENT_USER
    Registry Pathsoftware\policies\microsoft\office\16.0\excel\security\fileblock
    Value Nameofficequeries
    Value TypeREG_DWORD
    Value4
  6. Allow editing and open in Protected View
    Registry HiveHKEY_CURRENT_USER
    Registry Pathsoftware\policies\microsoft\office\16.0\excel\security\fileblock
    Value Nameofficequeries
    Value TypeREG_DWORD
    Value5


excel16.admx

Administrative Templates (Computers)

Administrative Templates (Users)