Knowledge Base
v5.13.0
Search this version
Knowledge Base
Knowledge Base
Configuration and Settings
Errors and Troubleshooting
Features and Functionality
Licensing, Setup and Deployment
Updates, Patches and Bug Fixes
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How does the Post Actions feature work?
Copy Markdown
Open in ChatGPT
Open in Claude
MetaDefender Core V4.8.0 and all subsequent releases include the Post Actions feature:
- This feature allows you to define a Post Action which is then invoked through a command line executable or script.
- This executable/script will be called following each scan.
- Additional documentation for this feature can be found here: $link[page,314553,auto$].
The sample in the images below is a Powershell script. For this script to work properly, we must call the Powershell executable via the Inventory>Post Actions tab in the MetaDefender Core Management Console, as follows:
Once on the Post Actions screen, we click Add Action before entering the chosen name and full path to the executable, as illustrated in the screenshots below.
You will need to specify the location from where Powershell is running in your system, followed by:
- ExecutionPolicy Bypass
- -File <PathToYourScriptFile>
We created a sample Powershell script that sorts the files according to their results - either Allowed or Blocked.
- The script is called after the scan is finished.
Input:
- The current scan results JSON from STDIN.
- The full path to the currently scanned file as the last argument on the command line.
Output:
The script has 5 possible return values:
- 0 - success
- 1 - JSON parse error, the script was unable to parse the expected JSON from STDIN
- 2 - copy error, the file copy failed
- 3 - file path of the currently scanned file is invalid
- 4 - the destination path of either allowed, blocked or both is invalid.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
How does the External Scanners feature work?null
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
On This Page