Powershell Scripting : Delete Active Directory Computers from CSV List

This script easily removes the computer object inside the active directory. It derives the computer names from a CSV file. The CSV file can be created by using our Active Directory Inactive Users/Computers Reporting script (http://bit.ly/2I12iec). If you would like to read more about the Remove-ADComputer command used in this script, you can visit http://bit.ly/2JFZ2YS to learn more. 


<### CSV File File Structure ###
ComputerName
Computer1
Computer2
Computer3
Computer4
#>

### CSV File Location ###
$Computer_Names = Import-Csv 'Inactive-Computers.csv'

### BEGINNING of SCRIPT ####

foreach ($Computer_Name in $Computer_Names) {

Remove-ADComputer -Identity $Computer_Name.ComputerName -Confirm:$false

Write-Host $Computer_Name.ComputerName -ForegroundColor Green
}