Does the Windows Task Scheduler have a way to run a command a settime after the user logs on?

  • Thread starter Thread starter vfclists
  • Start date Start date
V

vfclists

Does the Windows Task Scheduler have a way to run a command a set time
after the user logs on?

I prefer it to run the first time anybody logs on, whether manually or
if the computer is set to logon a particular user automatically.

/vfclistsGUY
 
:
Does the Windows Task Scheduler have a way to run a command a set
time after the user logs on?

I prefer it to run the first time anybody logs on, whether
manually or if the computer is set to logon a particular user
automatically.

Not directly as far as I know, but you could wrap the command in a .bat
file that uses a ping command to delay it. For example, to delay 30
seconds use:

ping 127.0.0.1 -n 31

That is, add 1 to the number of seconds and use that as the setting for
the -n parameter. Not particularly accurate, but should work reliably.

Then, since I don't know of a way for a Scheduled Task to apply to all
users at logon, either configure a default logon script for all users
with group policy editor or add it to the LocalMachine Run registry
entry.
 
Back
Top