Questions tagged [scheduled-task]

A scheduled-task means the launch of a program or script at predefined times or after specified time intervals.

Filter by
Sorted by
Tagged with
0
votes
1answer
22 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 wont terminate after a min. what am i missing here. And the job doesnt have any triggers configured.
0
votes
0answers
11 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 ...
-1
votes
0answers
33 views

How to create a scheduled task via GPO that runs at startup as SYSTEM with highest privileges for only certain machines

All of our workstations in the building are cabled with CAT5e, and because of the way things were built at construction time it's going to be prohibitively expensive to swap out the cabling for ...
0
votes
1answer
38 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 ...
0
votes
0answers
19 views

Windows Admin Center gives an error when creating an On Event triggered task

I am trying to schedule a task for the server to send an email when the server backs up successfully. Following the instruction here. The server is running Hyper-V non-GUI with Windows Admin Center. ...
0
votes
0answers
48 views

Windows SCHTASKS /DU Indefinitely syntax in CMD?

My task from CMD is: schtasks /create /tn "Task" /tr '"C:\Task.bat"' /sc ONCE /sd 25/03/2021 /st 20:57 /ri 1 /rl highest Which syntax should I use for the Indefinitely option? /DU ...
0
votes
0answers
75 views

Task Scheduler Last Run (0x1) python script

I have been struggling with this and I am going further and further down the rabbit hole here. I am trying to run a python script out of a .bat file contents being: @echo off "python path\python....
0
votes
0answers
28 views

Script to search for specific task in scheduler and delete this task

I am quite new in this area and I am bit lost but when I have looked to: https://serverfault.com/questions/604673/how-to-print-out-information-about-task-scheduler-in-powershell-script ,this was ...
1
vote
0answers
27 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
1answer
81 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
1answer
110 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
0answers
117 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
0answers
23 views

Task scheduler chaos

We use the Windows Task Scheduler to run a task to install Windows patches on a specific day of the week, such as the second Monday, third Wednesday, ect. Starting in November of 2020, we've hit an ...
0
votes
2answers
440 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
1answer
36 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
0answers
48 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
0answers
275 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
0answers
209 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
1answer
52 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
0answers
96 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
0answers
168 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
0answers
18 views

List of users who have access to a specific job schedule windows

as I'm performing some auditing to identify users who have access and able to amend/update a specific job schedule configured. Can I ask for guidance on how I can view the list of all users who can ...
0
votes
0answers
37 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
0answers
43 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
0answers
177 views

Non-admin remote task triggering

I have a Windows Server 2019 server, with a scheduled task that needs to be run as a non-administrator user. I have done the following: Added the user to the local Backup Operators group Added the ...
0
votes
1answer
166 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
0answers
68 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
2answers
2k 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> ...
1
vote
0answers
139 views

Scheduled task on VM only works interactively/manually

I am trying to get a scheduled task to run on a Windows Server 2012 R2 virtual machine. When I RDP in and test the task, everything works manually. The task is scheduled to run nightly and it appears ...
0
votes
0answers
210 views

Server 2019 - Task Scheduler tasks stop running

I have a set of about 5 tasks that have been running correctly for over a month on a 1 minute and 5-minute basis. Today at 4 pm, they stopped running, all of them, for no apparent reason. I can ...
0
votes
1answer
592 views

New-ScheduledTaskTrigger using variable for -DaysofWeek

I'm writing a script that takes the user's input to then Register-ClusteredScheduledTask I'm trying to use a string for the -DaysOfWeek, but am only receiving various errors... New-...
0
votes
0answers
81 views

How can I run a scheduled task on domain controller whenever a domain user logs into the domain?

I need to log domain user logins & logouts to an Oracle database. Not all computers have Oracle drivers, but one of the domain controllers does. So I have created a script which writes the ...
2
votes
1answer
4k views

Windows 10 run an interactive scheduled task to run for any interactive user

I want to setup a windows 10 task scheduler to run a GUI based tasked interactively for any logged on user. Right now we have to explicitly specify the user name, so the task can only be run for this ...
0
votes
0answers
215 views

Windows Update killed server reboot batch job. Is there a replacement?

