OPSI erkennt falsche LTSB Version

larsg
Beiträge: 217
Registriert: 16 Dez 2014, 18:06

OPSI erkennt falsche LTSB Version

Beitragvon larsg » 08 Mai 2018, 10:28

Ein Bug der mir schon vor langem aufgefallen ist, der aber bislang nicht gestört hat:


In der WINST-Logdatei wird die falsche LTSB-Version aufgeführt.


Auf LTSB 2016:
WINST:

Code: Alles auswählen

MS Windows 10.0 64 Bit, Release: 1607, Edition: Windows Enterprise 2015 LTSB


WMI:

Code: Alles auswählen

wmic os get caption
Microsoft Windows 10 Enterprise 2016 LTSB



Auf LTSB 2015:
WINST:

Code: Alles auswählen

MS Windows 10.0 64 Bit, Release: 1511, Edition: Enterprise Edition


WMI:

Code: Alles auswählen

wmic os get caption
Microsoft Windows 10 Enterprise



Ich dachte ich melde es mal ;)
Zuletzt geändert von larsg am 09 Mai 2018, 11:32, insgesamt 1-mal geändert.

Benutzeravatar
n.wenselowski
uib-Team
Beiträge: 3148
Registriert: 04 Apr 2013, 12:15

Re: OPSI erkennt falsche LTSB Version

Beitragvon n.wenselowski » 09 Mai 2018, 09:33

Hi,

danke für die Rückmeldung. Ich habe dazu ein internes Ticket aufgemacht.


Viele Grüße

Niko
opsi development - uib gmbh
For productive opsi installations we recommend support contracts.

Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1126
Registriert: 01 Jul 2008, 12:10

Re: OPSI erkennt falsche LTSB Version

Beitragvon wolfbardo » 09 Mai 2018, 09:58

mmh, kann ich kaum glauben ... von daher bitte etwas mehr Info:

a) swaudit laufen lassen, was das anzeigt
b) bzw getMSVersionMap auf loglevel 7
) GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion] ReleaseID")

Gruss
Bardo Wolf

Besuchen Sie uib gmbh auf der it-sa

8.-10.10.2019 in Nürnberg
Halle 9 Stand 108

opsi workshops in Mainz

Basis 4.-7.11.2019
Basis 09.-12.2019

Einführung in die Software-Paketierung 12.-13.11.2019

opsi support by uib gmbh

http://www.uib.de

larsg
Beiträge: 217
Registriert: 16 Dez 2014, 18:06

Re: OPSI erkennt falsche LTSB Version

Beitragvon larsg » 09 Mai 2018, 11:27

Hi,

swaudit

Code: Alles auswählen

