打印

[求助] 如何在域控上设置组策略!

本主题由 mwpq 于 2007-11-7 08:57 关闭

如何在域控上设置组策略!

如何编写脚本使域内计算机每天晚上22:00设置成30秒钟倒计时关机?' ^' t3 L* X. D- K3 V# a) L1 A
( ?- g# R9 f! ^& c9 J& e: b& i; n$ F
另外,如何设置组策略或者登陆脚本使域内用户每次登陆时或者按下Ctrl+Alt+Del时,弹出所设定的系统消息!, I. ]/ r# r" p% k# {. \# m
" L. G* Y$ S& m E
比如弹出:近期病毒频繁,请大家每天更新病毒库,定期杀毒~2 L/ ?4 u/ h; m3 M. K/ i8 Y

0 x$ D5 X$ O4 @* z$ y4 k \ 谢谢~

TOP

需要用脚本么?用组策略就可以?
《无量寿经·第十八愿》言:
设我得佛,十方众生,至心信乐,欲生我国,乃至十念,若不生者,不取正觉。唯除五逆,诽谤正法。

TOP

版主,能告诉我如何设置吗?

版主,能告诉我具体如何设置吗?域控制器为2003 server系统~

TOP

关于第一问题,可以用脚本在域中的计算机上生成计划任务,让计算机每天定时关机。8 Y- R& b' D& c% h1 c

2 T3 p) O% o i参考下列网址,如何使用脚本生成计划任务
/ ~+ \; `0 Y6 H/ {* ?. Ohttp://www.microsoft.com/technet ... sept04/hey0922.mspx
《无量寿经·第十八愿》言:
设我得佛,十方众生,至心信乐,欲生我国,乃至十念,若不生者,不取正觉。唯除五逆,诽谤正法。

TOP

关于第二个问题
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!"
《无量寿经·第十八愿》言:
设我得佛,十方众生,至心信乐,欲生我国,乃至十念,若不生者,不取正觉。唯除五逆,诽谤正法。

TOP

最后,不知道上面的内容是否能够帮到您?( r' Q' V" ~: L
我没有太多的时间针对您的要求去写一个脚本,但是有了上面的回答,相信应该能够满足您的要求。
, U( H/ |7 T+ ]也希望您能够把您最后写成的脚本发到本区来!
《无量寿经·第十八愿》言:
设我得佛,十方众生,至心信乐,欲生我国,乃至十念,若不生者,不取正觉。唯除五逆,诽谤正法。

TOP

我看都看不懂

TOP