Programmatically detect antivirus status in Outlook (XL2013)

AOB

Well-known Member
Joined
Dec 15, 2010
Messages
660
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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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