Skip to content

RAI4604_0001: Powershell clear attribute from AD object

Summary

ID RAI4604_0001
Brief Description Clearing a attribute from AD object through the Powershell
Author @ERMACK_COMMUNITY
Creation Date 2023/05/07
Modification Date 2023/05/07
Requirements
  • software
Means of action
Targets of action
Linked Response Actions

Description

To clear the attribute from object, we can use Set-ADObject command from ActiveDirectory module.

For example, we have a user ermac for whom we want to clear the msDS-KeyCredentialLink attribute.

To clear the attribute use the bellow command.

Set-ADObject -Identity 'CN=ermack,CN=Users,DC=contoso,DC=local' -Clear 'msDS-KeyCredentialLink'

Set-ADObject