Skip to content

RAI5601_0001: Powershell enable AD user

Summary

ID RAI5601_0001
Brief Description Enable AD user through the Powershell
Author @ERMACK_COMMUNITY
Creation Date 2023/05/10
Modification Date 2023/05/10
Requirements
  • software
Means of action
Targets of action
Linked Response Actions

Description

To enable user, we can use Enable-ADAccount command from ActiveDirectory module.

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

To enable the account use the bellow command.

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

Disable-ADAccount