Home All Groups Group Topic Archive Search About

Automatic workstation object removal

Author
18 Oct 2006 3:37 PM
BillyBob
Is there a method in Active Directory of removing old workstation
objects automatically.

If anyone has a solution this would be very helpful for me.  WE would
like this done once these objects have not been active for about a month
(to be deleted).

Open to any ideas if not officially supported in Microsoft.

Cheers,

Author
18 Oct 2006 3:50 PM
T. Uranjek
Hi!

It's not "automatic" but it's fast, so be carefull! ;)

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
"BillyBob" <Billy***@hotmail.com> wrote in message
news:O2rvUts8GHA.4808@TK2MSFTNGP03.phx.gbl...
> Is there a method in Active Directory of removing old workstation objects
> automatically.
>
> If anyone has a solution this would be very helpful for me.  WE would like
> this done once these objects have not been active for about a month (to be
> deleted).
>
> Open to any ideas if not officially supported in Microsoft.
>
> Cheers,
Author
18 Oct 2006 5:23 PM
Jorge de Almeida Pinto [MVP - DS]
check out 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
"BillyBob" <Billy***@hotmail.com> wrote in message
news:O2rvUts8GHA.4808@TK2MSFTNGP03.phx.gbl...
> Is there a method in Active Directory of removing old workstation objects
> automatically.
>
> If anyone has a solution this would be very helpful for me.  WE would like
> this done once these objects have not been active for about a month (to be
> deleted).
>
> Open to any ideas if not officially supported in Microsoft.
>
> Cheers,
Author
18 Oct 2006 8:21 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

"Jorge de Almeida Pinto [MVP - DS]"
<SubstituteThisWithMyFullNameSeparatedByD***@gmail.com> wrote in message
Show quoteHide quote
news:uOvcxot8GHA.1252@TK2MSFTNGP04.phx.gbl...
> check out 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!
> ------------------------------------------------------------------------------------------
> #################################################
> #################################################
> ------------------------------------------------------------------------------------------
> "BillyBob" <Billy***@hotmail.com> wrote in message
> news:O2rvUts8GHA.4808@TK2MSFTNGP03.phx.gbl...
>> Is there a method in Active Directory of removing old workstation objects
>> automatically.
>>
>> If anyone has a solution this would be very helpful for me.  WE would
>> like this done once these objects have not been active for about a month
>> (to be deleted).
>>
>> Open to any ideas if not officially supported in Microsoft.
>>
>> Cheers,
>
>