Delegate permission to disable enable user accounts
- how to disable account in active directory
- how to disable account in active directory powershell
- how to lock account in active directory
- how to enable account in active directory
Disable ad user account powershell!
Disable-ADAccount
Disables an Active Directory account.
Syntax
Description
The cmdlet disables an Active Directory user, computer, or service account.
The Identity parameter specifies the Active Directory user, computer service account, or other service account that you want to disable.
Disable active directory
You can identify an account by its distinguished name, GUID, security identifier (SID), or Security Accounts Manager (SAM) account name. You can also set the Identity parameter to an object variable such as , or you can pass an account object through the pipeline to the Identity parameter.
For example, you can use the cmdlet to retrieve a user account object and then pass the object through the pipeline to the cmdlet. Similarly, you can use and to retrieve account objects.
For Active Directory Lightweight Directory Services (AD LDS) environments, the Partition parameter must be specified except in the following two conditions:
- The cmdlet is run from an Active Directory provider drive.
- A default naming context or partition is defined for the AD LDS environment.
To specify a defa
- how to delete account in active directory
- how to disable computer account in active directory