> ## Documentation Index
> Fetch the complete documentation index at: https://bloodhound.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Run an On Demand Scan

> Learn how to run an on demand scan with a collector client in BloodHound Enterprise.

![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6)

## Purpose

This article describes how to run an unscheduled scan to perform a one-time, immediate data collection with a collector client. Administrators may use it during collector client deployment, one-time collections, or troubleshooting.

## Prerequisites

The following prerequisites are required to run an on demand scan:

* An existing SharpHound Enterprise or AzureHound Enterprise [collector client](https://bloodhound.specterops.io/collect-data/enterprise-collection/create-collector.md)
* Logged in as a user assigned a [role](https://bloodhound.specterops.io/manage-bloodhound/auth/users-and-roles.md) authorized to run a collector client on demand scan

## Process

The process to run an on demand scan consists of the following steps:

**1. Open the Manage Clients page**

In the left menu, click **Administration** > **Manage Clients**.

**2. Choose a collector client**

On the client that you want to schedule, click the  icon in the *Action* column and select **On Demand Scan**.

> [!TIP]
>
> Verify the client is online by validating **Status** is **Ready**

![A collector client with the Action menu open and On Demand Scan selected](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/run-on-demand-scan.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=af70d3c986c35b3d6fbe7e831b8649cc)

**3. Configure the scan**

Configure the following details in the **On Demand Scan** window:

* **Data**: The [type of data](https://bloodhound.specterops.io/collect-data/permissions.md) that the scan collects, see:
  * [SharpHound Data and Permissions](https://bloodhound.specterops.io/collect-data/sharphound-data-permissions.md)
  * [AzureHound Data and Permissions](https://bloodhound.specterops.io/collect-data/azurehound-data-permissions.md)
* **Advanced Options**:

  > [!NOTE]
  >
  > If you need SharpHound Enterprise to collect outside the SharpHound service account domain, expand **Advanced Options** and configure **Scope Collection to Multiple Domains**.
  >
  > To collect from every domain that trusts the SharpHound service account domain, enable **Collect from all domains trusting the SharpHound service account domain, including transitively**.

  ![A collector client On Demand Scan configuration window](https://mintcdn.com/specterops/_SFxVE2HYJFNfxOf/images/data_collectors/configure-on-demand-scan.png?fit=max\&auto=format\&n=_SFxVE2HYJFNfxOf\&q=85\&s=5a770ddc51da7e1dd9885489bc1174a6)

  | **Option** | **Description** |
  | - | - |
  | Data (Required) | Multi-select option for the different types of collection available. See [SharpHound Data Collection and Permissions](https://bloodhound.specterops.io/collect-data/permissions.md) for details on the data collected and permissions necessary for each. |
  | Domain controller | By default, SharpHound automatically selects a Domain Controller for LDAP queries. Specifying a Domain Controller hostname or FQDN here will define the default value used for this scan or schedule. If not set, SharpHound will utilize the value set in the client configuration. We recommend not configuring a Domain Controller manually. |
  | Target Local Group and/or User Session Collection by Organizational Unit | Define one or more OUs within a domain to only collect Local Group and Session data from computers contained within the specified OUs and their descendants. If left empty, *SharpHound will collect from all OUs.* If defined, the schedule or On Demand Scan will not collect AD structure data. A dedicated schedule or On Demand Scan must therefore be created for AD structure collection. \[!NOTE] Not supported with multi-domain collections. |
  | Scope Collection to Multiple Domains | Utilize trust relationships in your environment to collect data from multiple domains. If left empty, SharpHound collects only from the domain where the SharpHound service account belongs. SharpHound supports two options: <ul><li>Define a specific list of domains from which to collect data.</li><li> Enable **Collect from all domains trusting the SharpHound service account domain, including transitively** to collect from every trusting domain, including trusted domains in other forests.</li></ul> For setup details, see [SharpHound Enterprise Cross-Trust Collection](https://bloodhound.specterops.io/collect-data/enterprise-collection/cross-trust.md). \[!NOTE] Multi-domain collections cannot be scoped by OU. |

**4. Start the scan**

Click **Run** to begin the on demand scan.

## Outcome

The client starts the on demand scan after the next client check-in (usually within one minute).

After it starts, the client status shows **Running a Job**:

![A collector client summary showing Running a Job status](https://mintcdn.com/specterops/g2ltNIVwNN2AtKcq/images/data_collectors/summary-on-demand-scan.png?fit=max\&auto=format\&n=g2ltNIVwNN2AtKcq\&q=85\&s=fec53ddf512410bf6c0538de896ffe41)

> [!NOTE]
>
> After the next schedule, see the job's status on the [**Finished Jobs Log**](https://bloodhound.specterops.io/collect-data/enterprise-collection/monitor.md#finished-jobs-log) page.