(0)       
(1)       [1] [Mai 09 11:26:06:668] --
(2)       [1] [Mai 09 11:26:06:668] --
(3)       [1] [Mai 09 11:26:06:668] c:\opsi.org\log\\opsi-script-part-Go09Ik95.log
(4)       [1] [Mai 09 11:26:06:671] opsi-script 4.12.0.17 started at >>
(5)       [1] [Mai 09 11:26:06:671] opsi-script log file with encoding utf8
(6)       [1] [Mai 09 11:26:06:671] startmessage opsi-script created at CentralForm.FormCreate: 09.05.2018 11:26:04
(7)       [1] [Mai 09 11:26:06:671] Loading skin from: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winstskin
(8)       [1] [Mai 09 11:26:06:671] Called with parameter: /opsiservice\r\nhttps://192.168.56.101:4447/rpc\r\n/clientid\r\nw10-64.uib.local\r\n/username\r\nw10-64.uib.local\r\n/password\r\n***(confidential)***\r\n
(9)       [1] [Mai 09 11:26:06:672] Depot path from readconfig:  p:\ 09.05.2018 11:26:04
(10)      [1] [Mai 09 11:26:06:672] startmessage StartProgramModes and create log: 09.05.2018 11:26:04
(11)      [1] [Mai 09 11:26:06:672] pm: 5 09.05.2018 11:26:04
(12)      [1] [Mai 09 11:26:06:672] startmessage start opsi service connection: 09.05.2018 11:26:04
(13)      [1] [Mai 09 11:26:06:672] startmessage: opsidata initialized: 09.05.2018 11:26:04
(14)      [1] [Mai 09 11:26:06:672] w10-64.uib.local
(15)      [1] [Mai 09 11:26:06:672] got default_loglevel: 8
(16)      [1] [Mai 09 11:26:06:672] got config: opsi-script.global.force_min_loglevel
(17)      [1] [Mai 09 11:26:06:672] got force_min_loglevel: 0
(18)      [1] [Mai 09 11:26:06:672] got debug_lib: false
(19)      [1] [Mai 09 11:26:06:672] got debug_prog: false
(20)      [1] [Mai 09 11:26:06:672] readConfigFromService: ok
(21)      [1] [Mai 09 11:26:06:672] startmessage create log: 09.05.2018 11:26:06
(22)      [1] [Mai 09 11:26:06:672] force_min_loglevel: 0
(23)      [1] [Mai 09 11:26:06:672] default_loglevel: 8
(24)      [1] [Mai 09 11:26:06:672] debug_prog: false
(25)      [1] [Mai 09 11:26:06:672] debug_lib: false
(105)     [1] [Mai 09 11:26:08:407] [swaudit] Prog: force_min_loglevel: 0
(106)     [1] [Mai 09 11:26:08:407] [swaudit] Prog: default_loglevel: 8
(107)     [1] [Mai 09 11:26:08:407] [swaudit] Prog: debug_prog: False
(108)     [1] [Mai 09 11:26:08:407] [swaudit] Prog: debug_lib: False
(109)     [1] [Mai 09 11:26:08:407] [swaudit] Prog: ScriptErrorMessages: False
(110)     [1] [Mai 09 11:26:08:407] [swaudit] Prog: AutoActivityDisplay: False
(113)     [1] [Mai 09 11:26:08:431] [swaudit]
(114)     [1] [Mai 09 11:26:08:431] [swaudit] ============ Version 4.12.0.17 script "p:\swaudit\swaudit.opsiscript"
(115)     [1] [Mai 09 11:26:08:432] [swaudit]              used script encoding: utf8
(116)     [1] [Mai 09 11:26:08:432] [swaudit]              used system encoding: cp1252
(117)     [1] [Mai 09 11:26:08:432] [swaudit]              start: 2018-05-09  11:26:08
(118)     [1] [Mai 09 11:26:08:432] [swaudit]              installing product: swaudit_4.0.7.6-2
(119)     [1] [Mai 09 11:26:08:432] [swaudit]              on client named    "w10-64.uib.local"
(120)     [1] [Mai 09 11:26:08:432] [swaudit]              loggedin user    "user"
(121)     [1] [Mai 09 11:26:08:432] [swaudit]              opsi-script running as    "SYSTEM"
(122)     [1] [Mai 09 11:26:08:432] [swaudit]              opsi-script running with admin privileges
(123)     [1] [Mai 09 11:26:08:432] [swaudit]              opsi-script running in standard script mode
(124)     [1] [Mai 09 11:26:08:432] [swaudit] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
(125)     [1] [Mai 09 11:26:08:432] [swaudit] system infos:
(126)     [1] [Mai 09 11:26:08:437] [swaudit] 00-80-27-02-02-03  -  PC hardware address
(127)     [1] [Mai 09 11:26:08:437] [swaudit] w10-64  -  IP name
(128)     [1] [Mai 09 11:26:08:437] [swaudit] 10.0.3.15  -  IP address
(129)     [1] [Mai 09 11:26:08:437] [swaudit] DEU  -  System default locale
(135)     [1] [Mai 09 11:26:08:437] [swaudit] MS Windows 10.0 64 Bit, Release: 1607, Edition: Windows Enterprise 2015 LTSB
(136)     [1] [Mai 09 11:26:08:437] [swaudit] opsi service version : 4
(137)     [1] [Mai 09 11:26:08:437] [swaudit]
(199)     [5] [Mai 09 11:26:08:532] [swaudit] message Running software audit...
(200)     [5] [Mai 09 11:26:08:596] [swaudit] comment: detect if we run in opsi service mode
(201)     [5] [Mai 09 11:26:08:598] [swaudit]       message collecting 64 Bit products ...
(202)     [5] [Mai 09 11:26:08:601] [swaudit]       message collecting 64 Bit product details ...
(204)     [5] [Mai 09 11:26:08:618] [swaudit]           comment: Product: AddressBook Version:  Archticture: x64
(207)     [5] [Mai 09 11:26:08:647] [swaudit]           comment: Product: Connection Manager Version:  Archticture: x64
(210)     [5] [Mai 09 11:26:08:673] [swaudit]           comment: Product: DirectDrawEx Version:  Archticture: x64
(213)     [5] [Mai 09 11:26:08:699] [swaudit]           comment: Product: DXM_Runtime Version:  Archticture: x64
(216)     [5] [Mai 09 11:26:08:725] [swaudit]           comment: Product: Fontcore Version:  Archticture: x64
(219)     [5] [Mai 09 11:26:08:750] [swaudit]           comment: Product: IE40 Version:  Archticture: x64
(222)     [5] [Mai 09 11:26:08:775] [swaudit]           comment: Product: IE4Data Version:  Archticture: x64
(225)     [5] [Mai 09 11:26:08:801] [swaudit]           comment: Product: IE5BAKEX Version:  Archticture: x64
(228)     [5] [Mai 09 11:26:08:827] [swaudit]           comment: Product: IEData Version:  Archticture: x64
(231)     [5] [Mai 09 11:26:08:854] [swaudit]           comment: Product: MobileOptionPack Version:  Archticture: x64
(234)     [5] [Mai 09 11:26:08:880] [swaudit]           comment: Product: MPlayer2 Version:  Archticture: x64
(237)     [5] [Mai 09 11:26:08:927] [swaudit]           comment: Product: Oracle VM VirtualBox Guest Additions 5.1.26 Version: 5.1.26.0 Archticture: x64
(240)     [5] [Mai 09 11:26:08:952] [swaudit]           comment: Product: SchedulingAgent Version:  Archticture: x64
(243)     [5] [Mai 09 11:26:08:978] [swaudit]           comment: Product: WIC Version:  Archticture: x64
(246)     [5] [Mai 09 11:26:09:006] [swaudit]     message collecting 32 Bit product details ...
(276)     [5] [Mai 09 11:26:09:031] [swaudit]         comment: Product: AddressBook Version:  Archticture: x86
(279)     [5] [Mai 09 11:26:09:060] [swaudit]         comment: Product: Connection Manager Version:  Archticture: x86
(282)     [5] [Mai 09 11:26:09:086] [swaudit]         comment: Product: DirectDrawEx Version:  Archticture: x86
(285)     [5] [Mai 09 11:26:09:115] [swaudit]         comment: Product: DXM_Runtime Version:  Archticture: x86
(288)     [5] [Mai 09 11:26:09:140] [swaudit]         comment: Product: Fontcore Version:  Archticture: x86
(291)     [5] [Mai 09 11:26:09:165] [swaudit]         comment: Product: IE40 Version:  Archticture: x86
(294)     [5] [Mai 09 11:26:09:190] [swaudit]         comment: Product: IE4Data Version:  Archticture: x86
(297)     [5] [Mai 09 11:26:09:216] [swaudit]         comment: Product: IE5BAKEX Version:  Archticture: x86
(300)     [5] [Mai 09 11:26:09:241] [swaudit]         comment: Product: IEData Version:  Archticture: x86
(303)     [5] [Mai 09 11:26:09:266] [swaudit]         comment: Product: MobileOptionPack Version:  Archticture: x86
(306)     [5] [Mai 09 11:26:09:291] [swaudit]         comment: Product: MPlayer2 Version:  Archticture: x86
(309)     [5] [Mai 09 11:26:09:319] [swaudit]         comment: Product: opsi-client-agent Version: 4.0.7.15-1 Archticture: x86
(312)     [5] [Mai 09 11:26:09:345] [swaudit]         comment: Product: SchedulingAgent Version:  Archticture: x86
(315)     [5] [Mai 09 11:26:09:370] [swaudit]         comment: Product: WIC Version:  Archticture: x86
(318)     [5] [Mai 09 11:26:09:396] [swaudit]         comment: Product: Microsoft Visual C++ 2008 Redistributable - x86 9.0.21022 Version: 9.0.21022 Archticture: x86
(321)     [5] [Mai 09 11:26:09:417] [swaudit]     message collecting os details ...
(519)     [5] [Mai 09 11:26:09:443] [swaudit]     comment: Product: Windows 10 Enterprise 2016 LTSB (1607) Version: 10.0 Archticture: x64
(521)     [5] [Mai 09 11:26:09:478] [swaudit]       message collecting hotfixes ...
(580)     [4] [Mai 09 11:26:09:902] [swaudit]       Warning: list to loop through is empty - no loop ...
(603)     [5] [Mai 09 11:26:09:906] [swaudit]   comment: convert object list to json array ..
(604)     [5] [Mai 09 11:26:09:914] [swaudit]   message writing results back to service ...
(605)     [5] [Mai 09 11:26:09:918] [swaudit]   comment: mask single quotes by double single quotes before sending ....
(623)     [5] [Mai 09 11:26:09:928] [swaudit]     Execution of: opsiservicecall_auditSoftwareOnClient_setObsolete
(624)     [5] [Mai 09 11:26:09:928] [swaudit]     
(636)     [5] [Mai 09 11:26:10:099] [swaudit]     Execution of: opsiservicecall_auditSoftware_createObjects
(637)     [5] [Mai 09 11:26:10:099] [swaudit]     
(649)     [5] [Mai 09 11:26:10:286] [swaudit]     Execution of: opsiservicecall_auditSoftwareOnClient_createObjects
(650)     [5] [Mai 09 11:26:10:286] [swaudit]     
(664)     [5] [Mai 09 11:26:10:514] [swaudit] Execution of: Files_del_temp
(665)     [5] [Mai 09 11:26:10:514] [swaudit]
(675)     [1] [Mai 09 11:26:10:515] [swaudit] ___________________
(676)     [1] [Mai 09 11:26:10:515] [swaudit] script finished: success
(677)     [1] [Mai 09 11:26:10:515] [swaudit] 0 errors
(678)     [1] [Mai 09 11:26:10:515] [swaudit] 1 warning
(679)     [1] [Mai 09 11:26:10:515] [swaudit]
(680)     [1] [Mai 09 11:26:10:515] [swaudit] installed product: swaudit Version: 4.0.7.6-2
(681)     [1] [Mai 09 11:26:10:515] [swaudit]
(689)     [1] [Mai 09 11:26:10:665] [swaudit] product swaudit set to update
(692)     [1] [Mai 09 11:26:10:665] [swaudit] Update script name:
(693)     [1] [Mai 09 11:26:10:665] [swaudit] we have no update script
(708)     [5] [Mai 09 11:26:10:860] -------- submitted part of log file ends here, see the rest of log file on client ----------


