• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1031
  • Last Modified:

PowerShell Schedule Task

I have scheduled a Power script under Window Task to run daily. However, it return with error :0x800413F".

If I run it manually, it works fine.

Any idea ? The task has been run under domain administrator.

Tks
0
AXISHK
Asked:
AXISHK
  • 2
  • 2
2 Solutions
 
Raheman M. AbdulSenior Infrastructure Support Analyst & Systems DeveloperCommented:
Try selecting "run with highest privileges"
0
 
AXISHKAuthor Commented:
Doesn't make any difference.... Tks
PowerShell.png
0
 
Raheman M. AbdulSenior Infrastructure Support Analyst & Systems DeveloperCommented:
The error indicates an instance of this task is already running
check the task again for the settings

For details of the errors see: http://msdn.microsoft.com/en-us/library/windows/desktop/aa383604%28v=vs.85%29.aspx

Tick the box "If the task is still running, stop it at this time" to cause the task scheduler to kill the last instance before starting a new one
0
 
Narender GakkaAWS / DevOps / Cloud ConsultantCommented:
Hi there,

not sure what exactly your setting are, but here is a very good article on setting up the powershell scripts in windows server task scheduler,

http://community.spiceworks.com/how_to/show/17736-run-powershell-scripts-from-task-scheduler

And also the below article from Microsoft contains all the error codes and related reason for failure..

http://msdn.microsoft.com/en-us/library/windows/desktop/aa383604(v=vs.85).aspx

do verify the settings and let me know if this helps
0
 
AXISHKAuthor Commented:
Tks.
0

Featured Post

Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now