Skip to main content

Active Directory Hygiene

This Integration is part of the ActiveDirectoryHygiene Pack.#

Use this Integration to run commands on an Active Directory server.

Configure ActiveDirectoryHygiene on Cortex XSOAR#

  1. Navigate to Settings > Integrations > Servers & Services.

  2. Search for ActiveDirectoryHygiene.

  3. Click Add instance to create and configure a new integration instance.

    ParameterRequired
    Active Directory Computer NameTrue
    UsernameTrue
    PasswordTrue
  4. Click Test to validate the URLs, token, and connection.

Commands#

You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

active-directory-run-script#


Runs a script on the Active Directory server.

Base Command#

active-directory-run-script

Input#

Argument NameDescriptionRequired
scriptThe Script to run.Required

Context Output#

PathTypeDescription
ActiveDirectoryHygiene.stdoutString
ActiveDirectoryHygiene.stderrString
ActiveDirectoryHygiene.returnCodeNumber

Command Example#

!active-directory-run-script script="echo a"

Context Example#

{
"RunPowershellCommand": {
"returnCode": 0,
"stderr": "",
"stdout": "a\n"
}
}

Human Readable Output#

Results#

returnCodestderrstdout
0a