"CredentialGenerator.bat" file is not generating encrypted credential file for Script lookup plugin

book

Article ID: 241004

calendar_today

Updated On:

Products

Data Loss Prevention

Issue/Introduction

When you run "CredentialGenerator.bat" file to generate encrypted credential file required to deploy Script lookup plugin, it gives error as '""' is not recognized as an internal or external command, operable program or batch file.

Cause

This error can happen if java path is not set properly in "CredentialGenerator.bat" file or if the batch file is corrupt.

Environment

DLP enforce 15.x

Resolution

Set java path as below in batch file  -

For DLP 15.7 and below -

For example,

"C:\Program Files\Symantec\DataLossPrevention\ServerJRE\1.8.0_202\bin\java"

For DLP 15.8 -

For example,

"C:\Program Files\AdoptOpenJDK\jre-8.0.275.1-hotspot\bin\java"

Save the batch file and run below command again to generate encrypted credential file -

e.g.

CredentialGenerator.bat "C:\temp\MyCredentials.txt" "C:\temp\MyCredentialsEncrypted.txt"

This should generate encrypted credential file now.

If it still gives same error, "CredentialGenerator.bat" file could be corrupt and needs to be replaced with another working file. Copy of the "CredentialGenerator.bat" is attached. 

 

 

Attachments

1652773524570__CredentialGenerator.bat get_app