That user account WAS deleted from AD but for some reason, the orphand object was still retained, so it wouldn't be a problem if I removed the entire object.
-----Original Message----- From: joe [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 3:42 PM To: Harding, Devon; [email protected] Subject: RE: [ActiveDir] Remove orphaned account Almost, -del or -rm would delete the entire user object... But you need to use -dsq on adfind to output the quoted DN. adfind -gc -b -f "proxyaddresses=smtp:[EMAIL PROTECTED]" -dsq | admod -del Also if you want to just remove that address you could do adfind -gc -b -f "proxyaddresses=smtp:[EMAIL PROTECTED]" -dsq | admod "proxyaddresses:-:smtp:[EMAIL PROTECTED]" Note that if that address is the primary SMTP Exchange may get grumpy if you don't set another address as primary. joe -----Original Message----- From: Harding, Devon [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 15, 2005 3:35 PM To: [email protected] Cc: joe Subject: RE: [ActiveDir] Remove orphaned account Ok, now I'm getting somewhere. Correct me if I'm wrong. Would this be the correct command to find and remove that account that the SMTP address is associated with? Adfind -gc -b -f "proxyaddresses=smtp:[EMAIL PROTECTED]" | admod -del -Devon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon Sent: Tuesday, February 15, 2005 3:26 PM To: [email protected] Subject: RE: [ActiveDir] Remove orphaned account Ok, I found the address using adfind -gc -b -f "proxyaddresses=smtp:[EMAIL PROTECTED]", but now how do I remove it from AD? -Devon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon Sent: Tuesday, February 15, 2005 3:21 PM To: [email protected] Subject: RE: [ActiveDir] Remove orphaned account About 10mins. When I do a normal AD search for that SMTP address, it does not return any results. That adfind command didn't find any results either. -Devon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Coleman, Hunter Sent: Tuesday, February 15, 2005 3:12 PM To: [email protected] Subject: RE: [ActiveDir] Remove orphaned account How quickly did you try to reuse that SMTP address? I've seen that when I delete a mailbox or contact and immediately try to apply the address to another object. Might be worth verifying that the address is gone: Adfind -gc -b dc=domain,dc=com -s subtree -f "proxyaddresses=*youraddress*" name -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon Sent: Tuesday, February 15, 2005 12:52 PM To: [email protected] Subject: [ActiveDir] Remove orphaned account I have a user account that I deleted in AD. When I try to add another user with that same SMTP address, it stated that the address already exists. When I do a search for that address in AD, I get no results. How can I remove this SMTP address from AD? Devon Harding Windows Systems Engineer Southern Wine & Spirits - GSD 954-602-2469 List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
