Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 371991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:10:03+00:00 2026-05-12T14:10:03+00:00

I have an application and I’m trying to make sure it’s running in a

  • 0

I have an application and I’m trying to make sure it’s running in a secure environment. First of all, I check if Windows is genuine, which makes it more likely that the user keeps it up-to-date. If not, I just pop up a message warning the user there’s a possible risk because he still needs to validate Windows.

Now, I want to do a bit more. I also want to check if the user has installed a virusscanner. I don’t care which one, as long as he has installed one. Then the same for checking if a firewall is installed. And if possible, I want to check when the user updated his Windows/Scanner/Firewall the last time just to make sure it’s not too old. So:

1) How do I check if a virusscanner is installed?
2) How do I determine when the virusscanner was updated?
3) How to detect when the virusscanner did it’s last full-system check?
4) How do I detect if a firewall is installed and active?
5) How do I check when Windows received it’s most recent update?

Basically, when my application starts I want to display a screen with warnings (just once per day) just in case any of these things have a problem. This because my application works with all kinds of sensitive information that the user collects from his clients. (Which includes bank account numbers, ID numbers of passports, NAW+DOB, income and a lot more.) Basically, if the system has a problem, the user must confirm that he’s aware of these problems. It takes the possible liability away from my application if he continues while knowing his system is possibly insecure…


And language? Basically C++ or Delphi for WIN32 examples and C# for .NET examples. It’s more about .NET/Windows API/.NET than language.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:10:04+00:00Added an answer on May 12, 2026 at 2:10 pm

    I think you can do most of this via WMI

    Something like this:

    ManagementObjectSearcher wmiData = new ManagementObjectSearcher(@"root\SecurityCenter", "SELECT * FROM AntiVirusProduct");
    ManagementObjectCollection data = wmiData.Get();
    
    foreach (ManagementObject virusChecker in data)
    {
        // This is the virus checkers name.
        String virusCheckerName = virusChecker["displayName"];
    }
    

    [You didn’t mention what language, so the sample above is in C#, but WMI can be done from pretty much anything]

    [Edit: You can do the same but with “FirewallProduct” instead for firewall info. Also, for the anti virus, you can look at the “productUptoDate” property on the results for info on if it’s up to date]

    The WMI reference should help you find the others. (1, 2, 3, and 4 I’m pretty certain are available through WMI. 5 I’m not so certain about, but I think it probably should be)

    You’ll probably find WMI Code Creator helpful for testing and figuring out what queries/objects you need to use. Also Scriptomatic and WMI Admin tools might be useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have application which creates some windows user accounts, on uninstallation I remove the
i have application in which i have display question on allcard view and all
I have application which needs to use a dll (also written by me) which
We have application named Milekeeper , which relays users to send invitations to race
I have application use SDF file and I use System.Data.SqlServerCe, Version 3.5.0.0 I make
I have application which is for paranoic users who used to store their sensitive
I have application which is configured with svn and its working fine in my
I have application which runs on both 1.4 and 1.6 . Order of elements
i have application in which i have a web server api .this is my
I have application which loads images like this: someImage = Image.FromFile(@picture.png); and another application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.