Skip to content

RAI3601_0002: Powershell disable AD user

Summary

ID RAI3601_0002
Brief Description Disable AD user through the Powershell
Author @ERMACK_COMMUNITY
Creation Date 2023/05/10
Modification Date 2023/05/10
Requirements
  • software
Tags
  • Block: User
Means of action
Targets of action
Linked Response Actions

Description

To disable user, we can use Disable-ADAccount command from ActiveDirectory module.

For example, we have a user ermac whose account we want to disable.

To disable the account use the bellow command.

Disable-ADAccount -Identity 'CN=ermack,CN=Users,DC=contoso,DC=local'

Disable-ADAccount