kakabubu
7 years agoContributor
PowerShell Stop-Process testcomplete returns "Access denied" with testcomplete 14
We're using Powershell script to run our night tests.
Tests are executed by testComplete. The script stops testCompletete force, before starting a new instance and running the project.
After I've updated to testCompletete14, the code below stopped working
$testCompleteProcess = Get-Process -name TestComplete -ErrorAction "Ignore"
if ($testCompleteProcess -ne $null) {
echo "Stopping TestComplete..."
Stop-Process -Name TestComplete
} else {
echo "No running TestComplete process found"
}
returns error "Access is denied"
How should I stop testComplete from ps1?