GetMSVersionMap & ReleaseID (Skript lokal ausgeführt)

Code: Alles auswählen

[1] [Mai 09 11:24:31:411] --
[1] [Mai 09 11:24:31:413] --
[1] [Mai 09 11:24:31:414] c:\opsi.org\log\opsi-script-part-Vg49Kd77.log
[1] [Mai 09 11:24:31:418] opsi-script 4.12.0.17 started at 09.05.2018 11:24:30
[1] [Mai 09 11:24:31:419] opsi-script log file with encoding utf8
[3] [Mai 09 11:24:31:420] readconfig failed: Perhaps got defaults
[6] [Mai 09 11:24:31:422] Depot path from readconfig:  p:\
[6] [Mai 09 11:24:31:424] Restoring depot path from backup
[1] [Mai 09 11:24:31:425] Prog: force_min_loglevel: 4
[1] [Mai 09 11:24:31:426] Prog: default_loglevel: 7
[1] [Mai 09 11:24:31:427] Prog: debug_prog: False
[1] [Mai 09 11:24:31:430] Prog: debug_lib: False
[1] [Mai 09 11:24:31:431] Prog: ScriptErrorMessages: False
[1] [Mai 09 11:24:31:433] Prog: AutoActivityDisplay: False
[6] [Mai 09 11:24:31:434] Using new Depot path: 
[1] [Mai 09 11:24:31:435]
[1] [Mai 09 11:24:31:437] ============ Version 4.12.0.17 script "C:\Users\user\Desktop\test.opsiscript"
[1] [Mai 09 11:24:31:440]              used script encoding: cp1252
[1] [Mai 09 11:24:31:441]              used system encoding: cp1252
[1] [Mai 09 11:24:31:443]              start: 2018-05-09  11:24:31
[1] [Mai 09 11:24:31:446]              on client named    "W10-64"
[1] [Mai 09 11:24:31:448]              loggedin user    "user"
[1] [Mai 09 11:24:31:450]              opsi-script running as    "user"
[1] [Mai 09 11:24:31:452]              opsi-script running with admin privileges
[1] [Mai 09 11:24:31:454]              opsi-script running in standard script mode
[1] [Mai 09 11:24:31:457] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Mai 09 11:24:31:459] system infos:
[1] [Mai 09 11:24:31:467] 00-80-27-02-02-03  -  PC hardware address
[1] [Mai 09 11:24:31:469] w10-64  -  IP name
[1] [Mai 09 11:24:31:471] 10.0.3.15  -  IP address
[1] [Mai 09 11:24:31:474] DEU  -  System default locale
[7] [Mai 09 11:24:31:477] Registry started without redirection (64 Bit)
[1] [Mai 09 11:24:31:479] MS Windows 10.0 64 Bit, Edition: Windows Enterprise 2015 LTSB
[1] [Mai 09 11:24:31:481]
[7] [Mai 09 11:24:31:484] Registry started readonly
[7] [Mai 09 11:24:31:486] Registry started without redirection (64 Bit)
[6] [Mai 09 11:24:31:488] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [Mai 09 11:24:31:491] Key closed
[7] [Mai 09 11:24:31:544]
[7] [Mai 09 11:24:31:545] (created string list $GetMSVersionMap$)
[6] [Mai 09 11:24:31:547] Set  $GetMSVersionMap$=GetMSVersionMap
[7] [Mai 09 11:24:31:550] Registry started without redirection (64 Bit)
[7] [Mai 09 11:24:31:552]   The value of the variable "$GetMSVersionMap$" is now:
[7] [Mai 09 11:24:31:554]   (string   0)major_version=10
[7] [Mai 09 11:24:31:557]   (string   1)minor_version=0
[7] [Mai 09 11:24:31:559]   (string   2)build_number=14393
[7] [Mai 09 11:24:31:561]   (string   3)platform_id=2
[7] [Mai 09 11:24:31:562]   (string   4)csd_version=
[7] [Mai 09 11:24:31:564]   (string   5)service_pack_major=0
[7] [Mai 09 11:24:31:566]   (string   6)service_pack_minor=0
[7] [Mai 09 11:24:31:568]   (string   7)suite_mask=256
[7] [Mai 09 11:24:31:569]   (string   8)product_type_nr=1
[7] [Mai 09 11:24:31:572]   (string   9)2003r2=false
[7] [Mai 09 11:24:31:575]   (string  10)ReleaseID=1507
[7] [Mai 09 11:24:31:577]   (string  11)prodInfoNumber=125
[7] [Mai 09 11:24:31:579]   (string  12)prodInfoText=Windows Enterprise 2015 LTSB
[6] [Mai 09 11:24:31:580] Set  $ReleaseID$=GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion] ReleaseID")
[7] [Mai 09 11:24:31:584] Registry started readonly
[7] [Mai 09 11:24:31:585] Registry started with redirection (32 Bit)
[6] [Mai 09 11:24:31:587] Registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]  opened
[6] [Mai 09 11:24:31:591] Key closed
[6] [Mai 09 11:24:31:592]   The value of the variable "$ReleaseID$" is now: "1607"
[1] [Mai 09 11:24:31:599] ___________________
[1] [Mai 09 11:24:31:601] script finished: success
[1] [Mai 09 11:24:31:602] 0 errors
[1] [Mai 09 11:24:31:604] 0 warnings
[1] [Mai 09 11:24:31:607]
[1] [Mai 09 11:24:31:609]


