@echo off REM Install-PCDMISSettings.bat - restore a PC-DMIS backup (SAME version). REM REM Run AS ADMINISTRATOR / at imaging. Imports the registry hive + data/probe REM files, grants the operator write on the data dir, and auto-applies the REM legacy->new FQDN rewrite (rd.ds.ge.com -> wjs.geaerospace.net). REM REM Install-PCDMISSettings.bat "" REM Install-PCDMISSettings.bat "" /replace REM REM CROSS-VERSION upgrade (e.g. 2016 backup -> 2026 bay): do NOT use this - REM use the 2026 Settings Editor IMPORT feature, which remaps the older layout. REM This script does a verbatim same-version restore. setlocal set "HERE=%~dp0" if "%~1"=="" ( echo Usage: %~nx0 "^" [/replace ^ ^] pause exit /b 1 ) set "ZIP=%~1" set "PS=powershell.exe -NoProfile -ExecutionPolicy Bypass -File ""%HERE%Install-PCDMISSettings.ps1"" -BackupPath ""%ZIP%""" if /i "%~2"=="/replace" ( if "%~4"=="" ( echo /replace needs ^ ^ & pause & exit /b 1 ) %PS% -ReplaceFrom "%~3" -ReplaceTo "%~4" ) else ( %PS% ) echo. pause