Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Delete Stale or Inactive Computer Accounts from SCCM

Status
Not open for further replies.

Manuel

Well-Known Member
Messages
301
Reaction score
8
Points
18
Hi to All

I have 7000 computers objects registered in my AD
4000 computers are real computer that still exist in my enviroment and 3000 have to be deleted from AD

So the administrator will delete this 3000 computers in approximately 6 months

for that reason they remain appearing in my SCCM like this:

Client Type:
None
Client:
No

Is the any maintenance task that I can enable in order to automatically delete this 3000 computers from my SCCM?


Thanks in advanced

Manuel
 
I tried with this link

https://support.microsoft.com/en-us/kb/2897050

In which, by the way shows default setting configuration like:
Delete Obsolete Alerts
Delete Obsolete Client Discovery Data
Delete Obsolete Forest Discovery Sites and Subnets

Are you referring to "Delete Obsolete Client Discovery Data" ?

Because I enable it but nothig happened. 3000 computers object are still showing in the view

I ran that script but it dit not delete all objects, they remaing appearing

Correct me if I am wrong, I supposed its appearing is related with system Discovery options, dont you?

Manuel
 
I tried with this link

https://support.microsoft.com/en-us/kb/2897050

In which, by the way shows default setting configuration like:
Delete Obsolete Alerts
Delete Obsolete Client Discovery Data
Delete Obsolete Forest Discovery Sites and Subnets

Are you referring to "Delete Obsolete Client Discovery Data" ?

Because I enable it but nothig happened. 3000 computers object are still showing in the view

I ran that script but it dit not delete all objects, they remaing appearing

Correct me if I am wrong, I supposed its appearing is related with system Discovery options, dont you?

Manuel
 
Hi Prajwal

I tried this maintenance task "Delete obsolete client discover data" and it dit not work at all. I used it because I could not find any " Delete obsolete client data" maintenance task:

a) You can enable a predefined task under Site settings -> Site Maintenance. There is a task called "Delete obsolete client data".


I will check the script and let you know the results
 
Hi Prajwall

I ran the script you mentioned in the last post but it did not work , so I was checking "why"
Cleanup in AD deleted devices via Powershell in ConfigMgr 2012 SP1 / R2
https://gallery.technet.microsoft.com/Cleanup-in-AD-deleted-b80e452d

and I found that IT guys from this Company have not deleted any object from AD for that reason I decided to remove old AD computer from SCCM database using with this script:

Remove old Active Directory computers from SCCM
https://gallery.technet.microsoft.com/scriptcenter/Remove-old-Active-7fc40c61

It did work great and 4000 computer devices was removed from my SCCM database

Till now everything is okey. It seems tha tI have to keep only heartbeat Discovery running or I can add system Discovery running every day

What do you think about it?


Thanks in advanced

Manuel
 
Hii Manuel,

You can go with Heartbeat discovery, the reason being is heartbeat Discovery can force discovery of a computer as a new resource record, or can repopulate the database record of a computer that was deleted from the database
 
Hi Maunil,

Do you know any command to run from site server if heartbeat discovery option is the only one enable in it?

or the only way to Discovery is to wait till 60 minutes has completed

Thanks in advanced

Manuel
 
Status
Not open for further replies.

Forum statistics

Threads
7,132
Messages
27,852
Members
18,148
Latest member
therealLawrence
Back
Top