Files
pxe-server/playbook/shopfloor-setup/gea-shopfloor-waxtrace/scripts/bay-config.csv
cproudlock b8bb00e2fe Wax/Trace triad: arrow-key bay picker + S: backup path
Two operator-UX improvements for the Backup / Export / Install triad.

1. Backup target moves from \\tsgwp00525\...\formtracepac to S:\2 WJ Scans
   Record Retention\backup\waxtrace\<asset>\. S: is mapped at shopfloor
   imaging time and stays mapped post-categorization, so the same default
   path works whether the operator runs the backup on an old bay (manual
   pre-image capture) or a freshly imaged one. The destination directory
   is created if missing.

2. New Select-WaxtraceAsset.ps1 - arrow-key bay picker patterned after
   the WinPE select-waxtrace-asset.ps1. Reads bay-config.csv (sibling
   file), shows asset_tag + ftpak_version + model + user_id per row, and
   returns the selected asset_tag via stdout. Falls back to a manual
   entry prompt if the CSV is missing or the operator picks "Other".

   Backup / Export / Install now invoke the picker when interactive AND
   bay-config.csv is alongside the script. Non-interactive paths
   (qga / SYSTEM / scheduled task) keep silently defaulting to
   COMPUTERNAME so unattended runs are unchanged.

   Export gained an -AssetNumber parameter and stamps it into the output
   CSV filename so multiple inventories from the same host stay
   distinguishable when the operator is auditing several bays in a row.

bay-config.csv is copied into the scripts\ dir so the picker has a
source of truth that ships next to the scripts (and into pxe-images
for tech distribution).

Smoke tested on win11 VM: all four PS1 parse-clean, non-interactive
backup path still produces a valid ZIP (silent COMPUTERNAME default),
picker handles missing-CSV gracefully (manual-entry fallback). The
arrow-key UX itself is operator-verifiable only on a real terminal.
2026-05-24 07:41:25 -04:00

522 B

1asset_tagftpak_versionmodeluser_id
2WJF001596.103AVANT3974839712
3WJRP36895.510CV-45003744284509
4WJRP26606.0CV-45002365986521
5WJRP26596.0CV-45002709054503
6WJF005456.213AVANT3878777362
7WJRP36385.602CV-45000720778210
8WJF000526.103AVANT3270314998
9WJF000846.103AVANT1476212857
10WJF000836.103AVANT2934506987
11WJRP30256.0CV-32002292822471
12WJF001976.104AVANT1191612605
13WJRP48026.002AVANT0920866935
14WJRP23476.0CV-45003585172946
15WJRP20356.0CV-45002292822471
16WJRP23356.0CV-45001780916688