I want to make "departmentNumber" and "extensionattribute2"attributes empty from AD user using powershell.

SAURABH GUPTA 1 Reputation point
2021-08-13T10:00:59.71+00:00

Hello Experts,

I want to make "departmentNumber" and "extensionattribute2"attributes empty from AD user using powershell.

Also I want to modify these two attribute as well.

Kindly Assist.

Regards,
Saurabh

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,951 Reputation points
    2021-08-13T20:08:20.227+00:00

    You can remove the values using the -Clear parameter. You can also use -Add and -Replace.

    Referring to the help for a cmdlet is always a good idea before asking for help. set-aduser

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.