CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Windows专区 >  安全技术/病毒

命令格式怎样看?

楼主SKY11(浪人)2003-11-04 07:47:43 在 Windows专区 / 安全技术/病毒 提问

NET   USER   [username   [password   |   *]   [options]]   [/DOMAIN]                                       username   {password   |   *}   /ADD   [options]   [/DOMAIN]                                  
  username   [/DELETE]   [/DOMAIN]                      
   
   好象这些命令格式应该怎样看呀,[] | 这些东东怎样搞清楚的,谁能帮我认真解答下吗?  
   
                       先谢为过! 问题点数:0、回复次数:3Top

1 楼sink()回复于 2003-11-04 08:14:23 得分 0

net   user   /?Top

2 楼sungod8(琤) (Heros Ⅲ 凤凰)回复于 2003-11-04 08:59:34 得分 0

NET   USER  
  [username   [password   |   *]   [options]]   [/DOMAIN]  
                    username   {password   |   *}   /ADD   [options]   [/DOMAIN]  
                    username   [/DELETE]   [/DOMAIN]  
   
  NET   USER   creates   and   modifies   user   accounts   on   computers.   When   used  
  without   switches,   it   lists   the   user   accounts   for   the   computer.   The  
  user   account   information   is   stored   in   the   user   accounts   database.  
   
  username           Is   the   name   of   the   user   account   to   add,   delete,   modify,   or  
                            view.   The   name   of   the   user   account   can   have   as   many   as  
                            20   characters.  
  password           Assigns   or   changes   a   password   for   the   user's   account.  
                            A   password   must   satisfy   the   minimum   length   set   with   the  
                            /MINPWLEN   option   of   the   NET   ACCOUNTS   command.   It   can   have   as  
                            many   as   14   characters.  
  *                         Produces   a   prompt   for   the   password.   The   password   is   not  
                            displayed   when   you   type   it   at   a   password   prompt.  
  /DOMAIN             Performs   the   operation   on   a   domain   controller   of  
                            the   current   domain.  
  /ADD                   Adds   a   user   account   to   the   user   accounts   database.  
  /DELETE             Removes   a   user   account   from   the   user   accounts   database.  
   
  Options             Are   as   follows:  
   
        Options                                         Description  
        --------------------------------------------------------------------  
        /ACTIVE:{YES   |   NO}                   Activates   or   deactivates   the   account.   If  
                                                              the   account   is   not   active,   the   user   cannot  
                                                              access   the   server.   The   default   is   YES.  
        /COMMENT:"text"                         Provides   a   descriptive   comment   about   the  
                                                              user's   account.     Enclose   the   text   in  
                                                              quotation   marks.  
        /COUNTRYCODE:nnn                       Uses   the   operating   system   country   code   to  
                                                              implement   the   specified   language   files   for   a  
                                                              user's   help   and   error   messages.   A   value   of  
                                                              0   signifies   the   default   country   code.  
        /EXPIRES:{date   |   NEVER}         Causes   the   account   to   expire   if   date   is  
                                                              set.   NEVER   sets   no   time   limit   on   the  
                                                              account.   An   expiration   date   is   in   the  
                                                              form   mm/dd/yy(yy).   Months   can   be   a   number,  
                                                              spelled   out,   or   abbreviated   with   three  
                                                              letters.   Year   can   be   two   or   four   numbers.  
                                                              Use   slashes(/)   (no   spaces)   to   separate  
                                                              parts   of   the   date.  
        /FULLNAME:"name"                       Is   a   user's   full   name   (rather   than   a  
                                                              username).   Enclose   the   name   in   quotation  
                                                              marks.  
        /HOMEDIR:pathname                     Sets   the   path   for   the   user's   home   directory.  
                                                              The   path   must   exist.  
        /PASSWORDCHG:{YES   |   NO}         Specifies   whether   users   can   change   their  
                                                              own   password.   The   default   is   YES.  
        /PASSWORDREQ:{YES   |   NO}         Specifies   whether   a   user   account   must   have  
                                                              a   password.   The   default   is   YES.  
        /PROFILEPATH[:path]                 Sets   a   path   for   the   user's   logon   profile.  
        /SCRIPTPATH:pathname               Is   the   location   of   the   user's   logon  
                                                              script.  
        /TIMES:{times   |   ALL}               Is   the   logon   hours.   TIMES   is   expressed   as  
                                                              day[-day][,day[-day]],time[-time][,time  
                                                              [-time]],   limited   to   1-hour   increments.  
                                                              Days   can   be   spelled   out   or   abbreviated.  
                                                              Hours   can   be   12-   or   24-hour   notation.   For  
                                                              12-hour   notation,   use   am,   pm,   a.m.,   or  
                                                              p.m.   ALL   means   a   user   can   always   log   on,  
                                                              and   a   blank   value   means   a   user   can   never  
                                                              log   on.   Separate   day   and   time   entries   with  
                                                              a   comma,   and   separate   multiple   day   and   time  
                                                              entries   with   a   semicolon.  
        /USERCOMMENT:"text"                 Lets   an   administrator   add   or   change   the   User  
                                                              Comment   for   the   account.  
        /WORKSTATIONS:{computername[,...]   |   *}  
                                                              Lists   as   many   as   eight   computers   from  
                                                              which   a   user   can   log   on   to   the   network.   If  
                                                              /WORKSTATIONS   has   no   list   or   if   the   list   is   *,  
                                                              the   user   can   log   on   from   any   computer.  
  Top

3 楼spark_li(晕忽忽(恶人谷:通讯连长))回复于 2003-11-04 09:11:36 得分 0

net   help   user  
   
  至于  
  NET   USER   [username   [password   |   *]   [options]]   [/DOMAIN]  
                    username   {password   |   *}   /ADD   [options]   [/DOMAIN]  
                    username   [/DELETE]   [/DOMAIN]  
   
  怎么解释:  
  其中第一行是命令的格式,  
  第二行和以后的是对命令的详细的(各个选项)的解释,  
  这里呢,[]里面的内容是可选项,{}里面的是必选项,  
  |分开的呢表示可选择|前面的,也可以选择后面的,  
   
  正对以上命令,第一行:  
  首先是net   user   必须,后面的有三个可选项  
  分别是:  
  [username   [password   |   *]  
  [options]]  
  [/DOMAIN]  
  因为是可选项,所以我们用net   user   也是正确的命令格式,  
  这里[username   [password   |   *]  
  是双重[],所以可以  
  net   user   username  
  net   user   username   password  
  net   user   user   *  
  其中password与*用|分开,说明他们是任选项  
  后面的就差不多了  
   
  至于net   help   user是更详细的解释,  
  主要是解释各个命令格式是做什么用的。Top

相关问题

  • Red hat 8.0安装个人桌面后怎样进入命令行格式??
  • 什么命令可以查看Linux下的分区被格式化为什么格式,如果ext2、ext3?
  • JS命令在aspx中如何执行的,格式是怎样的?求教,新学者,不太明白
  • Oracle9i中引进了merge这样一个命令操作,请问该命令的语法格式怎样,能否举个例子,谢谢?
  • 有格式化日期格式的命令吗?
  • 怎样低格硬盘,用什么命令或工具?用FDISK进行分区并格式化属于什么格?
  • 怎样运行在命令行命令
  • 有谁知道Winzip的命令行格式???
  • 请问几个SQL命令格式:删除
  • 关于FileOpenDatabase命令的调用格式问题!!!

关键词

  • computer
  • active
  • database
  • date
  • 命令
  • account
  • 格式
  • 可选项
  • domain
  • username

得分解答快速导航

  • 帖主:SKY11

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo