关于第二个问题
0 M/ P# Q0 K+ j& `% O* G9 B$ w swindows logon message是由注册表来控制的,而注册表可以通过组策略来更改+ U6 H B- c* D! o3 ~9 k
参考下面的文章 m) ?" b& b* N, u
3 I3 W6 \4 u- K+ [! X3 w* A3 p. U. ~
A. You need to use the registry editor 4 t9 V0 ^9 [" d6 `
! n2 Z5 v E( R6 t4 X2 f+ N
Start the registry editor (regedit)
# k' H n9 e! F. p4 z# v0 j r2 O' pMove to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon , j2 q4 n$ w: X- U% w: N9 u! Q
Double Click the "LegalNoticeCaption", and enter the text to be in the title bar, click OK
% t _8 i# }; o7 u" }/ LDouble Click the "LegalNoticeText", and enter the warning text and click OK 2 T2 p. ^/ l+ F( g \' T7 J& f
Close the registry and logoff, when you logon you will see the warning
% ]; I) n! q% y2 @In Windows 2000 step 2 would be to move to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system instead.
- z0 i" p: K* a! N; N& z
/ n! \% s* G% i9 tThis can also be done via the policy editor (poledit.exe) for NT 4.0 ) y1 F2 W7 ~! @6 G$ m' D4 P4 \& F
+ u- N+ {& t5 Q* d+ w* {7 e
Start the policy editor (poledit.exe) & ~" c1 i; V e# W
Open the default Computer Policy - m# Y/ y; B! L% o1 L# T
Open the Windows NT System tree and then Logon
1 W! c. E9 D9 }% Z. [Put a tick in the "Logon banner" and enter the caption and text 6 w# X1 X. a0 o. q) e
Click OK and save the policy * ~; q6 o8 B% W
For Windows 2000 Group Policy Objects move to Computer Configuration - Windows Settings - Security Settings - Local Policies - Security Options and set the 'Message text for users attempting to log on' and 'Message title for users attempting to log on'.
1 Y6 U( x; R& C8 L, G1 i Z7 U0 U! [) J0 r$ {
Alternatively, a text message can be displayed by creating the key LogonPrompt in HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon
" h+ D) G. P7 Z: d) P* T+ G/ s
Windows Scripting Host can also be used to create these messages as follows:
6 Z: v* _; h) @- t- V( V4 R
1 c4 U5 r/ \ `$ `5 c" [0 v" ~Set WSHShell = CreateObject("WScript.Shell"). b, \/ j, w2 M3 g
s1 = "HKLM\Software\Microsoft\Windows\CurrentVersion\WinLogon\"
1 Q8 Q) q; r8 O* T6 R/ K* p( G. d% K% bs2 = "LegalNoticeCaption" h9 q; R: E. b) ~& I3 C7 A3 a
s3 = "LegalNoticeText"
4 [* x E( d3 ]2 p8 uobjShell.RegWrite s1+s2, "SavillTech Ltd"
5 P* |$ a$ ~& _8 S4 @9 [2 m( KobjShell.RegWrite s1+s3, "Only Authorized Access Allowed!"