11# Update tbComputerTargetDetail for WSUS to add more details in OSDescription field (based on https://www.wsus.de/windows-editionen-anzeigen/)
22# See also https://server-essentials.com/support/windows-10-vista-wsus-not-updating
3+ # See also https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-wusp/5f216289-0876-4dc3-ad85-e1d61a9e7ce1#Appendix_A_13
34
45Param (
56 [Parameter ()][String ]$SQLServerInstance = ' \\.\pipe\MICROSOFT##WID\tsql\query' ,
@@ -239,7 +240,9 @@ $OSDescriptions = @(
239240 ProductName = ' Windows'
240241 ProductVersions = $ClientProductVersions
241242 ProductTypes = @ (
243+ # Based on https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-operatingsystem
242244 # Based on https://learn.microsoft.com/en-us/mem/intune/fundamentals/filters-device-properties
245+ # Based on https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getproductinfo
243246 @ {
244247 ProductEdition = ' S'
245248 NewProductTypes = @ (178 )
@@ -344,6 +347,18 @@ $OSDescriptions = @(
344347 ProductEdition = ' IoT Enterprise'
345348 NewProductTypes = @ (188 )
346349 }
350+ @ {
351+ ProductEdition = ' IoT Enterprise LTSC'
352+ NewProductTypes = @ (191 )
353+ }
354+ @ {
355+ ProductEdition = ' Mobile'
356+ NewProductTypes = @ (104 )
357+ }
358+ @ {
359+ ProductEdition = ' Mobile Enterprise'
360+ NewProductTypes = @ (133 )
361+ }
347362 @ {
348363 ProductEdition = ' Team'
349364 NewProductTypes = @ (119 )
@@ -365,11 +380,7 @@ $OSDescriptions = @(
365380 NewProductTypes = @ (161 )
366381 }
367382 @ {
368- ProductEdition = ' Pro N for Workstations'
369- NewProductTypes = @ (162 )
370- }
371- @ {
372- ProductEdition = ' Pro N for Workstations'
383+ ProductEdition = ' Pro for Workstations N'
373384 NewProductTypes = @ (162 )
374385 }
375386 @ {
@@ -386,6 +397,16 @@ $OSDescriptions = @(
386397 }
387398 )
388399 }
400+ @ {
401+ ProductName = ' Windows RT'
402+ ProductVersions = $ClientProductVersions
403+ ProductTypes = @ (
404+ @ {
405+ ProductEdition = ' '
406+ NewProductTypes = @ (97 )
407+ }
408+ )
409+ }
389410 @ {
390411 ProductName = ' Windows Server'
391412 ProductVersions = $ServerProductVersions
@@ -407,6 +428,10 @@ $OSDescriptions = @(
407428 ProductEdition = ' Datacenter Evaluation'
408429 NewProductTypes = @ (80 , 159 )
409430 }
431+ @ {
432+ ProductEdition = ' Datacenter: Azure Edition'
433+ NewProductTypes = @ (407 )
434+ }
410435 @ {
411436 ProductEdition = ' Foundation'
412437 NewProductTypes = @ (33 )
@@ -418,8 +443,8 @@ $OSDescriptions = @(
418443 )
419444 }
420445 @ {
421- ProductName = ' Hyper-V Server'
422- ProductVersions = $OSServerVersions
446+ ProductName = ' Microsoft Hyper-V Server'
447+ ProductVersions = $ServerProductVersions
423448 ProductTypes = @ (
424449 @ {
425450 ProductEdition = ' '
0 commit comments