- NetworkDriveManager.ps1: S: drive repair utility - winrm-setup-package: Invoke-RemoteTask helper + Setup-WinRM.bat + HTML guide - remote-execution/udc: UDC_Update.ps1 and batch wrappers for updating DNC controllers on shop-floor PCs - Invoke-RemoteMaintenance.ps1: substantial rework (~1650 lines) - Schedule-Maintenance and complete-asset minor updates - Bump edncfix gitlink to v1.6.0 (2748bfa) - .gitignore: block inventory.csv/xlsx (CUI) and logs_*.txt (per-host logs) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
33 lines
1.2 KiB
Batchfile
33 lines
1.2 KiB
Batchfile
@echo off
|
|
REM Run-UpdateDNCMXHosts.bat
|
|
REM Updates FtpHostPrimary/Secondary in DNC\MX registry on remote shopfloor PCs
|
|
REM Usage:
|
|
REM Run-UpdateDNCMXHosts.bat -> runs on all PCs in shopfloor-pcs.txt
|
|
REM Run-UpdateDNCMXHosts.bat G5N9PWM3ESF -> runs on a single PC (for testing)
|
|
|
|
echo ============================================================
|
|
echo UpdateDNCMXHosts - FTP Host Migration
|
|
echo tsgwp00525.us.ae.ge.com -^> tsgwp00525.wjs.geaerospace.net
|
|
echo ============================================================
|
|
echo.
|
|
|
|
if not "%~1"=="" (
|
|
echo Target: %~1
|
|
echo.
|
|
powershell.exe -ExecutionPolicy Bypass -File "%~dp0Invoke-RemoteMaintenance.ps1" -ComputerName "%~1" -Task UpdateDNCMXHosts -LogFile
|
|
) else (
|
|
if not exist "%~dp0shopfloor-pcs.txt" (
|
|
echo ERROR: shopfloor-pcs.txt not found in %~dp0
|
|
echo Either place shopfloor-pcs.txt in the same folder or pass a PC name:
|
|
echo Run-UpdateDNCMXHosts.bat G5N9PWM3ESF
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo Target: shopfloor-pcs.txt
|
|
echo.
|
|
powershell.exe -ExecutionPolicy Bypass -File "%~dp0Invoke-RemoteMaintenance.ps1" -ComputerListFile "%~dp0shopfloor-pcs.txt" -Task UpdateDNCMXHosts -LogFile
|
|
)
|
|
|
|
echo.
|
|
pause
|