Home All Groups Group Topic Archive Search About

Is there an easy way to delete old computer name from ADUC?

Author
18 Oct 2006 1:57 PM
John
Hi all,

We replaced all workstations with new computers.  I can see all old
computers name are still in ADUC.  Is there an easy way to delete old
computer name from ADUC?  (win2K3 R2 envir.)

Thank you.

Author
18 Oct 2006 2:33 PM
Roger Abell [MVP]
Are you having an issue whereby use of "right-click delete"
on the object is not viewed as a good solution for this?

Show quoteHide quote
"John" <J***@discussions.microsoft.com> wrote in message
news:60415481-193B-4BC2-951A-E6422E6F9224@microsoft.com...
> Hi all,
>
> We replaced all workstations with new computers.  I can see all old
> computers name are still in ADUC.  Is there an easy way to delete old
> computer name from ADUC?  (win2K3 R2 envir.)
>
> Thank you.
Author
18 Oct 2006 2:50 PM
T. Uranjek
Hi!

You can use dsquery command to find inactive computers and then delete them
with dsrm.
dsquery computer domainroot -inactive NumberOfWeeks | dsrm -noprompt

Please, check Technet first:
http://technet2.microsoft.com/WindowsServer/en/library/46ba1426-43fd-4985-b429-cd53d3046f011033.mspx?mfr=true

HTH

Toni

Show quoteHide quote
"John" <J***@discussions.microsoft.com> wrote in message
news:60415481-193B-4BC2-951A-E6422E6F9224@microsoft.com...
> Hi all,
>
> We replaced all workstations with new computers.  I can see all old
> computers name are still in ADUC.  Is there an easy way to delete old
> computer name from ADUC?  (win2K3 R2 envir.)
>
> Thank you.
Author
18 Oct 2006 5:53 PM
Jorge de Almeida Pinto [MVP - DS]
OLDCMP from joeware.net

--

Cheers,
(HOPEFULLY THIS INFORMATION HELPS YOU!)

# Jorge de Almeida Pinto # MVP Windows Server - Directory Services

BLOG (WEB-BASED)--> http://blogs.dirteam.com/blogs/jorge/default.aspx
BLOG (RSS-FEEDS)--> http://blogs.dirteam.com/blogs/jorge/rss.aspx
------------------------------------------------------------------------------------------
* This posting is provided "AS IS" with no warranties and confers no rights!
* Always test before implementing!
------------------------------------------------------------------------------------------
#################################################
#################################################
------------------------------------------------------------------------------------------
Show quoteHide quote
"John" <J***@discussions.microsoft.com> wrote in message
news:60415481-193B-4BC2-951A-E6422E6F9224@microsoft.com...
> Hi all,
>
> We replaced all workstations with new computers.  I can see all old
> computers name are still in ADUC.  Is there an easy way to delete old
> computer name from ADUC?  (win2K3 R2 envir.)
>
> Thank you.
Author
18 Oct 2006 8:23 PM
Ken Aldrich
Hello,

Computer accounts are very similar to user accounts.  They have a password.
This password gets reset automatically every 30 days (unless you have
changed the value).
You can query workstations for their pwdLastSet attribute and if it is over
30 days you might assume the workstation is no longer on your network.

DSRAZOR for Windows has a way to handle deletions automatically.  You can
apply this to user accounts as well.  You could look at the last logon date
of your users and if they have not logged on in say, 60 days for example,
you could automatically disable, or delete those accounts.

This is done by running a query in an applet and adding one of our AD:Modify
services to the applet.  You could schedule this applet to run every night
and clean up your Active Directory while you sleep.

No scripting required! Visual Click Software teaches customers how to easily
customize applets using a drag n' drop type architecture.  Not only that, we
also offer a free service to simply create the custom solutions for you.

Contact us for a free, one-on-one web demonstration of how easy using
DSRAZOR can be for regular, automated cleanup.
www.visualclick.com/?source=ADcleanup101806


--
Ken Aldrich
DSRAZOR for Windows
Visual Click Software, Inc.
www.visualclick.com

Show quoteHide quote
"John" <J***@discussions.microsoft.com> wrote in message
news:60415481-193B-4BC2-951A-E6422E6F9224@microsoft.com...
> Hi all,
>
> We replaced all workstations with new computers.  I can see all old
> computers name are still in ADUC.  Is there an easy way to delete old
> computer name from ADUC?  (win2K3 R2 envir.)
>
> Thank you.