PowerShell Stop-Process testcomplete returns "Access denied" with testcomplete 14
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2019
06:16 AM
02-07-2019
06:16 AM
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?
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2019
06:52 AM
02-07-2019
06:52 AM
This appears to be working just fine for me, as we do something similar. Is it possible the script and test complete instances are running under different users? Are you running both as administrator?
Thanks,
Carson
Click the Accept as Solution button if my answer has helped
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2019
08:01 AM
02-07-2019
08:01 AM
I'm running both testComplete and PowerShell NOT as administrator, but as the same user.
