Solved

Windows Scheduler proglem

Posted on 2004-08-11
9
139 Views
Last Modified: 2010-04-13
Hello,
I have scheduled a task to start up each time the computer restarts. It works fine. But once when I logoff and Login again, the task is gone. Can someone throw some light on this issue on how to solve this?

I wanted to start a start without the user logging in. So I have opted this type of scheduler option.

Thanks
Uma
0
Comment
Question by:umajava
  • 4
  • 4
9 Comments
 
LVL 2

Expert Comment

by:Ranidae
ID: 11775849
Hey,

You could add the entry in registry in the following key but this will still require a user login...

HKEY_Local_Machine / Software / Microsoft / Windows / Current Version / Run

it sounds more to me as though you are trying to run something as a service so that it is always running in the background.

Is this right?
0
 

Author Comment

by:umajava
ID: 11780584
Hi Ranidae,
Yes you are right. I wanted something to be running in the background as a service always. Any ideas on how to do this?

Uma
0
 
LVL 2

Accepted Solution

by:
Ranidae earned 20 total points
ID: 11780735
Hey Uma,

here's the addy of the Microsoft doc on making apps run as a service...

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q137/8/90.asp&NoWebContent=1

that should do it for you...

you can download srvany.exe from

ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40/i386/
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:umajava
ID: 11780951
Hi Ranidae,
Thanks for the information. I will check it and get back to you.

Uma
0
 

Author Comment

by:umajava
ID: 11781131
Hay Ranidae,
I need to schedule a .bat file as a service. This batch file contains RMI Registry and another java application to run in the background.

that article says "The Windows NT Resource Kit provides two utilities that allow you to create a Windows NT user-defined service for Windows NT applications and some 16-bit applications (but not for batch files). "

no batch files?

Uma
0
 
LVL 6

Expert Comment

by:tanelorn
ID: 11787882
Hi,

will something as simple as the AT Scheduler work for this purpose?  I use it to kick off a bunch of things on my servers...

Tanelorn

0
 
LVL 2

Expert Comment

by:Ranidae
ID: 11788878
No, not batch files... you'd need to have an actual program / executable, may work if you found someone to convert and compile what the batch file does into VB.

Batch files can be set off by the scheduler, but cannot be run as services on a machine. You could always try having it as part of the computer start-up script via group policy (if on a domain) or via local security policy (if a standalone comp), and see if that works, but it wouldn't stay as a service... it would just run at boot up and stop when it's task is done.

It all comes down to what exactly does the task do?  
0
 

Author Comment

by:umajava
ID: 11790516
Hi Ranidae,
The batch file contains steps required for running an RMI Registry and a java programme as a service.

If the batch file doesnt run as a service in the background, I would like to know if the batch file runs in the command prompt.  

All I need is the

1)task should be running if the computer restarts and without the user logging in
2)task should be running even if the user logs off and logs in

Can this be done by windows scheduler? Do I need to depend on any other softwares that does this work?

Uma
0
 
LVL 2

Expert Comment

by:Ranidae
ID: 11790580
You can have the batch file kick off every time a user logs in by adding it to the reg key:

HKEY_Local_Machine / Software / Microsoft / Windows / Current Version / Run

This would execute the batchfile everytime someone logs in, unfortunately, it won't be running when no one is logged in.  I don't believe you can run a java program as a service, but would have to research that a bit more.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Print Server: NT to 2008 10 584
P2V conversion for Windows NT 4.0 Server 2 2,241
Windows 2000 Sever Lab Setup 1 677
VMware:  Latest Tools version for Windows 2000 Guest 3 180
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question