AOB
Well-known Member
- Joined
- Dec 15, 2010
- Messages
- 667
- Office Version
- 365
- 2016
- 2013
- Platform
- 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.
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.