Discussion Locked

LOGON SCRIPT

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

My company network is running NT 4.0 Server , Windows 95 , Windows98 ,W2K Professional
I want to creat a logon script which modify the registry ([HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon])

of all Windows 95 , Windows98 ....computer in order to Display a warning message before logon

please help with detail information. I have tried to export the corresponding registry and make a bat file to run the registry but dont work

10 replies

by highorbit

I recomend you get yourself a copy of the NT Resource kit. This comes with Kixtart.

Kix is a scripting language specifically designed for login scripts, it will allow you to perform modifications of the registry, and group specific mappings amongother things. The language it self is fairly easy to learn and there are a lot of sites on the internet with example scripts.

Finally, all the files required for kix will run quite happily from the logon script directory so no client install is needed, just copy the executable and a couple of dll's to the c:\winnt\system32\repl\export\scripts directory.

Good luck!

by syscokid

Did you export the key from an NT machine? Because that won't work on 9x.

Create your own .reg file like this and call it legal.reg:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon]
"LegalNoticeCaption"="Important Notice!"
"LegalNoticeText"="This is a private computer system"

Then add a line to your regular login script:

regedit /s \\MY_PDC\netlogon\legal.reg

by shanghai sam

The easiest way is to use the system policy editor on the PDC administrative tools..
Start>programs>administrative tool (common)>
system policy editor. double click "default computer" and that will bring up your options box. Expand "windows NT system"> expand "Logon", check mark "logon banner". This will give you a place to type a warning message of you choice. When you're done click ok. Then click "File">save. this will automatically save it as ntconfig.pol in your netlogon share on the pdc.Now here's the trick, if you want to have the policy effect W95 pc's, your going to need to duplicate that file and rename it config.pol. so you end up with the exact same file in the same place, with two different names. It's not as bad as it sounds, if I'm not being clear enough, e-mail me off list and I'll send you a scan ov the relevant pages out of the MOC for NT server

by sswitkin

I seem to be having my own issues with cookies...the answer from "Transient"????
is mine. Just in case you want that scan.

by sswitkin

I guess it would help if I mentioned that the config.pol for the w95 machines needs to be created ON a w95 machine and saved to the netlogon. oops, sorry.

This discussion is closed to new replies.