Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Marcos_Vieira1
Contributor

Capsule Docs ProtectionTool.exe

I have found a tool called ProtectionTool.exe within the folders created in Windows 10 by the installation of the CPDS.exe.

I know that there is a SDK but I think this tool will be easier to use in the process of Protecting a bunch of files.

MY QUESTION IS: What is the format of the json file it uses to do its job?

PS: I have already tried the -g option but it didn´t create the expected json file.

Typing ProtectionTool.exe --help shows:

C:\Program Files (x86)\CheckPoint\Document Security\CapsuleDocs2>ProtectionTool.exe --help
- Capsule Docs Cmd Tool options
Usage:
ProtectionTool.exe [OPTION...]

Information and Help options:
-i, --protInfo arg Displays policy information for the given file
-d, --debug Enables detailed logging
-g, --generate Runs a script to help generate a configuration file
-h, --help Shows detailed information on all the commands

Actions options:
-p, --protect arg Receives a path to a json config file describing which directories to protect and with what policy
-u, --unprotect arg Receives a path to a json config file describing which directories to unprotect and with what policy

0 Kudos
4 Replies
_Val_
Admin
Admin

-g option generates a regular script, not a json file

0 Kudos
Marcos_Vieira1
Contributor

Ok. Do you have a sample of such script? Or a sample of a json file?

0 Kudos
_Val_
Admin
Admin

No, I do not. I think the best would be to reach out to TAC for assistance to get sample files. However, some information is available with --help flag from the tool itself. 

0 Kudos
Marcos_Vieira1
Contributor

Hi,

       I was successful running the "ProtectionTool - g" and generating the file (in the end it asks for the path to save the file; I was typing the folder only, but it must include also the name of the file). It creates a file with content similar to the text below:

[
          {
                  "directories": {
                          "C:\\Temp\\CDFiles01": {
                                  "fileExtensions": [
                                          ".docx"
                                  ],
                                  "recursiveProtection": true
                  },
                  "C:\\Temp\\CDFiles02": {
                          "fileExtensions": [
                                  ".pdf"
                          ],
                          "recursiveProtection": true
                  }
          },
          "policyName": "TESTING",
          "users": [
                  "user01@hotmail.com",
                  "CDGroup01"
                  ]
          }
]

 

You can copy and paste the text above and save as a json file to use with the ProtectionTool (of course changing the e-mails, folders, policies, etc.. according to you environment).

0 Kudos