Skip to main content

Quick And Dirty

function OutputError([string]$errorMessage)
{
Write-Host $errorMessage -ForegroundColor Red
}

$err = Invoke-Expression "./install/sqlCEIPdisable.ps1"
if (!$err) {
# Not True, last operation failed
OutputError "Disable CEIP-Services not successfull."
return
}
Write-Host "Disable CEIP-Services successfull." -ForegroundColor Green

---------------------