Kofax Server Path Update. For switching a workstation between environments.
@Echo Off
Rem *********************************************************************************
Rem ** **
Rem ** Ensure the ServerPath variable below is set to the correct Kofax ServerPath **
Rem ** Ensure the correct service name is used below, based upon the version **
Rem ** Ensure all Kofax/Ascent Capture applications are closed **
Rem ** StationID file for %COMPUTERNAME% will be deleted from ServerPath **
Rem ** ACDeployUtil will be used to reconnect Kofax Workstation to the ServerPath **
Rem ** Restart Kofax/Ascent Capture Service **
Rem ** **
Rem *********************************************************************************
Set ServerPath=\\RICHARDJ2\CaptureSV
Set ServiceName=Ascent Capture Service
Set MigrationExePath=C:\Program Files\Kofax\CaptureSS\ServLib\Bin
@Echo Please ensure all Kofax/Ascent Capture applications are closed on this workstation.
@Echo.
Pause
"%MigrationExePath%\Scansation.KofaxCapture.MigrationUtility.exe" /s:"%COMPUTERNAME%^&*"> %TMP%\Sanitise.txt
SET /p SANITISED= < %TMP%\Sanitise.txt
@Echo Attempting to delete StationID file for %COMPUTERNAME% from %ServerPath%\StationID.
Del /F %ServerPath%\StationID\%SANITISED%
ACDeployUtil /ServerPath:%ServerPath%
Echo.
Net Stop "%ServiceName%"
Net Start "%ServiceName%"
Echo.
Pause