diff --git a/monkey/common/utils/wmi_utils.py b/monkey/common/utils/wmi_utils.py index 22ccf112f..d13962942 100644 --- a/monkey/common/utils/wmi_utils.py +++ b/monkey/common/utils/wmi_utils.py @@ -1,6 +1,10 @@ import sys if sys.platform.startswith("win"): + import pythoncom + + pythoncom.CoInitialize() + import wmi import wmi from .mongo_utils import MongoUtils