@@ -198,6 +198,8 @@ def generate_debug_info(self):
198198 info += f"Model: { f .read ().strip ()} \n "
199199 with open ('/sys/devices/virtual/dmi/id/product_sku' , 'r' ) as f :
200200 info += f"SKU: { f .read ().strip ()} \n "
201+ with open ('/sys/devices/virtual/dmi/id/board_name' , 'r' ) as f :
202+ info += f"Board: { f .read ().strip ()} \n "
201203 with open ('/sys/devices/virtual/dmi/id/bios_vendor' , 'r' ) as f :
202204 info += f"BIOS Vendor: { f .read ().strip ()} \n "
203205 with open ('/sys/devices/virtual/dmi/id/bios_version' , 'r' ) as f :
@@ -209,10 +211,12 @@ def generate_debug_info(self):
209211 ps_cmd = (
210212 "powershell -Command "
211213 "\" $cs = Get-CimInstance -ClassName Win32_ComputerSystem; "
214+ "$board = Get-CimInstance -ClassName Win32_BaseBoard; "
212215 "$bios = Get-CimInstance -ClassName Win32_BIOS; "
213216 "Write-Output $cs.Manufacturer; "
214217 "Write-Output $cs.Model; "
215218 "Write-Output $cs.SystemSKUNumber; "
219+ "Write-Output $board.Product; "
216220 "Write-Output $bios.Manufacturer; "
217221 "Write-Output $bios.Name; "
218222 "Write-Output $bios.ReleaseDate\" "
@@ -221,10 +225,11 @@ def generate_debug_info(self):
221225 info += f"Manufacturer: { output [0 ]} \n "
222226 info += f"Model: { output [1 ]} \n "
223227 info += f"SKU: { output [2 ]} \n "
224- info += f"BIOS Vendor: { output [3 ]} \n "
225- info += f"BIOS Version: { output [4 ]} \n "
228+ info += f"Board: { output [3 ]} \n "
229+ info += f"BIOS Vendor: { output [4 ]} \n "
230+ info += f"BIOS Version: { output [5 ]} \n "
226231 # Blank line in the output for some reason
227- info += f"BIOS Date: { output [6 ]} \n "
232+ info += f"BIOS Date: { output [7 ]} \n "
228233 except Exception as e :
229234 info += f"System Info Error: { type (e ).__name__ } : { e } \n "
230235
0 commit comments