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

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

 

 

 


Revision #2
Created 8 March 2021 10:41:30 by Alois
Updated 8 March 2021 10:42:18 by Alois