Add WinRM filter, VNC IP fallback, UDC/CLM process detection

displaypcs.asp:
- Replace "All Time" filter with WinRM status filter
- Options: All, Needs WinRM (Has Equipment), Has WinRM, No WinRM
- Add VNC IP fallback when hostname unavailable

displaypc.asp:
- Add VNC IP fallback when hostname unavailable

api.asp:
- Add isactive field support for installedapps table
- UDC/CLM process detection sets isactive=1 if running, 0 if not

displaymachines.asp:
- Fix to exclude PC machine types (machinetypeid >= 33)
- PCs were incorrectly showing on equipment list

Update-ShopfloorPCs-Remote.ps1:
- Add UDC.exe and PPMon.exe (CLM) process detection
- Set isactive flag based on running process
- Add 10.134.* to TrustedHosts for IP fallback connections

Update-PC-CompleteAsset.ps1:
- Add UDC/CLM process detection for local execution
- Set isactive flag on tracked applications

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-09 16:26:15 -05:00
parent 6b1ef583b4
commit 40e14520e2
6 changed files with 110 additions and 30 deletions

View File

@@ -854,6 +854,30 @@ function Collect-SystemInfo {
}
}
# Detect running processes for UDC and CLM to set isactive
$udcRunning = $false
$clmRunning = $false
$udcProcess = Get-Process -Name "UDC" -ErrorAction SilentlyContinue
if ($udcProcess) { $udcRunning = $true }
$clmProcess = Get-Process -Name "PPMon" -ErrorAction SilentlyContinue
if ($clmProcess) { $clmRunning = $true }
# Update tracked apps with isactive status
foreach ($app in $trackedApps) {
if ($app.appid -eq 2) {
# UDC
$app.isactive = if ($udcRunning) { 1 } else { 0 }
Write-Host " UDC process running: $udcRunning" -ForegroundColor $(if ($udcRunning) { "Green" } else { "Yellow" })
} elseif ($app.appid -eq 4) {
# CLM
$app.isactive = if ($clmRunning) { 1 } else { 0 }
Write-Host " CLM (PPMon) process running: $clmRunning" -ForegroundColor $(if ($clmRunning) { "Green" } else { "Yellow" })
} else {
# Other apps - default to active if installed
$app.isactive = 1
}
}
$systemInfo.TrackedApplications = $trackedApps
Write-Host " Found $($trackedApps.Count) tracked applications for database" -ForegroundColor Cyan
}