Registry entry for Group policy

D

David Troup

Hi, I'm hoping someone can help. I'm new to Group Policies
on 2K and am having trouble getting them to load. I've
created a new OU and a new user inside it. Created a GPO
for that OU. Question 1: I have added a startup batch file
to the Computer Config\win settings\scripts\startup, it
does not appear to run when I login as the new user,should
this work as a normal login script or am I missing the
point? Question 2: I want to add an environment variable
to each user, I can get to the
machine\system\currentcontrolset\control\session
manager\environment but I cannot add a value to this.

Any assistance would be appreciated.

David Troup
 
S

stevta [MSFT]

The Startup script is configured under the computer configuration and will
only run when the computer starts up. You would have to configure the User
Configuration Logon scripts to have a script run during user logon.

This posting is provided "AS IS" with no warranties, and confers no rights.
 
V

Vsevolod Titov [MSFT]

1. The startup script is executed when machine boots up. It doesn't execute
when user logs on. To specify logon script, go to User Configuration ->
Windows Settings -> Scripts -> Logon. Please note that since logon script is
set on user part of the GPO, you will need to link GPO to the user's OU.

2. If environment variables are different for different users, you need to
change it in HKCU\Environment. The key you mentioned below is per-machine
environment block. However you should be able to add/remove values from
machine environment as well, provided you have enough rights to do that. If
you want to change per-user env variables, use logon script and modify
HKCU\Environment. If you want to change per-machine env variables use
startup script and modify HKLM\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment.
 

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