#scheduledtask

Ænðr E. Feldstrawaeveltstra
2020-06-03

Make sure that the first scheduled trigger of a lies in the future, due to a bug in Windows introduced with Windows Server 2016. The task will never start otherwise.

Ænðr E. Feldstrawaeveltstra
2019-12-20

: when you use the command in to update a , and you previously had the task switches to disabled, then schtasks will be happy to enable that task. Whether you like it or not.

Ænðr E. Feldstrawaeveltstra
2019-05-02

: triggers must be scheduled to a future date in order to get kicked off automatically. Otherwise the will simply and silently ignore the trigger.

This is an unexpected change from older behavior, in which the operating system simply extrapolated the next run time and would trigger the task.

Also, if you schedule for daily execution, auto trigger won't kick in until tomorrow. Instead, schedule once with infinite repeat.

Lovely.

Ænðr E. Feldstrawaeveltstra
2019-04-28

What the heck are you doing, ?

At my wit's end, I have an idea. Maybe I can have the script create the drive letter so it will be available during the session? Yes, I can! With the command.

On first try: fail! Drive letter already is mapped - 3/4

Ænðr E. Feldstrawaeveltstra
2019-04-28

: is terrible at .

I've got a that runs as a network user. I've done this a million times and I know how to get Windows to accept it.

This time, I need that task to run a script. It runs statements invoking and commands.

One of those is . It only works on local disks, including mapped drive letters. It does not speak .

So I map a drive. I assign privileges to that network user - 1/4

Ænðr E. Feldstrawaeveltstra
2018-12-13

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst