Skip to main content

All Questions

1 vote
1 answer
24 views

Batch script does not output file when limited user runs it from an administrator task manually

The Problem: I want to let a limited user restart a Service. This requires admin privileges, and thus the limited user is unable to restart individual services. I also want to create a timestamp file ...
0 votes
0 answers
15 views

Task Scheduler Running Multiple Instances

I am encountering an issue with Task Scheduler on a Windows Server. I have a startup task that runs a program/script via Git Bash, which points to a .sh file that executes a Python script every minute....
2 votes
2 answers
22k views

Downloading all files from URL Folder to local folder

I want to download all contents from a url using Windows 10, like https://example.com/folder This folder may contain 100 files, and I want to put them all into C:\backups I am going to schedule this ...
1 vote
2 answers
8k views

How to solve PowerShell error "Cannot connect to CIM server. The specified service does not exist as an installed service"

I'm trying to run a simple PowerShell script invoked from a .bat file. The script's purpose is to update the properties of an existing Windows Task Scheduler task so it will run at a time specified ...
0 votes
1 answer
21 views

How to schedule a task that runs once every day only if the user has logged in

When an user logs in to his pc, we need to perform a certain task, but this task should only be done once a day. So if the user logs in/out several times a day, only the first time the task should ...
2 votes
0 answers
22 views

Task Scheduler Windows 11 not waking the computer

I know that variations of this have been asked previously and I have read most of the responses to older threads. However I am using a newer OS and those older threads have helped me get this far but ...
1 vote
1 answer
4k views

Run task forever in Windows Scheduler, restart if not running

There's a lot of ambiguity about Windows' Task Scheduler ability to receive return codes from scripts. I've found several useful Stack Exchange answers but none of them quite fit my need. I'm ...
0 votes
1 answer
46 views

Run script elevated as different user on remote machine

I have a Windows Scheduled Task that runs a Powershell script file A.ps1. This task runs mostly locally and does NOT need elevation/administrator access. However, a few steps need to run on a remote ...
0 votes
1 answer
38 views

How does Windows Task Schedule run tasks with multiple actions?

If you have a Windows Tasks Schedule Task with multiple actions, how does it run them? Does it kick off each additional action without waiting for the previous action to finish, or does it wait until ...
0 votes
0 answers
123 views

Windows Security Event ID 4800 (lock screen) on Win 11 Pro for Workstations

I have a task that is triggered on PC1 whenever the user locks their computer. This works fine. I just set it up the same on PC2, but the Event ID 4800 is not logged on this machine when the user ...
2 votes
2 answers
3k views

Run a scheduled task only once based on an event

I have a task that I want to run just once each time the system memory reaches less than 10 %. Scheduled Task Trigger Would this run until the memory is less than 10% or will it run just once? If it ...
1 vote
1 answer
12k views

Why user accounts do "not have permission to run this task"?

I am creating a Scheduled task configured via PowerShell using the XML: $LogonTask_xml = @" <?xml version="1.0" encoding="UTF-16"?> <Task version="1.3" ...
0 votes
0 answers
15 views

Aside from the Task Scheduler, how can tasks automatically fire on a fresh Windows Server 2019 machine?

I have a Windows Server 2019 machine. It is pretty much an empty box. My company has installed a handful of things on it, but I am convinced that I have checked it all. Mysteriously, the CPU goes wild ...
1 vote
1 answer
134 views

Windows 11 Task Scheduler - How to stop a running powershell script task?

In Task Scheduler, how may I stop a running task sooner than 1 hour, say immediately after execution? I've tried manually entering '1 minute', but the Task is still 'running'. Suggestions? I'm running ...
2 votes
2 answers
9k views

Is there a way to execute a shortcut on a schedule

Is there a way to execute a desktop shortcut on a scheduler? I've tried the task scheduler but when I specify the shortcut, it changes it automatically to the underlying exe file.

15 30 50 per page
1
2 3 4 5
24