Questions tagged [task-scheduler]
319 questions
2
votes
1 answer
Save scheduled tasks with powershell
I want to save my scheduled tasks using powershell.
I tried this:
$taskpath = "\mytasks\" # all of my tasks are in this folder in Task Scheduler
$savefolder = "C:\tasks" # where I want to save the xml files
Get-ScheduledTask -TaskPath $taskpath…

lonix
- 896
- 10
- 23
2
votes
0 answers
When creating new basic task Windows scheduler getting stuck
I have Windows SBS 2011 server with one secondary Windows 2003 domain controller, no other problems found, but when I try to create new basic task on the SBS, all works well till pressing the Finish button. After pressing Finish the dialog window…

Pavel Dufek
- 21
- 2
2
votes
1 answer
Task Scheduler : Window can't find the specified folder
I am running on Window 2012 OS. Whenever I am going to open Task Scheduler Service it is giving me the following error:
Windows cannot find the specified folder.

Hiren Parghi
- 129
- 1
- 8
2
votes
0 answers
Does Windows task scheduler cache dlls
I recently changed an existing scheduled task on a Windows 2008 r2 server by making it point to a new executable located in a different folder than the previous one. A few DLLs alongside the exe (a .NET console app) have changed as well.
The problem…

guillaume31
- 121
- 3
2
votes
2 answers
Powershell Script will run but screen capture not completed, why?
I have a powershell script to capture a screenshot. If Run it in powershell or ISE it runs fine, takes the screen capture without issues. When I schedule a task on windows Task Scheduler it just saves a blank image instead of the screen capture. Any…

veel84
- 288
- 1
- 6
- 14
2
votes
1 answer
Trigger a batch file when a user choose "Switch User" in windows
I save log in/out details of all the users to a text file through a .bat file, which is executed by Task Scheduler (on workstation-lock/unlock)/ gpedit.msc (on user logout/login).
I want to run the same or any .batfile when Switch User is chosen…

J. Parashar
- 123
- 1
- 4
2
votes
1 answer
Windows 2008 R2 Task Schduler is raising the following error “0x41301”
I have a console application which uses some SharePoint dll libraries, to execute a background jobs. now I can manually run the console application without any problem. but when I schedule its execution using windows 2008 R2 Task Scheduler, I got…

John John
- 379
- 1
- 4
- 12
2
votes
1 answer
How to backup Windows Task Scheduler Tasks?
I need to backup Task Scheduler Tasks. These are already grouped into one subfolder within the Task Scheduler. But the only way I found, is to use
schtasks.exe /query /tn "\"
With that I have to specify every single task... but…

Hoelli
- 43
- 2
- 8
2
votes
2 answers
powershell scheduled task always shows running even once completed
I have a PowerShell script set to run daily as a scheduled task, it is setup with an action of:
Run Program
PowerShell.exe
Arguments: -executionpolicy bypass -file D:\Scripts\SomeScript.ps1
The script completes successfully and in task manager I can…

Aaron O
- 61
- 1
- 1
- 5
2
votes
0 answers
Is there a way to check resource utilization on a cluster running SLURM?
Not sure if this question fits better here or at Unix.SE but I figured it feels more appropriate here. I am running some computation-heavy research on a national cluster which uses SLURM for scheduling jobs.
I realized that a part of my batch…

posdef
- 163
- 5
2
votes
0 answers
Cross platform job/task scheduler
We have a mix of Linux, OSX and Windows servers that use crontab, Windows Task Scheduler, etc to run a bunch of bash/windows scripts, rsync commands, etc.
I would like to replace these OS specific schedulers with a centrally controlled system to get…

Geir
- 141
- 1
- 1
- 5
2
votes
0 answers
How do I modify, disable, or delete a task with stored credentials after a Server Name Change?
I have a task that's been running regularly every 30 minutes for several months. It's got stored credentials for my account, listed as MACHINE_NAME\USER. After the creation of this task, we decided to rename this server, so now my credentials are…

Jay Carlton
- 133
- 7
2
votes
0 answers
Scheduled Tasks running twice on windows server 2012 R2
On my production server (Windows server 2012) I have scheduled various tasks. I have enabled Task Scheduler history but its of no use. LastRunResult of each of my tasks shows Last run of the task was terminated by user which means authenticated…

skilledpeas
- 43
- 4
2
votes
0 answers
Pause the Windows Task Scheduler
Is there a way to temporarily pause the Windows Task Scheduler so it doesn't launch new scheduled tasks in the middle of a critical operation?
I have a PowerShell script that syncs an HA server to an offsite hot backup site. Currently my PowerShell…

Juniper Speers
- 21
- 3
2
votes
2 answers
Turn off "isolation mode" in Vista Task Scheduler?
In Windows Vista (and I assume Windows 7) Microsoft has improved the security of processes that are run through the Task Scheduler, namely http://technet.microsoft.com/en-us/appcompat/aa906020.aspx:
In the Windows Vista Task Scheduler, security is…

Joakim
- 161
- 1
- 7