By Garth Jones . A few years ago, we published a detailed guide on managing inactive clients in SCCM 2012. ... All things System Center Configuration Manager... 46.0k. Does anyone have a way to delete a computer account from AD and SCCM discovery database at the same time so we don't have to delete the account from ADUC and then go to the SCCM console to manually delete the device or wait 90 days for it to age out of SCCM or else end up with duplicate devices in the console when a system with the same name is … Join. ( i have a sccm sql query to show and delete machines over 60 days and delete in the SCCM Database) and i also have a LDAP Query for AD to find & delete for machines over 60 days.) separately i know the methods to do this. Members. Delete Inactive Client Discovery Data = runs daily for computers inactive for 90 days (12AM to 5AM) Long story short, even though I had the correct settings in place within the CM console, I wanted to start with the root cause and decided to check AD for computers with LastLogonTimestamp of 90+ days. This process will assume that you deploy the SCCM client with Group Policy and that you have that GPO scope to a specific security group. Replace this text with the path for your text file. The script will read the text file ,check if the computer record exist in database or not ,if not ,out-put to log ,if exist ,delete the entry ,out-put results to log and this loop continue until the last line read in text file. Most SCCM admins might initiate a client push to take care of any on-line but inactive clients. Is there a way i can get this to reflect in SCCM ASAP. In the Install Application task sequence step, you get the option to delete or clear Application content from cache after installing.. Within the SCCM console, select the down arrow (top right of console). With two SCCM Current Branches (1511 and 1602) under our belt, now is the perfect time to revisit this topic, learn some new tricks, and ensure a healthy SCCM client environment. Alternatively, there is a built-in maintenance task, Delete Inactive Computer Discovery Data, that will delete computer resources that have been inactive for a period of time -- 90 days by default. Applies to: Configuration Manager (current branch) Use the content library cleanup command-line tool to remove content that's no longer associated with an object on a distribution point. Starting with SCCM 1906 you can delete or clear the application content from the SCCM client cache. Delete Multiple SCCM Devices from SCCM. Remove old computers. So as you can see below this is a very simple one-line script. I just did some clean up and deleted about 2000 old machines from AD. This type of content is called orphaned content. This tool replaces older versions of similar tools released for past Configuration Manager products. Created Nov 11, 2011. I prefer to automate things a bit. This Powershell script will delete any old, inactive computer objects from SCCM. I've created a security role and given it the permissions Collection\Delete Resource.With this set the user can delete computer devices but they can also delete … That you can use to delete multiple SCCM Devices from SCCM from a list of computers in a text file. Top posts may 10th 2019 Top posts of may, 2019 Top posts 2019. Does anyone know if it's possible to create a security role that allows a user to delete computers only from SCCM? I find this option useful when the devices have got small hard drives or when installing lots of large apps in succession. This is valid with ConfigMgr 2012 upto to Current Branch (CB). Remove Disabled Active Directory Computers From SCCM Powershell. 354. The only thing you have to change in the script is the orange text. 1/remove old machines (i.e over 60days) from the SCCM Database 2/remove machines from Active Directory simultaneously. Removing a device client manually deletes the client record from the Configuration Manager database. System Center Configuration Manager (SCCM) is a huge product and the easiest way to get all clients into SCCM is to enable AD System Discovery (ADSD) which will discover all devices within the domain. Remove Old Objects From AD and SCCM By leaston August 12, 2014. Online. Thus, a resource will be marked as inactive 7 days after it is deleted from AD and then 90 days later it will be deleted.