Reicht das so?

larsg
Beiträge: 217
Registriert: 16 Dez 2014, 18:06

Re: OPSI erkennt falsche LTSB Version

Beitragvon larsg » 09 Mai 2018, 11:43

Auf LTSB 2015:
WINST:

Code: Alles auswählen

MS Windows 10.0 64 Bit, Release: 1511, Edition: Enterprise Edition


WMI:

Code: Alles auswählen

wmic os get caption
Microsoft Windows 10 Enterprise



Ich muss diesen Teil meines ersten Posts korrigieren,

es handelte sich bei dem Rechner nicht um "Windows 10 Enterprise LTSB 2015" sondern tatsächlich um "Windows 10 Enterprise 1511".

thomas.besser
Beiträge: 313
Registriert: 09 Sep 2009, 09:40

Re: OPSI erkennt falsche LTSB Version

Beitragvon thomas.besser » 09 Mai 2018, 11:54

Ich kann das Problem bestätigen. Mir ist das schon länger aufgefallen, meine ich hätte das auch mal irgendwo erwähnt, aber egal...

Code: Alles auswählen

(93)      [6] [Mai 09 11:48:17:236] [test_ltsb-version] Set  $MSVersionMap$ = getMSVersionMap
(94)      [7] [Mai 09 11:48:17:241] [test_ltsb-version] Registry started without redirection (64 Bit)
(95)      [7] [Mai 09 11:48:17:242] [test_ltsb-version] Registry started readonly
(96)      [7] [Mai 09 11:48:17:242] [test_ltsb-version] Registry started without redirection (64 Bit)
(97)      [6] [Mai 09 11:48:17:242] [test_ltsb-version] Registry key [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion]  opened
(98)      [6] [Mai 09 11:48:17:242] [test_ltsb-version] Key closed
(114)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   The value of the variable "$MSVersionMap$" is now:
(115)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   0)major_version=10
(116)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   1)minor_version=0
(117)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   2)build_number=14393
(118)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   3)platform_id=2
(119)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   4)csd_version=
(120)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   5)service_pack_major=0
(121)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   6)service_pack_minor=0
(122)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   7)suite_mask=256
(123)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   8)product_type_nr=1
(124)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string   9)2003r2=false
(125)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string  10)ReleaseID=1607
(126)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string  11)prodInfoNumber=125
(127)     [7] [Mai 09 11:48:17:243] [test_ltsb-version]   (string  12)prodInfoText=Windows Enterprise 2015 LTSB
(128)     [6] [Mai 09 11:48:17:250] [test_ltsb-version] Set  $VersionFromRegistry$ = getRegistryVarMapSysnative("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion")

