General discussion

Locked

XP regedit with NT4 logo script...

By it ·
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\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DontDisplayLastUserName"="1"
"LegalNoticeCaption"="BLAH BLAH BLAH Important Notice!"
"LegalNoticeText"="This is a private computer system on a private computer network. ALL
access is logged and monitored - you should not log on if you object to
this policy. Unauthorized users are not allowed, and any attempt to
enter the network or this system without permission could result in civil
and criminal liabilities.
Please select a unique password and do not relay it to anyone"

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 conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by jcreaghan In reply to XP regedit with NT4 logo ...

Try copying the file to a local directory on the client computer
e.g. copy file.reg to c:\temp\fle.reg

Then run the reg file by calling regedit /s c:\temp\file.reg

It won't create extra traffic on the network as you are already trying to run the file from a share anyway. Goof luck. I've also seen registry edits have better luch with a WSH absed (vbscript) login script using RegWrite method.

Collapse -

by jhoup In reply to XP regedit with NT4 logo ...

You can use the REG utility that is installed on all of the Windows XP Workstations.

Set the logon batch file to use %windir%\system32\REG.exe

So in your case, you would use the following:

You can pretty much cut and paste this into your logon script:

%windir%\system32\reg add hklm\software\microsoft\windowsNT\currentversion\\winlogon\ /v DontDisplayLastUserName /t REG_DWORD /d 1

%windir%\system32\reg add hklm\software\microsoft\windowsNT\currentversion\\winlogon\ /v LegalNoticeCaption /t REG_EXPAND_SZ /d "BLAH BLAH BLAH"

%windir%\system32\reg add hklm\software\microsoft\windowsNT\currentversion\\winlogon\ /v LegalNoticeText /t REG_EXPAND_SZ /d "This is a private..."

Hope this helps.

Collapse -

by jhoup In reply to

I accidently put two \\ where it says currentversion\\winlogon. There should only be one \.

Sorry about that.

Collapse -

by jhoup In reply to

One more note:

If you are running this more than once, or that setting is already there, it will prompt for an overwrite. Use /f at the end of those statements if you don't want to be prompted.

Back to Networks Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums