Pair of operational tools used when a wax/trace bay's cal apply fails (218-378-13 series cal Setup.exe crash, or any future variant). Were living in /home/camp/pxe-images/ on the workstation; promoting to the repo so they ship with the codebase, get version-controlled, and can be pushed onto each PXE server's enrollment share via the standard sync flow. debug-waxtrace-cal.ps1 (+ .bat launcher): - 9-section forensic walkthrough that runs on the bay as admin. - Autodetects FormTracePak install location, dumps data/ dir contents, finds + mounts the per-asset cal ISO, lists its contents, checks the on-disk 09-Setup-WaxAndTrace.ps1 for the direct-copy bypass marker, greps the imaging-time log for cal lines, pulls the last 24h of .NET Runtime / Application Error / WER events related to Setup.exe. - Output: C:\Logs\WaxTrace\debug-waxtrace-cal.log fix-waxtrace-cal.ps1 (+ .bat launcher): - Idempotent recovery: mounts the bay's cal ISO, unconditionally copies data\* into FormTracePak's data dir, renames any filename containing ' _' (space-underscore) to drop the embedded space, clears read-only, dismounts. Works on both 218-378-13 (broken filenames) and 218-458A (clean filenames) since the rename is a no-op when no space is present. Bypasses the buggy vendor cal Setup.exe entirely. - Output: C:\Logs\WaxTrace\fix-waxtrace-cal.log Both already pushed to \\172.16.9.1\enrollment\tools\ on both PXE servers earlier today; this commit lands them in the repo as the source of truth so future PXE server builds + ad-hoc rsyncs pick them up automatically. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
13 lines
496 B
Batchfile
13 lines
496 B
Batchfile
@echo off
|
|
REM fix-waxtrace-cal.bat - Double-click launcher for fix-waxtrace-cal.ps1.
|
|
REM Right-click "Run as administrator" so files can land under Program Files.
|
|
REM Forwards args, e.g.:
|
|
REM fix-waxtrace-cal.bat -Asset WJF00159
|
|
REM If no -Asset is passed the script reads C:\Enrollment\machine-number.txt.
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0fix-waxtrace-cal.ps1" %*
|
|
echo.
|
|
echo Done. Full log: C:\Logs\WaxTrace\fix-waxtrace-cal.log
|
|
echo.
|
|
pause
|
|
exit /b %ERRORLEVEL%
|