Skip to main content

Bulk Update Smart Group Object Types

Overview

Use the Directory Manager Management Shell in Netwrix Directory Manager to bulk update the object types for multiple Smart Groups within a specific Organizational Unit (OU). This is useful when your business requirements change and you need to update membership criteria for many Smart Groups at once.

Instructions

  1. Launch the Directory Manager Management Shell.
  2. Log in using your service account.
  3. Run the following command to update object types for all Smart Groups in the specified OU:
Get-SmartGroup -SearchContainer "Distinguished Name of Organizational Unit" -SmartFilter "(IMSGManagedGroupType=2)" | Set-SmartGroup -ObjectTypes "1","2","3"

PowerShell command to update Smart Group object types in Netwrix Directory Manager Management Shell

  1. This command updates all Smart Groups in the specified OU to include the following object types:

    • Users with Mailboxes
    • Users with External Email Addresses
    • Contacts with External Email Addresses
  2. If your requirements differ, use the table below to identify the correct object type values.

NOTE: The cmdlet may take time to execute depending on the number of Smart Groups in the OU. It is recommended to first test it on a smaller OU to validate results before applying it in a production environment.

Object type values

Object TypeValue
Users with Mailboxes1
Users with External Email Addresses2
Contacts with External Email Addresses3
Mail-Enabled Groups4
Mail-Enabled Public Folders5
Users6
Contacts7
Groups8
Workstations9
Servers10
Domain Controllers11