Active Directory and Group Policy question

nightowl

Golden Member
Oct 12, 2000
1,935
0
0
I need to push out a registry change to about 50 computers on a 2000 domain. I read that I need to do this with a Group Policy but I am not sure how to do this. I know how to set it up for regular users but how would I do this for the settings on a PC?
 

nightowl

Golden Member
Oct 12, 2000
1,935
0
0
How would I put a registry key change in a logon script? All of the scripts I have used in the past have been simple BAT files that use the command line.
 

stash

Diamond Member
Jun 22, 2000
5,468
0
0
Export the key you want to configure to a .reg file and put it in the same location on the DC as the script.

The script needs to call regedit to load the reg file (regedit /s example.reg).

This will only work for changes in the HKEY_CURRENT_USER hive (or HKLM if you do a startup script).

Another way to do this is to write a custom adm file, but you would need to lookup the syntax for that.

What is the registry change you need to make?
 

nightowl

Golden Member
Oct 12, 2000
1,935
0
0
The key that I want to change is the key that deletes roaming profiles upon logoff. The key is below and I need to change the value to 1.

HKLM\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon\DeleteRoamingCache

Would the .reg file look like this?

[HKLM\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon]
"DeleteRoamingCache"=dword:00000001

I found the information at this link under the Cached Profile Deletion section.
 

stash

Diamond Member
Jun 22, 2000
5,468
0
0
There's no reason to push this out with a registry key, since it already exists in group policy.

Computer Configuration\Administrative Templates\System\User Profiles\Delete Cached Copies of Roaming Profiles.
 

nightowl

Golden Member
Oct 12, 2000
1,935
0
0
Thanks Stash. I found that option in the group policy. However, it was under Logon instead of User Profiles.