Skip to main content

All Questions

0 votes
1 answer
413 views

How to pass arguments from a windows 10 scheduled task to a powershell script onLock and onUnlock events/triggers

I am trying to setup the following scenario using a windows 10 task scheduler. A logged in user locks or unlocks the workstation A powershell script gets triggered and the PC-NAME and a USER_NAME of ...
CAIB-scay-lact's user avatar
0 votes
1 answer
716 views

Starting a Scheduled Task from Command prompt gives Access Denied

I have a FreeFileSync setup that backups my files. I need non-admin users be able to launch the backup. I created a scheduled task with the name "FreeFileSync PC Backup" and configured it ...
LPChip's user avatar
  • 62.4k
1 vote
1 answer
2k views

How to make sure a task is run at Windows startup?

I have trouble running a PowerShell script and/or and .exe file on boot with Windows (both win10 and win11). I have tried multiple methods: Put the script inside shell:startup Create a task with Task ...
Livy's user avatar
  • 1,176
2 votes
0 answers
39 views

How to run scheduled task only if none of a group of programs are running?

I have been using Task Scheduler to launch and terminate compiled AutoHotKey scripts depending on whether other apps are launched or terminated. I used information on custom event filters from this ...
Audio.Anchorite's user avatar
0 votes
1 answer
80 views

Parameter "262144" (top-most attribute set) in Task Scheduler does not work (VBScript)

Parameter 262144 (top-most attribute set) in Task Scheduler does not work. When creating a task to run a .vbs file, parameter 262144 does not work (does not open the window on top of others), although ...
moninah's user avatar
  • 35
1 vote
1 answer
263 views

Script detects and runs when USB Drive with unique serial number is connected

Script should run when it detects USB drive with specific serial number is just plugged in. But its giving this error msg: { Cannot convert value "Win32_PhysicalMedia='K:'" to type "...
gehovev361's user avatar
0 votes
0 answers
242 views

How to automate NirSoft MultiMonitorTool using Windows task scheduler?

I'm using the freeware software MultiMonitorTool to automate the configuration of displays on a Windows 11 computer. I got two Batch scripts that "do" (disable the physical display) and &...
Florian Wolters's user avatar
0 votes
1 answer
3k views

Configuring a scheduled task to run whether or not a user is logged in Powershell

I'm setting up scheduled tasks in Windows Server 2016 through Powershell (not through schtasks.exe). $user = "Administrator" $trigger = New-ScheduledTaskTrigger -Daily -At 0:00 $action = ...
alex's user avatar
  • 186
1 vote
1 answer
2k views

Powershell: Get-StoredCredential not working when script is run from task scheduler

I am writing a powershell script which shall periodically run to backup the contents of a remote folder. That remote folder is mapped as a WebDav share to my Windows drive G:\. This post and this one ...
Traveler's user avatar
  • 336
1 vote
1 answer
987 views

Programmatically Enable LG Gram Laptop Keyboard Backlight at Startup

I can't find anywhere how to automatically have the backlight turn on at either startup or after sleeping/hibernation after triggering a login event. Is it possible to turn this on via a registry ...
RTG's user avatar
  • 11
0 votes
0 answers
1k views

How to schedule windows task with trigger logoff/shutdown and without elevation or stored credentials?

Important: Please be aware, I search for a solution does not need either elevated rights (high-user-integrity) nor user credentials to be entered. So, this is no duplicate. Background story: In ...
Dragodraki's user avatar
1 vote
1 answer
916 views

Windows Task Scheduler Run whether user is logged on or not On remote Server

I have a Powershell script I want to schedule. With this script, I want to send out an email. When scheduling it only when I'm logged on, everything runs fine. The email gets sent out, no issues ...
PAT_The_Whale's user avatar
0 votes
0 answers
254 views

Windows task scheduled powershells script that uses powercfg.exe prevents system from sleeping

Long story short, I have a task scheduled to execute a PS script ever 15 minutes that is checking electricity spot price. When it's higher than I want, it sets powercfg.exe -x -standby-timeout-ac 60 ...
red's user avatar
  • 2,048
0 votes
0 answers
308 views

Schedule tasks on windows 11: administrator has no permissions

Trying to schedule a task, Enter user account information for running this task. User account selection drop down: sa abc700ge5d28c9a2 <myUserAccount> Where do the first two user accounts ...
eastwater's user avatar
  • 131
1 vote
0 answers
122 views

Windows Scheduler, process terminate event trigger fail because process started from external drive don't use disk letters

I am searching for posts that tell people how to start a new task when a specific process got terminated, and finally found some old posts such as "How to start a program when another one is ...
Juser's user avatar
  • 11

15 30 50 per page
1
2
3 4 5
24