Saturday, September 12, 2020

How to clear a AD attribute using powershell?

set-aduser -identity <User.Name> -clear <ADattributeName> 

In this example I am trying to clear the target address value of a AD user. 

set-aduser -identity <User.Name> -clear targetaddress 

this will change the targetaddress AD attribute of the user to <not set>