Restart-Computer -ComputerName qsch013.ccx.carecentrix.com -Force
Write-Host "qsch013.ccx.carecentrix.com restart initiated"
Start-Sleep -Seconds 180
$ServerStatusCheck = Test-NetConnection -ComputerName qsch013.ccx.carecentrix.com
$ServerStatusOnline = $ServerStatusCheck.PingSucceeded
if ($ServerStatusOnline -eq $true) {
Write-Host "qsch013 is Online"
}
else {
Write-Host "qsch013 is not online"
}

Restart-Computer -ComputerName qsch014.ccx.carecentrix.com -Force
Write-Host "qsch014.ccx.carecentrix.com restart initiated"
Start-Sleep -Seconds 180
$ServerStatusCheck = Test-NetConnection -ComputerName qsch014.ccx.carecentrix.com
$ServerStatusOnline = $ServerStatusCheck.PingSucceeded
if ($ServerStatusOnline -eq $true) {
Write-Host "qsch014 is Online"
}
else {
Write-Host "qsch014 is not online"
}
Restart-Computer -ComputerName qsch011.ccx.carecentrix.com -Force
Write-Host "qsch011.ccx.carecentrix.com restart initiated"
Start-Sleep -Seconds 180
$ServerStatusCheck = Test-NetConnection -ComputerName qsch011.ccx.carecentrix.com
$ServerStatusOnline = $ServerStatusCheck.PingSucceeded
if ($ServerStatusOnline -eq $true) {
Write-Host "qsch011 is Online"
}
else {
Write-Host "qsch011 is not online"
}
Restart-Computer -ComputerName qsch012.ccx.carecentrix.com -Force
Write-Host "qsch012.ccx.carecentrix.com restart initiated"
Start-Sleep -Seconds 180
$ServerStatusCheck = Test-NetConnection -ComputerName qsch012.ccx.carecentrix.com
$ServerStatusOnline = $ServerStatusCheck.PingSucceeded
if ($ServerStatusOnline -eq $true) {
Write-Host "qsch012 is Online"
}
else {
Write-Host "qsch012 is not online"
}