[...]

(239)     [6] [Mai 09 11:48:17:262] [test_ltsb-version] Key closed
(269)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   The value of the variable "$VersionFromRegistry$" is now:
(270)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   0)SystemRoot=C:\Windows
(271)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   1)BuildBranch=rs1_release
(272)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   2)BuildGUID=ffffffff-ffff-ffff-ffff-ffffffffffff
(273)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   3)BuildLab=14393.rs1_release.160715-1616
(274)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   4)BuildLabEx=14393.0.amd64fre.rs1_release.160715-1616
(275)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   5)CompositionEditionID=EnterpriseS
(276)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   6)CurrentBuild=14393
(277)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   7)CurrentBuildNumber=14393
(278)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   8)CurrentMajorVersionNumber=10
(279)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string   9)CurrentMinorVersionNumber=0
(280)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  10)CurrentType=Multiprocessor Free
(281)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  11)CurrentVersion=6.3
(282)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  12)EditionID=EnterpriseS
(283)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  13)InstallationType=Client
(284)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  14)InstallDate=1520251369
(285)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  15)ProductName=Windows 10 Enterprise 2016 LTSB
(286)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  16)ReleaseId=1607
(287)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  17)SoftwareType=System
(288)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  18)UBR=0
(289)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  19)PathName=C:\Windows
(290)     [7] [Mai 09 11:48:17:264] [test_ltsb-version]   (string  20)Customizations=None

