Jump to content

Recommended Posts

Posted

Hello.

How can I set a scheduled task during the unattened installation? Is it simply copying the [TASK].job file to the %systemroot%\tasks folder?

Thanks. :D


Posted

First no it isnt that simple, you need to add to the HKLM\...\run the key that will start it on first run "mstinit.exe /firstlogon" This is the scheduling agent then it should add the jobs to the queue.

This may not be important to you but just remember that by having tasks running this way you can never fully close ports 135, and 445. You probably dont need these ports, but just by using the scheduler you reopen them.

I use an alternative called pycron. It works well and you can just configure it and not have to worry about the job files

Posted

Thanks guys. I will try it. Especially the AT command.

you need to add to the HKLM\...\run the key that will start it on first run "mstinit.exe /firstlogon" This is the scheduling agent then it should add the jobs to the queue.

Do you mean HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run ?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...