question

SAURABHGUPTA-3702 avatar image
0 Votes"
SAURABHGUPTA-3702 asked RichMatheisen-8856 answered

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

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-server-powershellwindows-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
1 Vote"
RichMatheisen-8856 answered

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.