#12341 enable invetory .vbs
This commit is contained in:
parent
f600648cc0
commit
607d7e36e5
|
@ -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 {
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue