Single-site bay-stuck issue at WJ: GE Intune Report IP script filters
Get-NetIPAddress on StartsWith("10.") and posts everything matching
to the GE Tines webhook. Bays at WJ get the PXE LAN 10.9.100.x IP
captured and reported -> GE backend tags bays as on a non-corp 10.x
subnet -> dynamic group eligibility for SFLD policy never matches.
Other GE sites work because their PXE LANs aren't on 10.x at all.
Renumber PXE LAN to RFC1918 172.16.9.0/24 so the GE filter naturally
skips wired PXE addresses without any disable-NIC dance.
Server-side already in flight (netplan dual-bound, dnsmasq scope +
boot URL repointed, blancco preferences + grub.cfg + iPXE GetPxeScript
all sed'd to 172.16.9.1). This commit is the playbook / scripts /
docs side: 109 hits across 35 files sed'd in one shot.
After this lands + boot.wim is rebuilt + bays renumber off DHCP,
the 10.9.100.1 binding will be dropped from netplan as the final
cleanup step.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
39 lines
1.4 KiB
Batchfile
39 lines
1.4 KiB
Batchfile
@echo off
|
|
REM Set-MachineNumber.bat - Wrapper for Set-MachineNumber.ps1
|
|
REM
|
|
REM Looks for the .ps1 in three places, in order:
|
|
REM 1. %~dp0Set-MachineNumber.ps1
|
|
REM - .bat and .ps1 side-by-side (normal desktop-copied case, repo layout)
|
|
REM 2. C:\Users\SupportUser\Desktop\Set-MachineNumber.ps1
|
|
REM - dispatcher-copied location, if this .bat lives somewhere else
|
|
REM 3. C:\Enrollment\shopfloor-setup\gea-shopfloor-collections\Set-MachineNumber.ps1
|
|
REM - canonical enrollment staging copy
|
|
REM
|
|
REM Goto-based dispatch - no nested if blocks, no literal parens in echo lines.
|
|
REM CMD parses "if (...)" blocks by counting parens and will silently eat any
|
|
REM "(" or ")" inside an echo, so keeping the flow flat avoids that class of
|
|
REM syntax bomb entirely.
|
|
|
|
setlocal
|
|
set "PS1=%~dp0Set-MachineNumber.ps1"
|
|
if exist "%PS1%" goto :run
|
|
|
|
set "PS1=C:\Users\SupportUser\Desktop\Set-MachineNumber.ps1"
|
|
if exist "%PS1%" goto :run
|
|
|
|
set "PS1=C:\Enrollment\shopfloor-setup\gea-shopfloor-collections\Set-MachineNumber.ps1"
|
|
if exist "%PS1%" goto :run
|
|
|
|
echo ERROR: Set-MachineNumber.ps1 not found in any of:
|
|
echo %~dp0Set-MachineNumber.ps1
|
|
echo C:\Users\SupportUser\Desktop\Set-MachineNumber.ps1
|
|
echo C:\Enrollment\shopfloor-setup\gea-shopfloor-collections\Set-MachineNumber.ps1
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
|
|
:run
|
|
echo Launching: %PS1%
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%PS1%"
|
|
exit /b %errorlevel%
|