crutchcorn / WMIControl

WMI scanner, asset management medium, and management software
Mozilla Public License 2.0
12 stars 4 forks source link

Handle new WMICode return #39

Closed crutchcorn closed 7 years ago

crutchcorn commented 7 years ago

Currently, if Windows returns anything to WMICode, you get an error;

data.models.DoesNotExist: WMICodes matching query does not exist.

It would clearly be ideal to not have this happen. What should likely happen is that an updateDB command should be added. You could connect to a database, have it point to a custom-WMICodes table of some kind, and map items to those custom-WMICodes (a many to one relationship)

crutchcorn commented 7 years ago

After thinking through with @typedrat, this is how things will need to be done:

This all being said, it would be nice to know which computers are related to the unknown. I vote (and will likely add) an optional field for Machines that will be appended to by the scanner in order to notify which computers are associated to what unknown code