MSEndpointMgr / Reporting

Repository for Intune Reporting using Azure Monitor, Log Analytics and Azure Workbooks
https://msendpointmgr.com
GNU General Public License v3.0
41 stars 19 forks source link

Fix Dell BIOS Handling #3

Closed MarkusBux closed 2 years ago

MarkusBux commented 2 years ago

Fixes an issue in case for one DELL SKU is more then one entry present.

As of now this is happening for the DELL SKU 06DA.

MetadataError: 
Line |
   7 |  [DateTime]$CurrentDellBIOSDate = $DellBIOSLatest.releaseDate
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.DateTime".
PS /Users/markusbux/Downloads> $DellBIOSLatest = $DellBiosXML.Manifest.SoftwareComponent | Where-Object {($_.name.display."#cdata-section" -match "BIOS") -and ($_.SupportedSystems.Brand.Model.SystemID -match "06DA")}
PS /Users/markusbux/Downloads> $DellBIOSLatest

schemaVersion    : 2.0
identifier       : 525fa033-da05-4e3d-8d25-6dfef64df25c
packageID        : 6HK93
releaseID        : 6HK93
hashMD5          : a25eb88408a22b46d24d3c1207632ddb
path             : FOLDER07782405M/1/Precision_7x10_1.23.3.exe
dateTime         : 2021-06-24T09:46:36Z
releaseDate      : October 04, 2021
vendorVersion    : 1.23.3
dellVersion      : 1.23.3
packageType      : LWXP
size             : 13949368
Name             : Name
ComponentType    : ComponentType
Description      : Description
Category         : Category
SupportedDevices : SupportedDevices
LUCategory       : LUCategory
SupportedSystems : SupportedSystems
ImportantInfo    : ImportantInfo
Criticality      : Criticality

schemaVersion    : 2.0
identifier       : 7165c022-0a09-4417-be96-ba9f0a9a285a
packageID        : GNW66
releaseID        : GNW66
hashMD5          : 9f96c060d6262619adf422367308b663
path             : FOLDER04420105M/1/Precision_7x10_1.13.6.exe
dateTime         : 2017-06-01T03:52:25Z
releaseDate      : March 31, 2020
vendorVersion    : 1.13.6
dellVersion      : 1.13.6
packageType      : LWXP
size             : 9603896
Name             : Name
ComponentType    : ComponentType
Description      : Description
Category         : Category
SupportedDevices : SupportedDevices
LUCategory       : LUCategory
SupportedSystems : SupportedSystems
ImportantInfo    : ImportantInfo
Criticality      : Criticality
JankeSkanke commented 2 years ago

Pending test and verify

JankeSkanke commented 2 years ago

Fixed