Programmatically detect antivirus status in Outlook (XL2013)

AOB

Well-known Member
Joined
Dec 15, 2010
Messages
669
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Does anybody know a way of programmatically detecting the antivirus status in Outlook?

The equivalent of manually, in Outlook, navigating to File > Options > Trust Center > Trust Center Settings > Programmatic Access and checking the Antivirus Status at the bottom

(It should read "Valid" but can be "Invalid" due to antivirus not being present or out of date)

Background : I have a process that runs a backup at midnight which interacts with Outlook. Normally the process runs pretty seamlessly, but if the user's antivirus is invalid, the default security process kicks in and they are prompted to permit access to the application performing the process. Obviously, if this is running out of hours, nobody is there to click the"Allow" button, and thus the process hangs indefinitely. I want to check in advance if the antivirus is valid, and if not, simply kill the process before the problem arises.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top