1. Knowledge Base
  2. Support and Troubleshoot

Using AFIsEncrypted to Identify Actifile-Encrypted Files

AFIsEncrypted is a diagnostic utility that helps you check whether files on your machine have been encrypted by Actifile. This article outlines how to use the tool to get detailed encryption status for files and folders.

When to Use AFIsEncrypted

Use this tool when you need to:

  • Confirm whether a file is encrypted by Actifile.
  • Identify which tenant and classifier encrypted a file.
  • Ensure no files are left encrypted before migrating data or uninstalling Actifile.
  • Troubleshoot other decryption issues.

How to Run AFIsEncrypted

Step 1. Download and unzip the archive with the tool: AFIsEncrypted

You’ll find two files inside the folder:

  • AFIsEncrypted.exe
  • Entities.dll
image (1)

Step 2. Open the command line: press the Windows key, type cmd, then press Enter.

    Step 3. Navigate to the AFIsEncrypted folder using

    cd YOUR_PATH

    Example:

    cd C:\Actifile\AFIsEncrypted

    Note: If Actifile is running and file upload blocking is active, the tool might not be able to analyze certain files. Open Task Manager and stop Actifile processes before proceeding.

    Step 4. Run the appropriate command (see Available Parameters & Examples below).

    Output Format

    Each result includes the following (in this order):

    • FileName: File path and name
    • Status: Whether the file is encrypted

    If the file is encrypted:

    • Version: Actifile encryptor version
    • TenantId: Tenant ID used for encryption. You can find it on the Tenants page of the Partner Portal:
    unnamed-Apr-03-2025-03-29-31-9387-PM
    • Hash: File hash
    • Filters: Classifier ID (internal use for support)
    • Error: Any error messages returned

    Available Parameters & Examples

    See all supported commands

    AFIsEncrypted.exe

    Example:

    unnamed (1)-Apr-03-2025-03-30-09-2164-PM

     

    Check a Single File

    AFIsEncrypted “YOUR_FOLDER_PATH\YOUR_FILE_NAME\”

    Example:

    AFIsEncrypted "C:\Actifile Encryption Test\Finland SSN.txt”
    unnamed (2)-Apr-03-2025-03-31-15-6927-PM

     

    Check All Files in a Folder

    AFIsEncrypted “YOUR_FOLDER_PATH\*.*\”

    Example:

    AFIsEncrypted "C:\Actifile Encryption Test\*.*\"
    unnamed (3)-3

     

    Check Files in a Folder and All Subfolders

    AFIsEncrypted "YOUR_PATH\*.*" /r 

    Example:

    AFIsEncrypted "C:\MyFolder\*.*" /r
    unnamed (4)-2

     

    Filter by File Extension

    AFisEncrypted YOUR_PATH\*.YOUR_FILE_EXTENSION

    Example:

    AFisEncrypted “C:\Actifile Encryption Test\*.docx”
    unnamed (5)-2

     

    Highlight Files by Hash

    Use this command to scan all files in a folder and flag any that match a specific hash. If a file’s hash matches the one you provide, the tool will add a message: Input hash detected.

    AFIsEncrypted "YOUR_PATH\*.*" /Hash=YOUR_HASH

    Example:

    AFIsEncrypted "C:\MyFolder\Actifile Encryption Test\*.*" /Hash=589D85030EAAF34C063A0E4AF90EF120FD4D4686
    unnamed (6)-1

     

    Combine Parameters

    You can combine filters like file type, recursion, and hash detection.

    AFIsEncrypted "C:\MyFolder\*txt" /r /Hash=589D85030EAAF34C063A0E4AF90EF120FD4D4686

    This command will:

    • Search all .txt files in the folder and subfolders.
    • Flag files that match the provided hash.
    unnamed (7)

    Check Command Status with %errorlevel%

    After running a command, you can quickly check the result by typing:

    echo %errorlevel%

    Here’s what the values mean:

    • 0: No encrypted files found
    • 1: At least one encrypted file found
    • 2: At least one file with the given hash found
    • 3: An error occurred
    unnamed (8)

    View the Output in Excel

    Want to explore the results more easily? Here’s how to open them in Excel.

    Append the following to the end of your command:

    >> YOUR_FILE_NAME.csv

    Example:

    AFIsEncrypted "C:\MyFolder*.*" /r >> Output.csv
    image-13-2

    This will create a file named Output.csv in the same folder where the AFIsEncrypted.exe tool is located. Double-click the file — it will automatically open in Excel.

    image-1-1