`cls`

$ServerName = “spad1”,”spadfs1”,”spad4”,”spad5”,”spscsm”,”spdirsync”,”spapp”,”spstudent”,”spmail”,”spsccm”,”sptassweb”,”spexmail”,”spsql14”,”spbckup”,”spprint”,”dvc”,”dvc-backup-svr”,”spmanage”,”spmonitor”,”spsql”,”splicense”,”enrolment”,”spshareapp1”,”spfile”,”spsharedb1”,”spscsm-data”,”spshareweb2”,”spsco”,”spkms”,”spscsm-portal2”,”spscsm-sql”,”sptasssql”,”spvcenter”

Script Starts Here

foreach ($Server in $ServerName) {

	if (test-Connection -ComputerName $Server -Count 2 -Quiet ) { 
	
		        write-host
                write-Host "$Server is alive and Pinging " -ForegroundColor Green
                write-host		

				} else
				
				{ Write-Warning "$Server seems dead not pinging"
		
				}	

}


`.\\Ping\_Multiple\_Servers.ps1`