RSA Authention Manager Prime fails with the error "Files was unexpected at this time" while attempting to execute edtool.bat
2 years ago
Originally Published: 2015-12-04
Article Number
000042195
Applies To
RSA Product Set: SecurID
RSA Product/Service Type: Authentication Manager Prime
RSA Version/Condition: 8.1.0
Platform: Windows
O/S Version: Server 2012 R2
Issue
When attempting to execute edtool.bat the error message below is displayed.
Files was unexpected at this time.

User-added image
Cause
This is caused when trying to run edtool.bat on a Windows 2012 server.
Running the tool on a Windows 2008 server or below will work without error.
Resolution
To resolve the issue you will need to edit the edtool.bat file before running it via command line.

Typically the file edtool.bat is located under C:\RSA\SSP\edtool.bat, however it may be in a different install folder. 

Edit edtool.bat with Notepad++ or Notepad and then locate the following line:
if "%JAVA_HOME%" == "" goto noJavaHome

Remove the quotes around "%JAVA_HOME%" to match what you see below.
if %JAVA_HOME% == "" goto noJavaHome

Save the changes to edtool.bat and then run it again.