Actuary
Actuary

Reputation: 169

Python: How can I disable add-ins in Outlook and Excel?

I have some add-ins that load on start up. I can't disable this from happening as I don't have administrator rights.

I am writing a program that opens outlook and sends emails, but it is slowed down by these add ins. Is there a way to programmatically disable add-ins after opening outlook using python (e.g. using the win32com package)?

I need to do the same thing for Excel too. Any advice would be appreciated.

Upvotes: 0

Views: 812

Answers (3)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66215

You can disable the addins by setting the LoadBehavior value appropriately for the problematic addins in HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook.

Upvotes: 1

i_saw_drones
i_saw_drones

Reputation: 3506

If you have to use Outlook, would running it in safe mode be sufficient?

If so, you can use the command line parameter /safe, for example:

outlook.exe /safe

Reference

Upvotes: 0

Zakaria
Zakaria

Reputation: 65

Well the first advice is try to have the administrator rights on your computer to run the py script with no issue

secondly i think there is a way to do this as i came across a py lib in github but getting the administrative rights it better as it will be a issue in the future

Upvotes: 0

Related Questions