Questions tagged [scheduled-task]
A scheduled-task means the launch of a program or script at predefined times or after specified time intervals.
649
questions
1
vote
1
answer
39
views
How to delete a Scheduled task folder with PowerShell?
I need to delete a scheduled task folders on a lot of machines, ideally with PowerShell. I couldn't find anything on how to do that - it seems like the documentation covers everyting but folders.
Did ...
0
votes
0
answers
16
views
Group Policy scheduled task for running .bat file applies, but task does not create
I am trying to add a scheduled task to run a batch file that updates / installs software. I created a GPO to create the task, using these settings:
Task Settings
Task settings 2
Task settings 3
For ...
0
votes
0
answers
61
views
Service Account Permissions for Task Scheduler READ
I have a PowerShell script I've written to do a comparison of Scheduled Tasks between two nodes of our application server cluster. It uses this code to query the tasks from a given server...
function ...
0
votes
1
answer
22
views
How to catch item that triggers a trigger in Task Scheduler?
I want to write a powershell script that get executed whenever a new item/eventlog entry in the eventlog 'Microsoft-Windows-TerminalServices-Gateway/Operational' gets written.
It is easy to create a ...
0
votes
1
answer
22
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 ...
0
votes
0
answers
33
views
Best Method For Clearing User Data On Shared Windows Device?
I have had a client request that I setup a user account on a Windows device that will clear all user profile data once the account has been logged off. The computer is a shared device that will be ...
0
votes
0
answers
14
views
Which server specs to look for for a Scheduler in a data stack?
I'm in the process of building a data stack for a small company : the choice has been made to have a UNIX server running as a "Scheduler". The goal of this scheduler is just to extract data ...
2
votes
0
answers
152
views
Windows Server sometimes has wrong date
Having a Windows Server 2016 (hosted at Amazon AWS EC2) that is running successfully for years.
Since some month I'm experiencing that the Scheduled Tasks (e.g. a task that is configured to run daily) ...
0
votes
0
answers
119
views
How to Save and Force Update of Dynamic DNS on pfSense?
Everytime the IP address of my pfSense changes i have to log-in to the panel, then go to Services > Dynamic DNS > Actions [Edit] > ♻ Save & Force Update
Please, how do i do this using ...
0
votes
0
answers
20
views
How do I log a particular user login event in my active directory
I have to log a particular "install" user logon in my Active directory.
This user has the admin rights to install software and I need to understand where and who is using it.
My first attemp ...
0
votes
0
answers
124
views
Task Scheduler jobs run with expired password user account, but not with locked user account
When setting up a task in task scheduler, our practice for over a decade is that the user who sets it up puts their domain account in the "Security Options -> When running the task, use the ...
1
vote
1
answer
46
views
scheduled task to logon to remote windows 10 [closed]
I need to start some services on another Win10 machine every day which is not available as Service, and requires that someone logs on to the windows machine. The only way to do this is to login to ...
1
vote
0
answers
40
views
Task Scheduler GPO for purging files does not apply due to OneDrive
I am trying to create a task with the following PS script:
$locations="$env:userprofile\Desktop\New folder (2)","$env:userprofile\Desktop\New folder (3)"
$Daysback = "-30"...
-1
votes
1
answer
56
views
Scheduled startup on Win10 Dell Inspiron?
I want my Dell Inspiron 15 3567 laptop to automatically switch on every morning at a particular time. I have been trying to work it out, opened my laptop's BIOS settings, but couldn't find anything ...
1
vote
0
answers
100
views
How to close SFTP session with Azure logic app after task is finished?
We have an Azure logic app that checks every five minutes for files on an external SFTP server. Sometimes the requests fail. The external party indicated that this might be because the SFTP sessions ...
0
votes
1
answer
38
views
Windows scheduled task - task with cmd script runs, but .NET console app doesn't
I'm creating Windows scheduled tasks in a Docker container with Powershell. As a test, I've got a simple batch file which writes the current date/time to a text file once an hour. This works perfectly:...
0
votes
0
answers
225
views
Executing a PowerShell Script With Spaces in Arguments via Task Scheduler on Windows Server 2012
I'm attempting to create a scheduled task on Windows Server 2012 that will execute a powershell script that will create an archive of a specific directory once per day.
The arguments to execute the ...
0
votes
2
answers
149
views
Windows 10 Run Task On Any Domain User Login and then Delete Task
I have a scenario where I need a non-domain joined Windows 10 to reboot after it gets joined to a domain and there's a logon of a domain user - any domain user, not a specific one. I'd also need this ...
0
votes
0
answers
43
views
ADFS backup task scheduler as powershell as admin
I'm trying to create a scheduled task to backup my ADFS using the 'backup-adfs' PowerShell command. I've already created the script and ran it with an admin user (with 'run as administrator') and its ...
0
votes
0
answers
38
views
Windows Server 2012 R2 - Task Scheduler - Multiple Instance Spawned
ServerOs: Windows Server 2012R2
I have a weird scenario occurring on the windows task scheduler where multiple instances trigger at the exact same time. This only occurs after a reboot and after ...
0
votes
0
answers
9
views
Listing Scheduled Tasks
Hi I have some powershell code that lists scheduledtasks (Get-ScheduledTask) and processes them. This code works when run interactively, however when run itself as a scheduled task then some ...
0
votes
0
answers
67
views
Task schedule on AWS EC2 is not working
I setting a mission on schedule, and I choose administrator to run and setting "when loggin EC2" or "when ec2 start up", but they are doesn't work in every morning, it will close ...
1
vote
1
answer
118
views
Is it possible to use both `After=` and `Before=` options towards the same unit (service) together in systemd service?
The Type=oneshot unit A.service is started hourly by A.timer and it Wants=B.service, but runs Before=B.service. Unit B.service is also Type=oneshot. The requirement here is that their processes ...
0
votes
1
answer
150
views
Google Jobs: Quota exceeded for the number of App Engine Cron jobs
Yesterday at 8:00 am, I had a quota of 250 app-engine jobs.
At 9:00 am, I deployed a yaml file with 280 jobs, I got this error:
"error": {
"code": 429,
"message": "...
0
votes
1
answer
3k
views
Create a Windows Schedule Task via GPO to run as specified user
I am trying to create a Scheduled Task via Group Policy (Computer Configuration\Preferences\Control Panel Settings\Scheduled Tasks), to run as a specified domain service account.
However, when Group ...
1
vote
1
answer
27
views
How does update management works for virtual machines in Azure?
We defined the execution's time of the update management with a runbook for 6 hours.
But I would like to know : Does update management work asynchronously (every virtual machines are getting updated ...
0
votes
0
answers
145
views
Windows Task Scheduler cmd commands for restarting a failed task
I used these commmands for creating a task scheduler which runs an application daily at specific time.
SCHTASKS /CREATE /SC DAILY /TN "MyTasks\Notepad task" /TR "C:\Windows\System32\...
1
vote
0
answers
23
views
Unable to modify Scheduled Task Windows 2008 SP2
Issue:
The server is a VM on vCenter, OS is Windows 2008 SP2.
There is no performance issue.
Everything is fine except, unable to modify Scheduled Task.
We can create a new Scheduled task, but once ...
0
votes
2
answers
937
views
Server 2019 custom PowerShell script is getting queued (Code 325)
I'm a newbie to Windows Server so I'm not sure if I'm doing something wrong, or if the server is at fault here.
I come from a Linux background and I wanted to make something similar to a cronjob. In ...
1
vote
1
answer
171
views
Task scheduler history on who enabled a task
We have several deactivated scheduled tasks and someone activated one. Is there a way to see who did that?
There is no such information on the task's history.
It is on windows server 2012
0
votes
1
answer
171
views
Task scheduler job not terminating after specified timeout
I have updated the "stop the task if it runs longer than" to 1 min. But the task job won't terminate after a minute. What am I missing here? And the job doesn't have any triggers configured.
0
votes
1
answer
403
views
How to use gMSA account with Task Scheduler and Powershell to manage DHCP filters
I am struggling to keep DHCP filters in sync between multiple DHCP servers, each of them is running on a domain controller. I wrote a simple script to get filters from master DHCP server and push them ...
0
votes
1
answer
297
views
Windows Server: scheduled backup not visible in Scheduled Tasks?
I have set Windows Server 2016 Standard to perform a local backup to a usb drive on a nightly basis at 9pm. The last several runs failed because the destination was disconnected. I've since ...
1
vote
0
answers
63
views
OpenSSH Windows server 2012 : SCP process randomally working : with passowrd authentication
I have created a openSSH SCP bat script and scheduled task to run as SYSTEM. I use publickkey authentication method. For that converted a private key of winscp to openSSH key using putty key gen and ...
1
vote
1
answer
762
views
Powershell script to create scheduled Task with argument
i have this Script which is checking if a named service is running. In the actual case its checking for "RSCDsvc" service.
if(!(Get-ScheduledTask | Where-Object {$_.TaskName -like "...
0
votes
1
answer
466
views
Looking to increase font and bring message to front in a pop-up message via task scheduler
I am creating a task in task scheduler with powreshell with the argument below. I'm making a pop up message come to a logged in user at 11 AM every day for two weeks.
-WindowStyle hidden -Command &...
0
votes
0
answers
306
views
Scheduled Task (powershell script) causes 'audit failure' SeTcbPrivilege error in Event Viewer
On Windows Server 2012, I'm trying to create a Scheduled Task, that runs as a Domain user, that copies a file from a different server to the local server, then deletes the file locally if the date ...
0
votes
2
answers
2k
views
How to run a VBA macro from the Task Scheduler in Windows Server 2016?
I have a VBA macro for extracting some data daily. The Macro doesn't have any interactive component like a Message Box, Custom Inputs, or Input Box. It doesn't expect any user input, it only downloads ...
0
votes
1
answer
567
views
Update Task Scheduler job password on multiple machines
Here's the deal: the company's policy is to update Service Account passwords every 180 days. Problem is, I'm using those service accounts on about 20 servers, running various jobs - so every 180 days, ...
1
vote
0
answers
177
views
Least Privileges for Windows Scheduled Tasks
I want to configure a Windows Server 2012 R2 and a Windows User (Active Directory Domain) in a way that the user has least privileges to access (read) a windows scheduled task on a remote windows ...
1
vote
0
answers
435
views
Allow Windows Server 2016 user account to run Scheduled Task that was set up to run as another account
I've created a Scheduled Task via schtasks.exe so that it runs as an elevated account [A]. However, my reduced privilege account [B] can't manually trigger the task to run through the Task Scheduler ...
0
votes
0
answers
714
views
Powershell PSDrive Not working under Scheduled Task
I am trying to move files from a DMZ server to a domain server via powershell I can get it to work from an interactive session however if I try to run it under a scheduled task the copy fails. I ...
0
votes
1
answer
355
views
Windows Scheduler: Task Start Failed
I'm trying to learn about task scheduling in Windows 10, so I set myself the task of trying to schedule a script that writes a blank file called test.txt to the user's home directory.
I did this by ...
1
vote
0
answers
159
views
Windows Event Filter to Trigger A Scheduled Task Using Custom Data
I need to create a custom event filter to trigger a scheduled task to recover a hung process.
Here is the event log in XML format:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/...
1
vote
0
answers
408
views
Running a program from Task Scheduler without user being logged in. Windows Server 2019
I'm trying to run a program on Windows Server 2019 Standard with a user that that doesn't have to be logged in.The program reads the config file from the users profile. We are using User Profile Disks....
0
votes
0
answers
46
views
In Windows Server 2016 is there a way to run a scheduled task, via windows script, as an admin, using credentials incl. pwd?
Ok first, yes, I know this will be looked at as a security risk.
The plan is to code this into an .exe; the pwd changes annually so there is very little hassle in changing the source code and re-...
1
vote
0
answers
57
views
Task scheduler can't running after update in same day
i have one task scheduler with 2 action.
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/...
0
votes
1
answer
727
views
Scheduled tasks on Server 2019 don't work when user is not signed on
I have about 30 VB Apps that are humming along on a Windows 2008 server using scheduled tasks. They all do a variety of simple to complex tasks from pulling data and merging letters on a monthly ...
0
votes
0
answers
201
views
Hung Scheduled Task
I have a specific scheduled task (one of several) that runs on a Server 2019 server. This scheduled task runs a Windows PowerShell script that interacts with a couple of REST APIs and logs to a file.
...
2
votes
2
answers
3k
views
Windows 10 Scheduled Task does not use domain credentials to access network resources
I have a simple task, which for the purposes of testing, consists of a batch file with two lines:
whoami >result1.txt
copy \\server\share\test1.txt C:\Users\xxx\Documents > output.txt 2> ...