Powershell script to delete computer records from SCCM

Recently I had a requirement to create a PowerShell script that 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.There could be various reasons why do you want to delete c

 
 
 
 
 
5 Star
(2)
4,351 times
Add to favorites
System Center
11/19/2016
E-mail Twitter del.icio.us Digg Facebook
  • EPIC Script !!!
    1 Posts | Last post January 22, 2020
    • This script helped me to finally delete Clients in SCCM
      
      Got some Clients that i couldnt reinstall over SCCM PXE ERROR:
      File: \Boot\BCD
      Status: 0xc000000f
      
      I checked the SMSPXE.log and found out that my Client
      "device is in the database" but i already deleted in COnfig MGr Console
      Several Restarts, TFTPBlocksize change nothin helps.
      
      I run this Script and now my Client works again over PXE !!! 
      
      THX !!!!!!
  • Scheduld Task Usage
    1 Posts | Last post July 18, 2017
    • Great script but when I execute as a Scheduled Task the log entries are always "not found in SCCM.
      
      When I run the script through a batch file outside of TS it works perfectly and deletes the objects from SCCM.
      
      Any ideas please? Really need this work.
      
      Thanks a lot for your help.
  • Where to mention sitename and site code in the script
    1 Posts | Last post July 18, 2017
    • where to mention sitename and site code in the script?
  • Need Help in modifing script according to our environment
    1 Posts | Last post April 18, 2017
    • Need Help in modifing script according to our environment
      
      where to mention sitename and site code in the script