Add Part Marker detection by machine number
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user