Tweaking.com Support Forums
Main Forum => General Computer Support => Topic started by: neroilo on February 09, 2013, 08:58:59 am
-
I have a problem with a task in my Task Scheduler. It works ok if I run it manually (right-click on the task -> run) , but it doesn't work as a scheduled task.
It should be executed automatically when a certain event id occurs.
In my attachment you'll find the task exported in the xml format + the cmd script I want to run.
Windows 7 X64 Ultimate here.
Ideas?
-
What user account do you have it running as?
<UserId>S-1-5-18</UserId>
<RunLevel>LeastPrivilege</RunLevel>
Also have it run with admin privileges.
Shane
-
What user account do you have it running as?
<UserId>S-1-5-18</UserId>
<RunLevel>LeastPrivilege</RunLevel>
Also have it run with admin privileges.
Shane
S-1-5-18: %systemroot%\system32\config\systemprofile = SYSTEM
Tried Admin privileges before, no-go.
Even with admin privileges, in status column appears "In queue", but at the end it doesn't do anything.
Of course with the exception that it works if I run the task manually.
You should know that I need this task to fix this recurrent bug:
http://answers.microsoft.com/en-us/protect/forum/mse-protect_start/session-microsoft-security-essentials-oobe-stopped/a6d12dbc-3a81-4059-8516-92057d7f1b8f
-
The thing with running a scheduled task under the system account is that it wont show on the desktop. Such as with my registry backup program. If I have it run under the system account it wont show on the desktop.
Shane
-
The thing with running a scheduled task under the system account is that it wont show on the desktop. Such as with my registry backup program. If I have it run under the system account it wont show on the desktop.
Shane
Well, I don't want this task showed on desktop. It's a simple delete command contained on a cmd script.
-
Very odd that it isnt working under the system account. Is the file in use?
What you could do is add a log file option to have it output any errors. Might help trace it down :-)
Try this in the bat file
del /f /q "C:\ProgramData\Microsoft\Microsoft Security Client\Support\EppOobe.etl" 2>> C:\error_Log.txt
Shane
-
Nope, the error log file is empty.
-
Yet it works fine when you run it manually from the task scheduler itself?
Shane
-
Yet it works fine when you run it manually from the task scheduler itself?
Shane
Tried this moment, and it seems to not work anymore.
-
Very odd. Not sure why it isnt working for you.
Shane
-
Very odd. Not sure why it isnt working for you.
Shane
When I go to the security tab of EppOobe.etl it shows a message saying "To continue you must be an administrative user with permission to view this object's security properties. Do you want to continue?"
-
Does the bat file work if you run it directly and not in the task scheduler?
Shane
-
Does the bat file work if you run it directly and not in the task scheduler?
Shane
No, now it's completely locked.
-
Is the file in use? Try turning off Microsoft Security Client and see if you can manually delete it yourself.
Shane
-
Is the file in use? Try turning off Microsoft Security Client and see if you can manually delete it yourself.
Shane
Real time protection is disabled, but the problem persists.
I can't assign any type of permission to that file.
-
What about in safe mode? I knw a lot of protection programs protect their files so viruses cant remove them.
Shane
-
What about in safe mode? I knw a lot of protection programs protect their files so viruses cant remove them.
Shane
That worked! After a reboot, a new file was generated with all permissions in their place. Now the task works correctly, both manually and scheduled.
Thank you. :smiley:
-
No problem :-)
Shane