Logging on and startup question

Posted on 2006-07-09
Last Modified: 2010-04-30
I just want a little explaination on what happens on a computer with multiple accounts.
1. If I have an app add a value to the Startup section of the registry (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run)
so that the app starts when the computer starts, will that app start when the computer starts, or only when the user that installed it logs on, or when any user logs on or what?  I mainly want to know 2 things:  where to put it so that only the user that installed it will have it run when he logs on, and where to put it no matter who logs on, it will always start.
When a user logs off, and a different logs on, all his personal settings are set.  Does that also mean that any programs he installed to run at startup will also run?

2.  Same question, only with the startup folder instead of the registry.

I don't have multiple accounts on my computer and I don't want to set it up to test it because pulling a tooth is easier than getting rid of them.  I started making some of my apps available online, but I don't know enough about this to do it properly.  I need to make sure I set it up right so that it works for the end user.

Question by:ahammar
  • 6
  • 2
LVL 13

Accepted Solution

Mark_FreeSoftware earned 500 total points
ID: 17069135

this is only for the CURRENT user, so not for other users

use local machine (HKEY_LOCAL_MACHINE) instead for all users

LVL 13

Expert Comment

ID: 17069146

startup from the start menu:

if you put it in the %windir%\Username\Menu start\......

it will be ONLY for one user (Username in this case)

if you put it in All Users:
%windir%\All Users\Menu start\......
it is for all users.

but be aware!
the folder from the start menu is not always the same!
for example in dutch windows it is "Opstarten"
LVL 23

Author Comment

ID: 17069201
So if I put something in:
then the app will only start when the user that installed it logs on?

even if a different user logs off and the user that installed it logs on without turning the computer off first?

Thanks Mark_FreeSoftware
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

LVL 13

Expert Comment

ID: 17069223

>>then the app will only start when the user that installed it logs on?

>>even if a different user logs off and the user that installed it logs on without turning the computer off first?
it should run then,
i'm going to test this now, and post back with the results
LVL 13

Expert Comment

ID: 17069235

test was positive,
it runs without shutting down
(so logging off and on runs the program)
LVL 23

Author Comment

ID: 17069239
Ok...Thank you very much for doing that test for me!
You're awesome!

LVL 13

Expert Comment

ID: 17069327

thanks for the points, and happy coding!
LVL 13

Expert Comment

ID: 17069333

oh, almost forgot:

if you are not running on the admin account right now,
(name: "Admin" or "Administrator")

that is your secondary account, it just doesnt show up on the login screen

to access it:
press control + alt + del twice while at the login screen,
and type "Admin" as username
leave the password blank (that should work)

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA color chart bars 12 86
SSRS expression Issue finding a string 10 79
Sorting multiple rows and columns, and count duplicates in Excel 2013 4 80
Excel Automation VBA 19 73
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

803 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