打印

[推荐] [vbscript]管理员的工具箱 <47>改变计算机上某服务的启动模式

[vbscript]管理员的工具箱 <47>改变计算机上某服务的启动模式

Changes the startup mode for a specified
2 q' @( |1 \& C, Q7 b- [$ O2 lservice on one or more computers.2 J& Z% e2 ]1 ^5 p
Use only one of the following:( \8 P! I* ~; Z4 S6 o5 R/ J
/list:filename : text file containing one computer name per line
+ Q: J3 c$ E* `* } /container:ouname : name of an OU containing computer accounts T1 o1 _; o4 _. j5 h
/computer:name : run command against single specified computer
/ R* R2 {0 _. fUse /service to specify the service to change, and
8 ]8 o5 q- W: ?. z% Tuse /mode to specify the new startup mode: Automatic, Manual,
9 @$ {' W1 a! \# z1 nor Disabled4 l1 k% n8 E1 z4 Z! ~0 }1 q
Other arguments are optional.; _6 @$ S! F3 q, W O1 z

# U9 K/ ]6 j h! Z
1 ^/ Z' v. k: `8 Z @Usage3 o' c }1 X5 y. T9 Y2 `
cscript ChangeServiceStartMode.wsf [/list:value] [/container:value] [/computer:value] [/verbose] [/recurse] [/log:value] [/ping] /service:value /Mode:value
1 U. M& ?$ {% g( DOptions
2 ~8 n6 m% V% g2 F; H# q6 A) f3 E9 ^( Ylist : Text file to pull computer names from
- F8 M9 [8 n) \$ V% g. ~" h! |container : OU to pull computer names from
8 ?. a+ E2 u- _computer : Run command against single specified computer
6 B4 T1 W! b! |verbose : Display detailed messages
: {* ^5 I) i$ ]2 Z2 F9 _. Jrecurse : Use with /container to include sub-OUs
, p" _" s/ A( [' x7 b; f4 wlog : File to log names which can't be reached2 u0 X) c; ^4 e1 x1 y
ping : Reduce timeout wait by pinging before attempting0 o% c" ?8 V9 X
service : Service to change3 z/ ]6 {9 d; G. f" ?8 Z9 X2 C0 `6 U
Mode : New startup mode
1 \% Y- Z5 q$ o6 R) @* n5 z5 t
- K- s" i' F; M6 i; e0 fSystem Requirements5 \; k& x4 [6 [+ t7 E
Windows 2000
+ z/ i9 P( G1 B! O# L$ x9 k! _Windows XP 5 V/ Q$ L/ I& D! I
Windows Server 2003/ d# d( J. {. m/ Y' }( o n
5 `# {9 c+ o; s
[ 本帖最后由 mwpq 于 2007-1-11 06:09 编辑 ]
附件: 您所在的用户组无法下载或查看附件
《无量寿经·第十八愿》言:
设我得佛,十方众生,至心信乐,欲生我国,乃至十念,若不生者,不取正觉。唯除五逆,诽谤正法。

TOP