![]() ![]() ![]() So ,this script will help guys to pipe the computer records into text file (as input ) and run the script or can schedule the script to run weekly once or so. When I leave these decom clients for deletion using site maintenance tasks ,these decom servers do appear in compliance reports and client health reports in SCCM and because of this ,the client health dashboard doesn’t appear in good status. Once the client is inactive and fall into the range X days to match site maintenance tasks then it will be removed from SCCM database. Once the computer record is disabled in AD or not online for X days ,It becomes inactive. Why immediate ? can't I wait for default maintenance tasks to remove the computer object after it becomes inactive or aged ? well ,it does. One of of the reason for me to create this script is ,to help the team to delete the server records from SCCM after they decom immediately using task scheduler. There could be various reasons why do you want to delete computer record from SCCM and for that, you can either delete the record directly from the console or use scripting to do it for you. Recently I had a requirement to create a PowerShell script to read text file/CSV for list of clients (servers mainly) and check if they appear in SCCM if so delete them ,track the information into log file for reference.
0 Comments
Leave a Reply. |