netinvent / windows_tools

Collection of various interfaces for Windows functionality in a Pythonic way
BSD 3-Clause "New" or "Revised" License
63 stars 15 forks source link

No Antivirus Detected #9

Closed pizzpea1 closed 1 year ago

pizzpea1 commented 1 year ago

Hello, is your program working correctly? i just ran it and it returned this:

Example code for tests.windows_tools.antivirus, 2021020901 Antivirus software:

[]

Why is there no windows defender?

pizzpea1 commented 1 year ago

windows defender shows if there are other AVs installed, but not if it's the only one. There should be a workaround

deajan commented 1 year ago

I'd need a bit more context here in order to provide some useful information. What OS ? Did you run as admin ? What version of Python ?

Results on my machine include windows defender.

pizzpea1 commented 1 year ago

I'm on windows 10, not running as admin, it only shows windows admin when there are other antiviruses installed. If windows defender is the only antivirus, it does not appear in the list

deajan commented 1 year ago

Mind to re-test with latest fix ?

negativeproton commented 1 year ago

Just FYI:

>>> import windows_tools.antivirus
>>> result = windows_tools.antivirus.get_installed_antivirus_software()
>>> result
[{'name': 'Windows Defender', 'version': None, 'publisher': None, 'enabled': True, 'is_up_to_date': True, 'type': 'Windows Defender / Security Essentials'}]

with the current project state and the setup described in https://github.com/netinvent/windows_tools/issues/10:

works for me now :) except for version and publisher

tested as admin

"Keys version and publisher are only filled via installed software list." - README.md

How can the values for these keys be filled?

deajan commented 1 year ago

Thanks for your report. Version and publisher keys can't be filled using securityCenter wmi calls... The info is not présent.

deajan commented 1 year ago

LGFM