From 895cd3d1d81e4407a393402da709b0608e6bd6ba Mon Sep 17 00:00:00 2001 From: cproudlock Date: Tue, 9 Dec 2025 13:19:47 -0500 Subject: [PATCH] Add Part Marker detection by machine number MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part Marker PCs identified by: - Machine numbers: 0612, 0613, 0615, 8003 - Software: Part Mark, Telesis, MECCO, Pryor, Gravotech, SIC Marking 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- scripts/Update-PC-CompleteAsset.ps1 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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