#12341 enable invetory .vbs

This commit is contained in:
Jonathan 2023-11-30 12:11:12 +01:00
parent f600648cc0
commit 607d7e36e5
2 changed files with 2 additions and 2 deletions

View File

@ -643,7 +643,7 @@ if (enterprise_installed()) {
} }
} }
} else { } 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) { if ($row['disabled'] === 1) {
$enable_inventory = 0; $enable_inventory = 0;
} else { } else {

View File

@ -1298,7 +1298,7 @@ if ($update_agent) {
} }
// Inventory switch enable when basic options are enabled. // 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 ($enable_inventory === 1) {
if ($row['disabled'] === 1) { if ($row['disabled'] === 1) {
$agent->enablePlugins($row['raw']); $agent->enablePlugins($row['raw']);