Run Windows Shell Command
  • 1 minute to read
  • Print
  • Share
  • Dark
    Light

Run Windows Shell Command

  • Print
  • Share
  • Dark
    Light

The Run Windows Shell Command action deploys an optional list of selected files and runs a command line on each of the query results entities, which are windows devices.

To configure the Run Windows Shell Command action, do as follows:

  1. From the Action Library, click Run Command, and then click Run Windows Shell Command.

image.png

  1. Define a unique action name.

  2. To use the first connected Microsoft Active Directory (AD) adapter credentials, select the Use stored credentials from the Active Directory adapter checkbox. Otherwise, provide credentials to connect and to execute the command on the windows device: WMI user and password.

    NOTE
    To use this option, you must successfully configure a Microsoft Active Directory (AD) adapter connection.
  3. Specify the command line parameters.
    If you are deploying a script, then specify the command line required in order to invoke the script here. For example: If you attached a script named "test.bat" to the action, then you must also specify "test.bat" (without the quotes) in the Command line parameters field.

  4. To deploy files on the device, use the following controls to upload one or more files:

    • 'Choose file' - to choose a file to be upload.
    • '+' - to upload additional file.
    • 'x' - to remove the uploaded file.
    NOTE
    The uploaded files are deployed to the c:\windows\axonius folder. When uploaded, if a file with the same name already exists, it is overridden by the new uploaded file. Uploaded files are not automatically deleted.
  5. Save the action.


For more details on other available Enforcement actions, see Action Library.
For more details on Enforcement Set configuration, see Enforcement Set configuration.

Was this article helpful?