Solved

PowerShell Schedule Task

Posted on 2014-04-21
5
982 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 19

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 19

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

749 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