Solved

PowerShell Schedule Task

Posted on 2014-04-21
5
955 Views
Last Modified: 2014-04-21
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
Comment
Question by:AXISHK
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:Raheman M. Abdul
ID: 40012263
Try selecting "run with highest privileges"
0
 

Author Comment

by:AXISHK
ID: 40012274
Doesn't make any difference.... Tks
PowerShell.png
0
 
LVL 18

Accepted Solution

by:
Raheman M. Abdul earned 300 total points
ID: 40012278
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
 
LVL 8

Assisted Solution

by:Narender Gakka
Narender Gakka earned 200 total points
ID: 40012312
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
 

Author Closing Comment

by:AXISHK
ID: 40012363
Tks.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now