Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Task - Create to Run a Program at Startup and Log On

01 Mar 2010   #29
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 
Task - Create to Run a Program at Startup and Log On

How to Create a Task to Run a Program at Startup and Log On in Windows 7

...

My System SpecsSystem Spec
21 Sep 2012   #30
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
Update

I got the task to run (I can't figure out why it is behaving itself now though).
Task Scheduler still reports error 0x41301, but the Process Explorer window appears and it is in Administrator mode.

The weird thing is that I have to enter a password when I try to create the task for my user account, but if I change the user to "Administrators" group, I don't have to enter any password!

Surely a user shouldn't be able to create a task for an Administrator (without entering a password)?

My System SpecsSystem Spec
21 Sep 2012   #31
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

A "standard" user can create tasks, but it will not run for anything elevated unless they enter the administrator's password.

You might also give this a try below to see how it works for you. Only an administrator can create it, but it can be used by any type of account though.

Elevated Program Shortcut - Create for Standard User
My System SpecsSystem Spec
21 Sep 2012   #32
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
Thanks Brink

Quote   Quote: Originally Posted by Brink View Post
Quote   Quote: Originally Posted by lehnerus2000
The weird thing is that I have to enter a password when I try to create the task for my user account, but if I change the user to "Administrators" group, I don't have to enter any password!

Surely a user shouldn't be able to create a task for an Administrator (without entering a password)?
A "standard" user can create tasks, but it will not run for anything elevated unless they enter the administrator's password.
I am using the standard pseudo-Administrator account (the one that is created when you install the OS).

If I create an elevated task for this account ("PJL"), I must enter a password.
If I change the user in the Task Scheduler (not the session) to "Administrator" or "Administrators" group, I don't have to enter a password.

I'm certain that I tried all of those combinations previously ("PJL, Administrator & Administrators" group) and nothing worked.

BTW, is there a complete list of the Task Scheduler error codes?

Quote   Quote: Originally Posted by Brink View Post
You might also give this a try below to see how it works for you. Only an administrator can create it, but it can be used by any type of account though.

Elevated Program Shortcut - Create for Standard User
That tutorial looks very useful.
Bookmarked.
My System SpecsSystem Spec
21 Sep 2012   #33
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

I found this that may hopefully help some with the error codes.

net helpmsg (message #) command
(ex: net helpmsg 64 = The specified network name is no longer available.)


Task Scheduler Error and Success Constants

and

Events and Errors Message Center: Advanced Search
My System SpecsSystem Spec
.


22 Sep 2012   #34
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
Thanks yet again Brink

Quote   Quote: Originally Posted by Brink View Post
I found this that may hopefully help some with the error codes.

net helpmsg (message #) command
(ex: net helpmsg 64 = The specified network name is no longer available.)


Task Scheduler Error and Success Constants

and

Events and Errors Message Center: Advanced Search
Thanks for looking into that.
My System SpecsSystem Spec
22 Sep 2012   #35
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Anytime.
My System SpecsSystem Spec
15 Nov 2012   #36
zerses

Windows 7 Home Premium
 
 
Thanks!

That is amazing!

Now if I can only figure out how to get my not hidden administrator account to understand it's has admin rights.. it says it does statically on the screen but Windows 7 Home Premium is far short of the real admin account of Professional and Server from what I've been able to ascertain.

Thanks again!
Kelly
My System SpecsSystem Spec
15 Nov 2012   #37
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Kelly,

I'm glad it could help. The tutorial below can help show you how to elevate your account.

User Account Control (UAC) - Elevate Privilege Level - Vista Forums
My System SpecsSystem Spec
11 Feb 2013   #38
kevindd992002

Windows 7 Ultimate x6
 
 

What is the difference of At Startup and At Logon? If I just do this task At Startup will the program still run?
My System SpecsSystem Spec
11 Feb 2013   #39
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Kevin,

It depends on which one or both you want the program to run at.

Startup = When your log on to the user account at the startup of Windows. Usually after a restart or shut down of the computer.

Log on = When you log on to the user account say after logging off, lock computer, switch user. Anything other than from at startup.

Hope this helps,
Shawn
My System SpecsSystem Spec
Comment

 Task - Create to Run a Program at Startup and Log On




Tutorial Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:31 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33