Clearing old client pc's from active directory

How do i clear old client pc's from my SBS domain server active directory.I've cleared the cache in the dns but still this old pc names appear in active directory?
The_NibblerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph MoodyBlogger and wearer of all hats.Commented:
DNS and AD are separate. You will need to delete the AD accounts as well. You can use PowerShell to clean up old computer names: http://deployhappiness.com/managing-inactive-computers-and-users-in-active-directory/
0
Joseph MoodyBlogger and wearer of all hats.Commented:
Another popular tool is the OldCmp utility: http://www.joeware.net/freetools/tools/oldcmp/
0
kola12Commented:
Did You remove old PC objects from AD?
You should remove old PC from AD and if nesesery clear dns (remove old pc entries)
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Lee W, MVPTechnology and Business Process AdvisorCommented:
You can use DSQUERY to determine which computers haven't reported to AD.

Run the following from the command line
dsquery computer -inactive 13
It should tell you which computers haven't reported in to the server in the last 3 months (13 weeks).

You can then delete those.

If you ever make a mistake, go to the computer, put it back into a workgroup and then rejoin the domain - that should put it back.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brian PiercePhotographerCommented:
Just delete the account from AD
0
Cris HannaSr IT Support EngineerCommented:
Let's keep in mind that this is SBS.  #1 rule with SBS is use the wizards
So open the SBS console and go to Network > Computers and then right click on the computer account and click on delete.
0
Will SzymkowskiSenior Solution ArchitectCommented:
My two cents...

You run into issues like this with orphaned DNS records computer objects etc when computers are not removed properly from the domain.

When you remove a PC from the domain the correct way to do this is from the Advanced System Properties on the machine and moving it to a workgroup.

When you follow this process 2 things happen, the AD Computer Account goes into a Disabled State, and then communicates this change to DNS which then automatically removes the DNS records that are associated with this computer object because it is no longer on the domain.

There are always situations where you cannot remove a PC from the domain like I have described above but this is the most preferred/automated method to ensure that the computer accounts are cleaned up in all locations.

If you simply format the PC, delete or disable the AD computer object, the DNS entry will remain in DNS until you manually remove it.

As stated when you remove a PC from the domain using the workgroup method it puts the AD Account in a Disabled state, so the computer object is not removed from AD so if you want to remove it you will need to do this as well. The process simple illustrates how to do this and also remove the DNS entry at the same time.

Will.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.