Automatically starting a program without logging into an account

Y

Yousuf Khan

Dave-UK said:
As Yousuf Khan hasn't bothered to give us any feedback I decided to
see if the task method would work and it seems it does.
As I normally only have one account I created a couple of test accounts
and created a task to run the Calculator on every start up using the System
account. When I rebooted, any account that I logged on to had calc.exe
running
in the background in Task Manager (but not visible on the Desktop).

Sorry, got caught up in other problems that occurred later. Are these
tasks running under the System user account or each individual user account?

Yousuf Khan
 
D

Dave-UK

Yousuf Khan said:
But as mentioned by me earlier, that only runs when the user account it
was created for is run for the first time. If you don't login, then it
won't ever get run.

Yousuf Khan
Why don't you run your task from the system account, like I suggested a week ago?
 
D

Dave-UK

Yousuf Khan said:
Sorry, got caught up in other problems that occurred later. Are these
tasks running under the System user account or each individual user account?

Yousuf Khan
The task runs under the system account.
As there is only one system account, it appears on every users account.
 
G

Gene E. Bloch

But as mentioned by me earlier, that only runs when the user account it
was created for is run for the first time. If you don't login, then it
won't ever get run.

Yousuf Khan
My Task Scheduler (on W7 Home Premium) provides options to repeat a task at
specified intervals: Edit Trigger - Run every xx hours (or whatever unit).

Not sure if that would help you...
 
C

Char Jackson

As Yousuf Khan hasn't bothered to give us any feedback I decided to
see if the task method would work and it seems it does.
As I normally only have one account I created a couple of test accounts
and created a task to run the Calculator on every start up using the System
account. When I rebooted, any account that I logged on to had calc.exe running
in the background in Task Manager (but not visible on the Desktop).
I may have missed it so I'd like to ask how you assign a (scheduled)
task to run using the System account? I tried Machine_Name\System but
it said I had to assign a password and then it said that the System
account could not be found, and I basically got lost at that point.
 
D

Dave-UK

Char Jackson said:
I may have missed it so I'd like to ask how you assign a (scheduled)
task to run using the System account? I tried Machine_Name\System but
it said I had to assign a password and then it said that the System
account could not be found, and I basically got lost at that point.
I don't have a password to my account and run as admin with UAC disabled.
Start task scheduler.
Create your task and on the General tab, where it says Security options,
When running this task...click on Change User or Group...
Enter system and OK it.
Then it displays NT AUTHORITY\SYSTEM as the user account.
 
C

Char Jackson

I don't have a password to my account and run as admin with UAC disabled.
Start task scheduler.
Create your task and on the General tab, where it says Security options,
When running this task...click on Change User or Group...
Enter system and OK it.
Then it displays NT AUTHORITY\SYSTEM as the user account.
Thanks, Dave. I was actually trying to follow along in XP. Doing as
you say and manually running the task, the status changes to "Running"
but the program (Notepad, Win Explorer, Calc, for example) didn't show
up in Task Manager and didn't show any GUI. No biggie, I was just
curious.
 
D

Dave-UK

Char Jackson said:
Thanks, Dave. I was actually trying to follow along in XP. Doing as
you say and manually running the task, the status changes to "Running"
but the program (Notepad, Win Explorer, Calc, for example) didn't show
up in Task Manager and didn't show any GUI. No biggie, I was just
curious.
Maybe it's because you started it from your account.
Try creating a task to run Calculator at system start up using the System account
and then reboot. When you log on to your normal account you'll find calc.exe
running in Task manager. At least that's what I found on win7.
I think why it doesn't show up on the desktop is because System doesn't have a desktop!
 
C

Char Jackson

Maybe it's because you started it from your account.
Try creating a task to run Calculator at system start up using the System account
and then reboot. When you log on to your normal account you'll find calc.exe
running in Task manager. At least that's what I found on win7.
I think why it doesn't show up on the desktop is because System doesn't have a desktop!
Thanks again, Dave. I'll get a chance to play with it again soon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top