I have been creating a scheduled task with powershell to use a group managed service account (the only kind allowed) on Window Server 2016. Did this approximately one year ago on 5 2016 VM's, and it's ...
0
votes
0answers
40 views

Windows (2016) Task Scheduler does not always fire repeated triggers

I have a pair of scheduled tasks that start at 6:00 and 6:03 respectively each day and repeat every 15 minutes for 18 hours. This has worked on one (2008R2) server for years, but that server is ...
0
votes
1answer
1k views

Task Scheduler failed … Error Value 2147942402

I tried to schedule a task by schtasks /create /tn Test /sc minute /mo 1 /tr "del /f \"%UserProfile%\path\file\"" ...however the Scheduler always ends up with the following type of error: Task ...
1
vote
0answers
1k views

Creating scheduled task from powershell using xml

I was able to export all of my scheduled tasks using: All i need to be able to do is import the scheduled task from the xml file I have about 100 of these so any help would be appreciated. $...
1
vote
0answers
288 views

How do I create a scheduled task to empty all domain users' Recycle Bin on the first of every month?

As the title suggests, I would like to empty users recycle bin on the first of every month. This is what I have so far. I would like more of a proof read to know if I am going about this the right way,...
0
votes
1answer
51 views

Stopping powershell background jobs at a scheduled time?

I started a few powershell jobs and I want to stop them at a scheduled time. I know the command to stop them is Stop-Job -Name $someName but I don't know how I can schedule this. I mean I realize ...
1
vote
1answer
882 views

Scheduled task runs twice after DST

We have a process in Task Scheduler that runs at 8:10am on certain days of the month. This has worked fine for years. We u/ged to Server 2019. Then, after this year's DST switch over and server ...
1
vote
1answer
102 views

Schtasks delete userprofile

I have two scripts, One of them in batch for a weekly task schedule task_del_user.cmd SCHTASKS /Create /SC weekly /D MON,TUE,WED,THU,FRI /TN MyDailyDelete /ST 15:00:00 /TR "Powershell -...
1
vote
1answer
181 views

Use systemd-run to schedule command after reboot

I need to schedule a command to run at a certain time in the future. systemd-run with the --on-calendar option seems like it can do that, except that it seems the service is only stored ephemerally ...
0
votes
1answer
66 views

How to put monitors into standby mode during certain hours using Group Policy

Just a normal Windows Server 2008 R2 and Windows 7/10 office environment with about 35 clients. I would like to implement a domain-wide power plan for our office computers to put their monitors in ...
0
votes
0answers
425 views

Task Scheduler runs a console application in the wrong way

I have configured a task to be run in Task Scheduler. That task is a console application. I configured action to be "c:\path\app.exe >> c:\path\logs\output.log". When I manually run the task from ...
0
votes
0answers
378 views

Scheduled task returns error 0xff but success

I have a scheduled task that runs a batch file, and even though I can see the results of it completing successfully, according to the task scheduler it fails with error 0xff, every time. title ...
0
votes
1answer
220 views

Do Azure logic apps wait for completion before firing again?

We have an Azure logic app that fires every 60 seconds. It fetches a URL. Typically this would only take < 1s, but sometimes if there's a lot of work to do on the other end it can be higher. ...
0
votes
1answer
62 views

How to keep a local folder’s contents synchronized with a network share? (Windows)

I would like to have a local folder on all of my domain connected computers kept in sync with a share on one of my servers. Only Domain Admins and the SYSTEM account should have Modify permissions to ...
1
vote
1answer
1k views

Running scheduled task on remote server

We have 3 scheduled tasks that run on a server. Randomly someone in HR will ask us to run one of these tasks for them out of schedule. To make this easier and more expedient for the HR folks, i'm ...
1
vote
1answer
2k views

Windows Server 2019 scheduled tasks must be in future

As a follow on to the Windows Server 016 scheduled task must be in future, can anyone confirm if the same quirk exists in Windows Server 2019? When I was tidying up the Task Scheduler Library with ...
1
vote
1answer
1k views

Host ssh-rsa key is refused by WinSCP when connecting on scheduled task, but not when launched manually

As part of a scheduled task that runs on a Windows Server 2012 machine, I use WinSCP to connect via sFTP using credentials and ssh-rsa key. When the scheduled task runs, the connection fails with the ...

1
2 3 4 5
13