Home > OS >  How to change Microsoft Word Options Trust Center programatically?
How to change Microsoft Word Options Trust Center programatically?

Time:11-08

I'm trying to change Microsoft Word Options Trust Center options programatically so I can add a new add-in catalog.

I was looking into the Microsoft.Office.Interop.Word library, but didn't find that option. Is it possible to even do this?

CodePudding user response:

The Word object model doesn't provide anything for that. Trust center settings are stored in the windows registry. Check out the HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\word\options or HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\WEF\TrustedCatalogs\ hives or use the ProcessMonitor to find out windows registry changes when you apply changes in Word settings. See Using Process Monitor to track registry changes for more information.

Also you may consider using Group Policy Objects to roll out changes to the whole organization. See User Configuration\Administrative Templates\Microsoft <Product Name>\<Product Name> Options\Security\Trust Center\ for more information.

  • Related