Questions tagged [task]
The task tag has no usage guidance.
34
questions
0
votes
2
answers
51
views
Ansible variable register in two tasks either one or the other
I have an Ansible role that manipulates some Zabbix components.
This role has this set of tasks to check the Zabbix Agent type (1 or 2) and version.
- name: Check if Zabbix Agent 2 is installed
...
0
votes
1
answer
66
views
Why cant i kill the task remotly through my .bat Script? [solved]
I want to write a .bat Script, where i want to kill a task remotly from my pc on my windows server 2022.
When i try the command "taskkill /u Administrator /p mypassword /s 192.168.178.226 /im ...
1
vote
1
answer
723
views
Windows 2012 Server - Task not running with same setting as others which run perfectly
I have a Task created on Windows 2012 Server, that is set to run when I login, and it does just that, when I login it starts running, and if I want to I can run it manually:
https://i.stack.imgur.com/...
0
votes
1
answer
101
views
Alternate a task Windows Task Scheduler
I'm looking for a good way to alternate a task within the Windows Task Scheduler.
One Saturday, run Task A. Then the next Saturday, run Task B. Then repeat.
Any suggestions on how to accomplish that ...
-1
votes
1
answer
9k
views
The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout
I am getting issues on my below task.
- name: Deploy incremental changes using rsync
command: "sh run"
register: data
I am trying to print data down below but keeps getting the above ...
1
vote
1
answer
308
views
Rename Files in Folders
I am using windows server 2016 and I am facing a problem.
We have been making some changes and I am now in need of having a folder that whenever a file(in this case a specific type (.msg)) is placed ...
0
votes
1
answer
521
views
Powershell script won't restart on failure
I'm running windows 10 pro.
I have a powershell script that starts every day at midnight and runs all day. It's controlled by the Task Scheduler. The script itself works fine and in the event of an ...
0
votes
1
answer
279
views
GPO - Schedule Backup from users Desktop
Im Using Robocopy to copy files from my users Desktop to their Personally folder on the Server..
im using robocopy C:\Users\%username%\Desktop W:\skrivebord /xo /fft /E
which works perfectly, when ...
0
votes
1
answer
235
views
atd creates too many empty task files and hogs cpu
There are empty task files in the atd task directory (/var/spool/cron/atspool), causing atd to hog CPU and fill up syslog too quickly!
(When atd encounters an empty file it massively spams syslog with ...
1
vote
1
answer
159
views
Task Schduler Log issues
I have been using task scheduler for scheduling batch jobs and I have enabled tasks history. However, I could not find any log file in C:\Windows\Tasks.
So where could I find the log files for that?
29
votes
6
answers
82k
views
Ansible: How to run one Task Host by Host?
On the play-level, we have serial: 1 to allow us to run the whole play one host at a time. But I haven't found a simple way to do this on a single task. This is especially relevant, if the task in ...
-1
votes
1
answer
2k
views
Run Windows Task Scheduler through Web Interface [closed]
Is it possible to run (on demand), not schedule, a simple task that has already been scheduled under Windows Task Scheduler, through a web interface?
Any suggestions are appreciated.
Thank you
Info:...
2
votes
1
answer
612
views
Powershell: PSScheduledJob for non-admin
Is there a way for non-admins to use the PSScheduledJob module? For example, I tried Register-ScheduledJob without admin privilege, but it returns "Access is Denied" error. We know that we can allow ...
0
votes
1
answer
2k
views
Windows Task Scheduler executing old triggers even after recreating the task
I had this task working perfectly until I changed the schedule. After I changed the scheduled time 5 minutes earlier, I noticed that in the history, it still triggers the old schedule. I tried ...
1
vote
0
answers
183
views
Win Srv 2012 task scheduler - trigger based on domain workstation logon/logoff/sleep/wake
I've got a domain controller (only one) with Win Srv 2012 and a number of workstations with Win 7. I need to run a task on a DC straight after domain user logon/off/sleep/wake to a workstation. The ...
1
vote
1
answer
2k
views
Should XenApp users have access to task manager?
I have a XenApp 6.5 farm of around 30 servers running on Server 2008 delivering a published desktop.
A fair percentage of our help desk calls are around hung sessions. It's not an excessive amount ...
1
vote
3
answers
340
views
Capture a list of processes ran
Is there a way to capture a list of all of the processes executed on a machine and their command line arguments if any?
I know that process explorer will allow you to do this for a currently running ...
0
votes
1
answer
2k
views
Scheduled Task fails to stop
I have a Scheduled Task on a Windows (64-bit) 2008 R12 (SP1) server.
It’s a housekeeping task and I was expecting its first run to take some time catching up on backlog of actions , so set what I ...
4
votes
1
answer
14k
views
To create a scheduled task which can execute without user logged on --using vbscript
I need to execute a file on a remote machine without logging into the machine.
I created scheduled task for the same. PFB the code snippet
scheduled_task = "schtasks /Create /S <> /SC nologon /TN ...
4
votes
2
answers
18k
views
SCCM - Where to put the create user step
I've implemented SCCM on our server and am now running task sequences to migrate from Windows XP to Win7.
But we also need to be able to add a new local admin, because disable the default ...
0
votes
1
answer
986
views
MDT task not executing cmd properly
I have done a little experimenting with this task and I have the majority of it working. Basically the Task runs this command line
cmd.exe /c set y1=%date:~-4,4%&set m1=%date:~-10,2%&set d1=%...
3
votes
4
answers
20k
views
how to schedule a task on all weekdays and then disable only on holidays
We would like to scheduled a task on Windows Server on all weekdays. At the same time, the task should be disabled on the holidays. Please advise.
0
votes
1
answer
246
views
IIS vs Remote Desktop for Remote Task Management
I'm researching the best way to set up something like this: I have a client who wants to be able to kick off a data import/processing/export routine remotely -- from home, from his smartphone, ...
0
votes
1
answer
507
views
Continue running a task with terminal disconnected?
Say I'm running a task on a remote (Ubuntu) server which last hours, but I need to disconnect my shell client now. Foolishly, I didn't use screen or think of starting the task with nohup.
Is there a ...
0
votes
1
answer
666
views
Windows XP Scheduler - Error Adding Another Task (data area passed to a system call is too small)
I'm getting an error "data area passed to a system call is too small" when trying to add a task to the Windows Scheduler. We currently have about 20 tasks in it.
Googling the issue, we found to stop/...
2
votes
2
answers
779
views
Schedule a bug export from TFS
Is there any way that I can schedule a bug export from TFS. I have my query all set up and can manually export to excel - ideally I want to be able to run this export every night to a csv file sat on ...
2
votes
5
answers
11k
views
Server 2008 Task Scheduler and a CMD file
Task Scheduler - I have a .cmd file I'm trying to execute on a regular basis through Task Scheduler. I've set the task so that it points to the cmd file. I want the task to execute even when no one ...
2
votes
4
answers
10k
views
Why would Windows Task Scheduler spawn multiple instances of the same task that run into each other?
Overview:
I use Windows Task Scheduler to run automated tasks. Occasionally I will see that randomly a task has failed to perform its duties. When I check Task Scheduler to see what has occurred in ...
1
vote
2
answers
1k
views
Have a process which runs nightly to automatically zip old files?
I have a file share, and I want a process which enumerates files on that share and automatically creates a 7z self-extracting exe of files over 1 month old. On a different share, I want to create a 7z ...
144
votes
8
answers
64k
views
How do I rename a task in Task Scheduled on Windows Server 2008 R2
I have some tasks in the Task Scheduler on Windows 2008 R2. I created them as the admin and I'm logged in as the admin. I have no easy way to rename the tasks. The only way I can is to export the task ...
0
votes
2
answers
3k
views
Win Server 2008 Task Scheduler to run PHP file
I am trying to figure out how to open and close IE to run a PHP page on
a daily run.Not sure what to do once I get to the "Start a Program" section
of the task wizard to achieve this.
1
vote
3
answers
7k
views
TFS: What does Triage mean?
So I'm installing TFS for our developers to use, and I'm supposed to be the expert on this TFS thing since I'm the one that suggested we get it, but I don't know the answers to some of their questions,...
2
votes
2
answers
2k
views
can server 2008's task scheduler run a php file?
I have a server 2008 64 bit machine with php5 via fastcgi installed. I want to run a .php script every day at 3 AM. I set up a task and "Last Run Result" says "%1 is not a valid Win32 application"
...
0
votes
2
answers
933
views
Scheduled tasks fail to start unless I'm logged in to the server
Tasks need to open a CMD window and pass net use commands, then do a DIR command, pipping the output to a file on the server.
Log in as either me (Sysadmin) or with one of the system accounts and task ...