Benutzeravatar
d.oertel
uib-Team
Beiträge: 3269
Registriert: 04 Jun 2008, 14:27

Re: OPSI erkennt falsche LTSB Version

Beitragvon d.oertel » 09 Mai 2018, 18:59

Hi,

was der opsi-script hier macht ist folgender WinAPI Call
https://msdn.microsoft.com/de-de/library/windows/desktop/ms724358(v=vs.85).aspx

und der Ausgabe parameter 'pdwReturnedProductType' wird wie im Handbuch beschrieben in Text umgesetzt ....

Aber für Verbesserungsvorschläge bin ich zu haben.

gruß
d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org

larsg
Beiträge: 217
Registriert: 16 Dez 2014, 18:06

Re: OPSI erkennt falsche LTSB Version

Beitragvon larsg » 23 Mai 2018, 16:05

hi,

das heisst also windows liefert selbst die falsche LTSB version zurück, sehr interessant.

gerade bei mir ausprobiert:

Code: Alles auswählen

wmic os get caption

liefert

Code: Alles auswählen

Microsoft Windows 10 Enterprise 2016 LTSB

(was auch korrekt ist)

Code: Alles auswählen

wmic os get OperatingSystemSKU

liefert

Code: Alles auswählen

125 = 0x0000007D = Windows 10 Enterprise 2015 LTSB

(siehe https://msdn.microsoft.com/de-de/library/windows/desktop/ms724358(v=vs.85).aspx)