LockedPowershell script to clear an Active Directory attribute value for an organization

Author
andy
Member
2018/10/23 00:47:14 (permalink)

Powershell script to clear an Active Directory attribute value for an organization

Need assistance to have a powershell command to clear a specific attribute value for all users under an organization.. can you please help?
#1

1 Reply Related Threads

    HC Staff
    HC Staff
    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
    #2
    Jump to: