Harvest provtool diagnostics, enable ETW channel, skip Timeclock machine#
run-enrollment.ps1: - Enable Provisioning-Diagnostics-Provider/Admin event log before invoking provtool (was disabled by default; no diagnostics survived early runs). - After provtool returns, copy C:\ProgramData\Microsoft\Provisioning\* into C:\Logs\PPKG\ and snapshot HKLM\...\Sessions\* as provisioning-sessions.json, plus export the Admin event channel to Provisioning-Diagnostics-Admin.evtx. Gives us reviewable state without relying on provtool's failure-only diagnostic bundle. - provtool arg order is positional path + /quiet + /source BPRT (verified against ProvEventLog from the PS cmdlet internal call). startnet.cmd / startnet-template.cmd: - Standard-Timeclock sub-type skips the machine-number prompt. Timeclock PCs do not use a machine number so forcing a prompt wasted tech time and left MACHINENUM at the 9999 default anyway. Machine sub-type is unaffected.
This commit is contained in:
@@ -137,8 +137,9 @@ if "%standard_choice%"=="1" set PCSUBTYPE=Timeclock
|
||||
if "%standard_choice%"=="2" set PCSUBTYPE=Machine
|
||||
if "%PCSUBTYPE%"=="" goto standard_menu
|
||||
|
||||
REM --- Machine number (Standard only) ---
|
||||
REM --- Machine number (Standard-Machine only; Timeclock PCs do not use one) ---
|
||||
set MACHINENUM=9999
|
||||
if "%PCSUBTYPE%"=="Timeclock" goto skip_standard_menu
|
||||
echo.
|
||||
set /p MACHINENUM=Enter machine number (digits, or Enter for 9999):
|
||||
if "%MACHINENUM%"=="" set MACHINENUM=9999
|
||||
|
||||
Reference in New Issue
Block a user