XIA Automation Tutorial

Disable User Accounts in Active Directory

This tutorial describes how to disable users in Active Directory using XIA Automation.

Download Free 30-Day Trial

Learn about the disable account feature

Tutorial Outcomes

Learn how to use XIA Automation to:

  • Green tick Disable user accounts in Microsoft Active Directory on-premises
  • Green tick Delegate disabling user accounts to non-administrators

1. Create the Automation Profile

Create a new automation profile in the XIA Automation Administration Tools. Set the permissions as required, for example, to delegate this task to non-administrators.

Screenshot of a new automation profile in XIA Automation
Create a new automation profile

2. Create an Active Directory Search Variable

Either allow the end user to enter the username manually by creating a standard String Variable, or allow the end user to select the username from a list of search results by creating a dynamic Active Directory Search Variable:

Screenshot of the Active Directory Search Variable Definition in the New Variable Definition right click context menu

Use the Search settings to, for example, specify which Organizational Unit to list usernames from:

Screenshot of Active Directory search variable settings in XIA Automation
Show only enabled user accounts in the Staff OU

3. Configure the Active Directory Account Disable Task

Create a new Active Directory Account Disable Task:

Screenshot of the Active Directory Account Disable Task in the New Automation Task right click context menu

Assign the Active Directory Search Variable as the Identity.

Screenshot of a disable Active Directory user account task in XIA Automation
Use a task to disable a user

If your domain has multiple DCs, you can add an Active Directory Replication Task after your disable task.

Press Save Configuration before executing the automation profile.

4. Disable a User Account

Execute the Disable Active Directory User Account Automation Profile, either manually via the form input in the XIA Automation Server web interface, or in bulk via CSV, or automatically via file import.

Screenshot of a disable Active Directory user account automation profile in XIA Automation Server
Disable user accounts from anywhere using the form input in the XIA Automation Server web interface

View how to disable staff accounts in Active Directory using XIA Automation v3.

Supported Platforms

Creating user accounts in Active Directory is supported on the following domain versions:

  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • Windows Server 2012 R2

For more information about Active Directory tasks, please view the administrator's guide.

Try XIA Automation for free