Share This Post

Active Directory / PowerShell

Clearing Active Directory User Attributes Using PowerShell

Clearing Active Directory User Attributes Using PowerShell

You might have need to remove or clear certain user attributes in Active Directory. Here’s a couple examples of how to do that:

Set-ADUser -homePhone $null

-or-

Set-ADUser -clear -homePhone

To remove multiple attributes, use a comma…

set-ADUser -clear homePhone, StreetAddress, givenName


Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!

IT/Dev Connections

Share This Post

Leave a Reply