diff --git a/scripts/Update-PC-CompleteAsset.ps1 b/scripts/Update-PC-CompleteAsset.ps1 index 0aff324..f1a64f5 100644 --- a/scripts/Update-PC-CompleteAsset.ps1 +++ b/scripts/Update-PC-CompleteAsset.ps1 @@ -707,7 +707,19 @@ function Get-PCType { return "Heat Treat" } - # Part Marker Detection: Part marking software + # Part Marker Detection: By machine number (0612, 0613, 0615, 8003) or software + $machineNo = Get-GEMachineNumber -Hostname $env:COMPUTERNAME + $isPartMarkerMachine = $false + if ($machineNo) { + # Check if machine number matches Part Marker machines (0612, 0613, 0615, 8003) + if ($machineNo -match "^0?(612|613|615|8003)$" -or $machineNo -match "^M?(612|613|615|8003)$") { + $isPartMarkerMachine = $true + Write-Host " [OK] Part Marker machine detected (Machine #$machineNo) - Part Marker PC" -ForegroundColor Cyan + return "Part Marker" + } + } + + # Also check for Part Marker software $hasPartMarker = $installedApps -match "Part\s*Mark|PartMark|Telesis|MECCO|Pryor|Gravotech|SIC Marking" if ($hasPartMarker) { Write-Host " [OK] Part Marker software detected - Part Marker PC" -ForegroundColor Cyan