@echo off
title GBTI Lockout Investigator - build
echo ============================================
echo  Building GBTI-Lockout-Investigator.exe
echo  (pure LDAP - no PowerShell needed)
echo ============================================
where python >nul 2>nul
if errorlevel 1 (
  echo Python 3 not found. Install Python from python.org and re-run.
  pause
  exit /b 1
)
python -m pip install --upgrade pyinstaller ldap3 dnspython >nul
python -m PyInstaller --onefile --windowed --name GBTI-Lockout-Investigator gbti_lockout_app.py
echo.
echo Done! GBTI-Lockout-Investigator.exe is in this folder.
echo If Symantec flags it, mark it as Trusted - it only talks LDAP to your DCs.
pause