WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wNT
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Setting NT Policies


Question:

My boss asked me to write ascript which sets specific policy in windows 2000 domain, specifically we need to set the login Warning statement. do anyone know how this can be done with winbatch?

Answer:

For the most part, policies get implemented as keys & values in the registry. Although the source of the policy information may be stored on a server or in AD for admin purposes, at the time the workstation logs on to the domain the policies get applied to the workstation as registry modifications.

Check out:

http://www.winguides.com/registry/display.php/22/

Windows 95, 98 and Me:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon 

Windows NT, 2000 and XP:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon 

Modify the value named 'LegalNoticeCaption' to represent the caption on the dialog box (e.g. 'WARNING!'). If this value doesn't already exist create it.

Modify the value named 'LegalNoticeText' to represent the body of the dialog box (e.g. 'Do Not Attempt to Logon to this system unless you are an authorized user!')

Exit your registry and restart Windows, and the next time you boot up you should be presented with the dialog box before logging on.

Note: This value is limited to 256 characters, you need to install the latest Windows NT service pack to allow up to 1024 characters.


Article ID:   W16521
File Created: 2005:02:18:12:21:14
Last Updated: 2005:02:18:12:21:14