All Questions
33
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
1
answer
972
views
Running as an admin, is it possible to create a non-administrative scheduled task?
I'm working on a project responsible for establishing three callbacks for the execution of commands. These are supposed to represent three different scenarios: Regular Command Prompt, Administrative ...
3
votes
2
answers
2k
views
Windows task scheduler not calling the script when trigger is true
I have scheduled the in-built windows task scheduler to run python code every day, the trigger time is 11.14 AM. The thing is, I told the scheduler to run cmd and invoke the keywords python pathtofile....
5
votes
1
answer
5k
views
Allowing non-admin users to trigger Task Scheduler task via shortcut
I have a piece of software that can only be licensed under the current user, and I need to have it available on a lab machine where I don't know who will be logging in. I have a script that runs in ...
1
vote
1
answer
825
views
Create Task Scheduler adding wake computer condition using batch script
I have a batch script to create a task scheduler but I want to add the condition to WAKE THIS COMPUTER TO RUN THIS TASK. The purpose of this task is the wake the computer from sleep mode. I have ...
1
vote
1
answer
2k
views
Powershell script does not get executed by Task Scheduler
I have a simple Powershell script (ps1 file) that clears the contents of a existing file, and then appends date and status of a service to the file:
Clear-Content \\MyDomain\Homes\Usr\MyUser\"...
2
votes
1
answer
3k
views
Create Scheduled Task xml file with batch file
I'm trying to make a batch file that creates an xml file then imports that file into scheduled tasks, plus a few other things. I know how to import the xml and do everything else I need, but I can't ...
0
votes
1
answer
7k
views
Run Windows command line in Task Scheduler without opening a cmd window
I set up a Windows task schedule to run every five minutes. The task starts the cmd.exe program and runs a command.
The problem is that every five minutes a cmd window is opened and it's annoying. Is ...
1
vote
1
answer
2k
views
Powershell script runs different under task scheduler
I have this powershell script scheduled (technically, it is run by a cmd file, but please see below). The script is
(New-Object -ComObject 'Shell.Application').Windows() | ForEach-Object {
$...
0
votes
0
answers
518
views
How do I view a hidden command window (Windows 10)
So for full context I've set up a Task Scheduler process to run a local Minecraft server as soon as the PC boots up, but it's running in the background and I want to be able to view the command window ...
0
votes
1
answer
2k
views
Delete Files with Task Scheduler using ForFiles
I am trying to delete all folders and files on a nightly basis using task scheduler. I am using the following command in the actions:
Program/Script: forfiles
Arguments: /S /P C:\Users\david\AppData\...
1
vote
1
answer
2k
views
Running gpupdate in System Context stuck in memory
I've run into an interesting problem with running PowerShell via scripts through ConfigMgr(SCCM) clients. One of the relatively newer features of SCCM Current Branch is the ability to run PowerShell ...
2
votes
2
answers
4k
views
Unable to run batch starting Excel as scheduled task
I have the following Skript that was previously run manually:
set DIR="X:\SYSTEM\MAKROS"
X:
cd %DIR%
start /wait EXCEL.EXE /e-GENERATE_REPORTS BSYSTEM.XLA
When manually started, this works just fine....
7
votes
3
answers
22k
views
Start service from Task Scheduler as minimised
After creating a scheduled task after following this Superuser question, I can successfully start a service without the UAC prompt. The options selected were:
Start a program
Program\script = C:\...
0
votes
0
answers
2k
views
mysql command using task scheduler in windows
have a script which stops and start the replication in MySQL. I am able to run this command in command prompt but unable to setup in task scheduler of windows. In CMD I'm using below step to run query:...