Microsoft MECM (SCCM) - Add or Remove Assets to Collection
  • 28 Jan 2024
  • 3 Minutes to read
  • Dark
  • PDF

Microsoft MECM (SCCM) - Add or Remove Assets to Collection

  • Dark
  • PDF

Article summary

The Microsoft MECM (SCCM) - Add or Remove Assets to Collection connects to the SQL server defined and adds the assets to the collection, or removes the assets from the collection, depending on the settings in this action. This is performed for each asset retrieved by the selected query (or for each selected asset).

See Creating Enforcement Sets to learn more about adding Enforcement Actions to Enforcement Sets.

General Settings

  • Enforcement Set name (required) - The name of the Enforcement Set. A default value is added by Axonius. You can change the name according to your needs.
  • Add description - Click to add a description of the Enforcement Set. It is recommended to describe what the Enforcement Set does.
  • Run action on assets matching following query (required) - Select an asset category and a query. The Enforcement Action will be run on the assets that match the query parameters.
  • Action name (required) - The name of the Main action. A default value is added by Axonius. You can change the name according to your needs.
  • Configure Dynamic Values - Toggle on to enter a Dynamic Value statement. See Creating Enforcement Action Dynamic Value Statements to learn more about Dynamic Value statement syntax.

Required Fields

These fields must be configured to run the Enforcement Set.

  • EC Action - Select the EC Action to perform:
    • Add to Collection
    • Remove from Collection
  • MECM collection name - The name of the collection to which the changes will apply.
  • Compute Node - The Axonius node to use when connecting to the specified host. For more details, see Connecting Additional Axonius Nodes.

Additional Fields

These fields are optional.

  • Edit Collection Membership Rules - When selected, the EC will edit the base query for the collection creation so that changes will persist even after a manual update or full collection update performed on a scheduled basis. Note that this will change the initial query for the collection and change behaviour on MECM side.

  • Use Adapter Settings - Use the settings in the adapter configuration.

  • MECM/MSSQL Server - The DNS/IP Address of the Microsoft SQL Server your
    instance is using.

    • To use a specific named instance, the value supplied should be in the following format: {serverhost}\{instancename}.
    • If no instance is supplied, the default instance will be used.
  • Port (default: 1433) - The port use for the connection.

  • Database - The name of the database inside the SQL Server (Usually starts with CM_).

  • User Name - A user name with the required permissions.


* The best practice is to create a dedicated SQL local user for Axonius usage. For details, see Creating a Local Read-Only User for Microsoft SQL Server.
* If you are using a domain user, specify the domain and the user name in the following format: domain\username.

  • Password - The user's password. The password must not include ";".

Required Ports

Axonius must be able to communicate with the MSSQL Server via one of the following ports:

  • Microsoft SQL Server discovery port - 1433 (default for non SA users) 1434 (default for SA - SuperAdmin - users).
  • The specific port for the supplied named instance, if relevant.
  • Note that the port appended into the adapter configuration needs to match the global listening port of the MECM database.

The ports listed above are the standard default MECM ports. However, these ports might be different if MECM is deployed and configured with custom ports specified by the customer.


The User for this action needs DB write permissions

For more details about other Enforcement Actions available, see Action Library.

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.