XP Registry Scripts - TechRepublic
General discussion
March 2, 2004 at 01:40 AM
it

XP Registry Scripts

by it . Updated 22 years, 4 months ago

XP regedit when logon to NT4
Hi,
I have 50 WinXP clients who logon to a NT4 PDC. I need to edit the registry of all XP users, and thought that doing that via a login script would be ideal…if it worked!
On the NT box I have gone into user mananger and input the path to the login directory \\MYSERVER\NETLOGIN\ for each user. Then in that directory I have 1 batch file that runs a programme to audit PCs software: AUDIT.BAT
\\ANOTHERSERVER\E\audit\ClientCon.exe
This runs perfectly on XP login without the user knowing, however- I added the following to the batch file but it does not work-
regedit /s \\P200-3\netlogon\legal.reg
This should call a reg file (below) which is also in the NETLOGON directory, that edits the registry on the XP PC on logon as follows:
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Mi crosoft\Windows NT\CurrentVersion\Winlogon]
“DontDisplayLastUserName”=”1”
“LegalNoticeCaption”=”BLAH BLAH BLAH Important Notice!”
“LegalNoticeText”=”BLAH BLAH BLAH BLAH BLAH”

If I run the reg file on the box itself it works a treat but for some reason it seems it canot find the file on the NT or the actual regedit is wrong for XP…
Any help appreciated & thanx for your time.
G

This discussion is locked

All Comments