File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
lib/GLPI/Agent/Task/Inventory/Generic Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ inventory:
3333* fix #1023: Improve iLO ip address resolution on Windows
3434* Fix additional content merged into json even when not required on partial content
3535* Update support for Acer S240L monitors inventory
36+ * Don't inventory Surface Display as monitor on windows
3637
3738remoteinventory:
3839* fix RedHat RHN systemid set as WINPRODID
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ sub _getScreensFromWindows {
139139 next unless $object -> {PNPDeviceID };
140140 next unless $object -> {Availability } == 3;
141141
142+ # Ignore "Surface Display" type which is not a connecter monitor and may
143+ # expose a wrong serialnumber
144+ next if $object -> {MonitorType } && $object -> {MonitorType } =~ / ^Surface Display$ /i ;
145+
142146 push @screens , {
143147 id => $object -> {PNPDeviceID },
144148 NAME => $object -> {Caption },
You can’t perform that action at this time.
0 commit comments