Preventing programs from running on some accounts

  • Thread starter Thread starter TommY
  • Start date Start date
T

TommY

Hi,
...so, the question is; how do I stop programs from running on
some accounts if they are listed just in;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
and not in;
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
 
TommY said:
..so, the question is; how do I stop programs from running on
some accounts if they are listed just in;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
and not in;
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run


You either run a script that checks the username/group membership before
executing the application and put that into the RUN registry area..

Or you don't use that area.
 
You either run a script that checks the username/group membership before
executing the application and put that into the RUN registry area..

Or you don't use that area.

That does not leave me with much of a choice, but it's over my
league (scripting). Still, I would like to know how it's done,
so if you could give me an example of that kinda script or any
links where I might find more info.
 
As a bat file

Runs Notepad if guest is logged in
If "%username%"=="guest" Notepad

Runs Notepad if guest is NOT logged in
If not "%username%"=="guest" Notepad

Quotes are important if the user names might contain spaces.
 
THERE IS ACTUALY A MUCH EASIER WAY

JUST COPY THE KEY INFO FROM LOCAL MACHINE, MICROSOFT, WINDOWS, CURRENT VERSION, RUN, XXXXX

INTO A TEXT FILE THEN DELETE THE REGISTRY ENTRY FOR THOSE PROGRAMS YOU WISH TO RESTRICT AUTO RUN ACCESS TO

THEN GO INTO THE DIFFERENT HKEY LOCAL USER, MICROSOFT, WINDOWS, CURRENT VERSION, RUN, AREAS AND ADD IT IN THE ONES YOU WANT TO BE ABLE TO RUN THAT PROGRAM WHEN THEY LOG IN BY PLACING IT IN THAT USERS "RUN"
 
DUDE,

CAPS ARE HARD TO READ.




THE DUDE said:
THERE IS ACTUALY A MUCH EASIER WAY,

JUST COPY THE KEY INFO FROM LOCAL MACHINE, MICROSOFT, WINDOWS, CURRENT VERSION, RUN, XXXXXX

INTO A TEXT FILE THEN DELETE THE REGISTRY ENTRY FOR THOSE PROGRAMS YOU
WISH TO RESTRICT AUTO RUN ACCESS TO
THEN GO INTO THE DIFFERENT HKEY LOCAL USER, MICROSOFT, WINDOWS, CURRENT
VERSION, RUN, AREAS AND ADD IT IN THE ONES YOU WANT TO BE ABLE TO RUN THAT
PROGRAM WHEN THEY LOG IN BY PLACING IT IN THAT USERS "RUN"
 
Back
Top