Re: Powershell script to clear an Active Directory attribute value for an organization
2018/10/24 01:10:37
(permalink)
Below is the sample command to clear a DesktopProfile attribute value
For single AD User:
Get-ADUser -Identity tony | Set-ADUser -Clear desktopProfile
Apply for all users under an OU:
Get-ADUser -Filter * -SearchBase ‘OU=OrganizationName,DC=lab13,DC=COM' | Set-ADUser -Clear desktopProfile