Write-Host "=== Información del Hardware y SO ===" -ForegroundColor Magenta
# Fecha BIOS (Fabricación)
$biosInfo = Get-WmiObject -Class Win32_BIOS
$fechaBIOS = [Management.ManagementDateTimeConverter]::ToDateTime($biosInfo.ReleaseDate)
Write-Host "`n[BIOS] Fecha estimada de fabricación: $($fechaBIOS.ToString('yyyy-MM-dd'))" -ForegroundColor Cyan
# Fecha instalación SO
$osInfo = Get-WmiObject -Class Win32_OperatingSystem
$fechaInstalacion = [Management.ManagementDateTimeConverter]::ToDateTime($osInfo.InstallDate)
Write-Host "[SO] Fecha de instalación: $($fechaInstalacion.ToString('yyyy-MM-dd HH:mm:ss'))" -ForegroundColor Green
# Último inicio
$fechaInicio = [Management.ManagementDateTimeConverter]::ToDateTime($osInfo.LastBootUpTime)
Write-Host "[Sistema] Último arranque: $($fechaInicio.ToString('yyyy-MM-dd HH:mm:ss'))" -ForegroundColor Yellow