Task Scheduler Fails - Requested Operation Requires Elevation (0x800702E4).
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Task Scheduler Fails - Requested Operation Requires Elevation (0x800702E4).
Task Scheduler Fails - Requested Operation Requires Elevation (0x800702E4).
We have a Windows virtual machine set up (Windows 10 Pro intstalled) , and I have administrator privileges on it. I am trying to schedule a test and it fails with the error stated above.
Task scheduler runs fine on my machine only fails on server.
I tried all possible variations to run it (as administrator, from a different user, different machine, highlighting "highest privileges", using different configurations: for server 2003, for windows 10 etc).
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A couple of things -
We can't really see what task you're trying to schedule - are you just launching TestComplete?
Can you run TestComplete from this machine without using the scheduler? If not, what happens when you try?
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Scheduling just the launch.
I can run testcomplete w/o using a scheduler no problem.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My best guess....You're telling it to run as a particular user even if that user is not logged in but you're not telling it to store the password. I'm guessing that it cannot "authorize" this functionality without having the user password.
Try changing it to run only when the user is logged in... in fact, this is probably the best practice because you HAVE to have a logged in session with the desktop UI available in order to run TestComplete tests. See if that works.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for reply! I tried it and that did not do it 😞
Any other thoughts?...
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has someone figured this out yet?
On one pc it works perfectly fine, and when i tried to implement the same function on another pc it gave me this error.
opening TestExecute works when I do it manually, but when calling the TestExecute.exe file from task scheduler it throws this error. That doesn't make sence... right?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It really comes down to a permissions problem. The user under which the windows task is running does not have sufficient permissions to do what it needs to do. Please make sure that you have your scheduled user set up properly with the correct permissions and that the task is set to run with elevated permissions.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can run as elevated.
Basically you need to run as admin via the command line.
Here's an example. The easy way to do this is to create two batch files.
1. Batch file launches the other one as elevated.
Here's the launcher batch file:
Create this file
runTcAsAdmin.bat (you will schedule this file in your scheduled task)
Put this text in the file
powershell -Command Start-Process launchTest -Verb RunAs
Create this file:
launchTest.bat
Put this text in the file:
"C:\Program Files (x86)\SmartBear\TestExecute 12\Bin\TestExecute.exe" /exit /run /SilentMode /ErrorLog:tcErrors.txt C:\projectFolder\projectName.pjs
That should run your test as an administrator.
If you get an error with powershell, you need to do this:
