Using DSADD or ADMOD to change/add a postofficebox.

P

PowerCat

Hello,
I have searched a lot, all over the place, on how to add a
postofficebox to a user.

I think the only option is to use admod, as dsadd doesn't seem to
support postofficebox.

ADModcmd.exe -dn "CN=John Doe,OU=Current Users,OU=This
Office,OU=City,DC=Domain,DC=com" -custom postofficebox "box here"

It gives me:

Issuing Query....

No items found matching the specified filter.

Operation Completed in 0,0625008 seconds.


There is a user matching the query. Maybe I am not writing the command
properly?

Please give me insights to make this command work properly.
Thanks.
 
J

Jerold Schulman

Hello,
I have searched a lot, all over the place, on how to add a
postofficebox to a user.

I think the only option is to use admod, as dsadd doesn't seem to
support postofficebox.

ADModcmd.exe -dn "CN=John Doe,OU=Current Users,OU=This
Office,OU=City,DC=Domain,DC=com" -custom postofficebox "box here"

It gives me:

Issuing Query....

No items found matching the specified filter.

Operation Completed in 0,0625008 seconds.


There is a user matching the query. Maybe I am not writing the command
properly?

Please give me insights to make this command work properly.
Thanks.


admod -b "CN=John Doe,OU=Current Users,OU=ThisOffice,OU=City,DC=Domain,DC=com" "postofficebox::1234"

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top