From 607d7e36e5479005827861f7f064019e46006cff Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 30 Nov 2023 12:11:12 +0100 Subject: [PATCH] #12341 enable invetory .vbs --- pandora_console/godmode/agentes/agent_manager.php | 2 +- pandora_console/godmode/agentes/configurar_agente.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index 03e120ff22..c4e681c63a 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -643,7 +643,7 @@ if (enterprise_installed()) { } } } else { - if (preg_match('/PROGRAMFILES%.Pandora_Agent.util.software_installed.vbs/', $row['raw']) === 1) { + if (preg_match('/.vbs/', $row['raw']) === 1) { if ($row['disabled'] === 1) { $enable_inventory = 0; } else { diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 7b0f116cb0..5137749009 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1298,7 +1298,7 @@ if ($update_agent) { } // Inventory switch enable when basic options are enabled. - if (preg_match('/PROGRAMFILES%.Pandora_Agent.util.software_installed.vbs/', $row['raw']) === 1) { + if (preg_match('/.vbs/', $row['raw']) === 1) { if ($enable_inventory === 1) { if ($row['disabled'] === 1) { $agent->enablePlugins($row['raw']);