January 17, 200521 yr 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.
January 18, 200521 yr 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
January 18, 200521 yr Run 'AT /?' in a DOS window, that should have what you're looking for. There was another command also, can't remember right now.Platform: WinXP
January 18, 200521 yr Author 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 ?
January 18, 200521 yr can you please upload AT.exe from your \system32 folder (I think this is where it should be)? I seem to have removed it. Thanks!
January 18, 200521 yr Try "SCHTASKS', it seems to be AT's replacement. Seems to be alot more flexible as well.
January 18, 200521 yr As Spyder recommended - Schtasks and I am also using Soon simetime (specially on remote computers)
Create an account or sign in to comment