Pages

Rabu, 09 November 2011

Detailed Net Command

辛巴达 Sinbad

许多Windows NT 网络命令以net 开始。 Many Windows NT network commands net start. 这些net 命令有一些公共属性: The net command has some common properties:
通过键入net /? 可查阅所有可用的net 命令。 By type net /? Can be found in all of the available net commands.
通过键入net help 命令可在命令行中获得net 命令的语法帮助。 Net help command by typing the command line to get in the net command syntax help. 例如,要得到net acco For example, to obtain net acco
unts 命令的帮助,请键入net help accounts。 unts command help, type net help accounts.
所有net 命令接受选项/ yes 和/no(可缩写为/ y 和/n )。 Acceptance of all net command options / yes and / no (can be abbreviated as / y and / n). / y 对命令产生的任何交互提示自动回答“是”,/n 回答“否”。 / Y on the command automatically generate any interactive prompt answer "yes", / n answer "no." 例如,net stop server 通常提示确认是否根据服务器服务结束所有服务,net stop server /y 自动回答“是”并关闭服务器服务。 For example, net stop server is usually prompted to confirm the end of all services under the Server service, net stop server / y automatically answers "yes" and close the Server service.

Net Accounts Net Accounts

更新用户帐号数据库、更改密码及所有帐号的登录要求。 Update the user account database, change the password and logon requirements for all accounts. 必须要在更改帐号参数的计算机上运行网络登录服务。 Parameters to change the account must be running on a computer network logon service.
net accounts [/forcelogoff:{minutes | no}] [/minpwlen:length] [/maxpwage:{days | net accounts [/ forcelogoff: {minutes | no}] [/ minpwlen: length] [/ maxpwage: {days |
unlimited}] [/minpwage:days] [/uniquepw:number] [/domain] unlimited}] [/ minpwage: days] [/ uniquepw: number] [/ domain]
net accounts [/sync] [/domain] net accounts [/ sync] [/ domain]
参数 Parameter
无 No
键入不带参数的net accounts,将显示当前密码设置、登录时限及域信息。 Type with no parameters, net accounts, will show the current password settings, logon time, and domain information.
/forcelogoff:{minutes | no} / Forcelogoff: {minutes | no}
设置当用户帐号或有效登录时间过期时,结束用户和服务器会话前的等待时间。 Set when a user account or valid logon time expires, the end user and the server to wait before the session. no 选项禁止强行注销。 no option to prohibit forced cancellation. 该参数的默认设置为no。 The default setting is no. 指定/forcelogoff:minutes 之后,Windows NT 在其强制用户退出网络minutes 分钟之前,将给用户发出警报。 Specify / forcelogoff: minutes later, Windows NT in its force users to exit the network MINUTES minutes ago, will alert the user. 如果还有打开的文件,Windows NT 将警告用户。 If there are open files, Windows NT will warn the user. 如果minutes 小于两分钟,Windows NT 警告用户立即从网络注销。 If minutes is less than two minutes, Windows NT warning users log off from the network immediately.
/minpwlen:length / Minpwlen: length
设置用户帐号密码的最少字符数。 Set the user account password minimum number of characters. 允许范围是0-14,默认值为6。 Allowable range is 0-14, the default value is 6.
/maxpwage:{days | unlimited} / Maxpwage: {days | unlimited}
设置用户帐号密码有效的最大天数。 Set a valid user account password maximum number of days. unlimited 不设置最大天数。 unlimited does not set the maximum number of days. /maxpwage 选项的天数必须大于/minpwage。 / Maxpwage option must be greater than the number of days / minpwage. 允许范围是1-49,710 天(unlimited)。 Allowed range is 1-49,710 days (unlimited). 默认值为90 天。 The default is 90 days.
/minpwage:days / Minpwage: days
设置用户必须保持原密码的最小天数。 Setting the original password the user must maintain a minimum number of days. 0 值不设置最小时间。 0 value not set minimum time. 允许范围是0-49,710 天,默认值为0 天。 Allowed range is 0-49,710 days, the default is 0 days.
/uniquepw:number / Uniquepw: number
要求用户更改密码时,必须在经过number 次后,才能重复使用与之相同的密码。 Require users to change passwords, you must go through Number number of times before they can be reused with the same password. 允许范围是0-8。 Permitted range is 0-8. 默认值为5。 The default value is 5.
/domain / Domain
在当前域的主域控制器上执行该操作。 In the current domain primary domain controller to perform the operation. 否则只在本地计算机执行操作。 Otherwise, only the local computer to perform operations.
该参数仅用于Windows NT Server 域中的Windows NT Workstation 计算机,Windows NT Server 计算机默认为在主域控制器执行操作。 This parameter is only for Windows NT Server domain, Windows NT Workstation computer, Windows NT Server computer, the default is the primary domain controller to perform operations.
/sync / Sync
当用于主域控制器时,该命令使域中所有备份域控制器同步;当用于备份域控制器时,该命令仅使该备份域控制器与主域控制器同步。 When used for the primary domain controller, the command to all backup domain controllers in the domain synchronized; when used for backup domain controller, the command only to the backup domain controller and primary domain controller synchronization. 该命令仅适用于Windows NT Server 域成员的计算机。 This command only applies to Windows NT Server domain member computer.

Net Computer Net Computer

从域数据库中添加或删除计算机。 From the domain database, add or remove computers. 该命令仅在运行Windows NT Server 的计算机上可用。 This command is only a computer running Windows NT Server available.
net computer \computername {/add | /del} net computer \ computername {/ add | / del}
参数 Parameter
\computername \ Computername
指定要添加到域或从域中删除的计算机。 Specifies to add to the domain or computer from the domain to delete.
/add / Add
将指定计算机添加到域。 The specified computer to the domain.
/del / Del
将指定计算机从域中删除。 To specify a computer from the domain.

Net Config Net Config

显示当前运行的可配置服务,或显示并更改某项服务的设置。 Can be configured to display the currently running services, or a service display and change the settings.
net config [service [options]] net config [service [options]]
参数 Parameter
无 No
键入不带参数的net config 将显示可配置服务的列表。 Type net config with no arguments will display a list of configurable services.
service service
通过net config 命令进行配置的服务(server 或workstation)。 Through the net config command to configure the service (server or workstation).
options options
服务的特定选项。 Service-specific options. 完整语法请参阅net config server 或net config workstation。 Complete syntax of the net config server or net config workstation.

Net Config Server Net Config Server

运行服务时显示或更改服务器的服务设置。 Run the service display or change server service settings.
net config server [/autodisconnect:time] [/srvcomment:"text "] [/hidden:{yes | n net config server [/ autodisconnect: time] [/ srvcomment: "text"] [/ hidden: {yes | n
o}] o}]
参数 Parameter
无 No
键入不带参数的net config server,将显示服务器服务的当前配置。 Type with no parameters, net config server, the server will display the current configuration of services.
/autodisconnect:time / Autodisconnect: time
设置断开前用户会话闲置的最大时间值。 Set idle before disconnecting user session maximum time value. 可以指定-1,表示永不断开连接。 You can specify -1, that never disconnected. 允许范围是-1-65535 分钟,默认值是15 分钟。 Allowed range is -1-65535 minutes, the default value is 15 minutes.
/srvcomment:"text " / Srvcomment: "text"
为服务器添加注释,可以通过net view 命令在屏幕上显示所加注释。 Add a comment for the server, you can net view command on the screen display to add comments. 注释最多可达48 个字符,文字要用引号引住。 Notes up to 48 characters, words to use quotes.
/hidden:{yes | no} / Hidden: {yes | no}
指定服务器的计算机名是否出现在服务器列表中。 Specify the server's computer name appears in the server list. 请注意隐含某个服务器并不改变该服务器的权限。 Please note that a server does not change the hidden server's privileges. 默认为no。 The default is no.

Net Config Workstation Net Config Workstation

服务运行时,显示或更改工作站各项服务的设置。 Service is running, the workstation display or change the service settings.
net config workstation [/charcount:bytes] [/chartime:msec] [/charwait:sec] net config workstation [/ charcount: bytes] [/ chartime: msec] [/ charwait: sec]
参数 Parameter
无 No
键入不带参数的net config workstation 将显示本地计算机的当前配置。 Type with no parameters, net config workstation will display the local computer's current configuration.
/charcount:bytes / Charcount: bytes
指定Windows NT 在将数据发送到通讯设备之前收集的数据量。 Specifies the Windows NT in the data communications equipment to send to the amount of data collected before. 如果同时设置/chartime:msec 参数,Windows NT 按首先满足条件的选项运行。 If both / chartime: msec parameter, Windows NT at first meet the conditions of the option to run. 允许范围是0-65535 字节,默认值是16 字节。 Allows the range 0-65535 bytes, the default value is 16 bytes.
/chartime:msec / Chartime: msec
指定Windows NT 在将数据发送到通讯设备之前收集数据的时间。 Specifies the Windows NT in the data sent to a communication device to collect data before the time. 如果同时设置/charcount:bytes 参数,Windows NT 按首先满足条件的选项运行。 If both / charcount: bytes parameter, Windows NT at first meet the conditions of the option to run. 允许范围是0-65535000 毫秒,默认值是250 毫秒。 Allowed range is 0-65535000 milliseconds, default is 250 milliseconds.
/charwait:sec / Charwait: sec
设置Windows NT 等待通讯设备变为可用的时间。 Setting Windows NT wait time communications equipment to become available. 允许的范围是0-65535 秒,默认值是3600 秒。 The allowed range is 0-65535 seconds, the default value is 3600 seconds.

Net Continue Net Continue

重新激活挂起的服务。 Reactivate suspended service.
net continue service net continue service
参数 Parameter
service service
能够继续运行的服务,包括: file server for macintosh(该服务仅限于Windows NT Server), ftp publishing service, lpdsvc, net logon, network dde,network dde dsdm,nt lm security support provider,remoteboot(该服务仅限于Windows NT Server),remote access server, schedule,server,simple tcp/ip services 及workstation 。 Can continue to run services, including: file server for macintosh (the service is limited to Windows NT Server), ftp publishing service, lpdsvc, net logon, network dde, network dde dsdm, nt lm security support provider, remoteboot (the service is limited to Windows NT Server), remote access server, schedule, server, simple tcp / ip services and workstation.


Net File Net File

显示某服务器上所有打开的共享文件名及锁定文件数。 Display all open on a server shared file lock file name and number. 该命令也可以关闭个别文件并取消文件锁定。 This command can also turn off individual files and remove the file lock.
net file [id [/close]] net file [id [/ close]]
参数 Parameter
无 No
键入不带参数的net file 可获得服务器上打开文件的列表。 Type net file with no parameters available to the list of open files on the server.
id id
文件标识号。 File identification number.
/close / Close
关闭打开的文件并释放锁定记录。 Close open files and release locks records. 请从共享文件的服务器中键入该命令。 From the shared file server, type the command.

Net Group Net Group

在Windows NT Server 域中添加、显示或更改全局组。 In Windows NT Server domain to add, display or change the global group. 该命令仅在Windows NT Server 域中可用。 This command is only available in Windows NT Server domain.
net group [groupname [/comment:"text "]] [/domain] net group [groupname [/ comment: "text"]] [/ domain]
net group groupname {/add [/comment:"text "] | /delete} [/domain] net group groupname {/ add [/ comment: "text"] | / delete} [/ domain]
net group groupname username [ ...] {/add | /delete} [/domain] net group groupname username [...] {/ add | / delete} [/ domain]
参数 Parameter
无 No
键入不带参数的net group 可以显示服务器名称及服务器的组名称。 Type net group without parameters to display the server name and server group name.
groupname groupname
要添加、扩展或删除的组。 To add, expand, or delete groups. 仅提供某个组名便可查看组中的用户列表。 Only a group name users in the group can view the list.
/comment:"text " / Comment: "text"
为新建组或现有组添加注释。 For the new group or existing group to add comments. 注释最多可以是48 个字符,并用引号将注释文字引住。 Notes can be up to 48 characters, and enclose the comment text cited to live.
/domain / Domain
在当前域的主域控制器中执行该操作,否则在本地计算机上执行操作。 In the current domain primary domain controller to perform the operation, or perform operations on the local computer.
该参数仅用于作为Windows NT Server 域成员的Windows NT Workstation 计算机。 This parameter is only used as a Windows NT Server domain member of the Windows NT Workstation computers. Windows NT Server 计算机默认为在主域控制器中操作。 Windows NT Server computer, the default is the primary domain controller operations.
username[ ...] username [...]
列表显示要添加到组或从组中删除的一个或多个用户。 List shows the group or to be added to the group removed from one or more users. 使用空格分隔多个用户名称项。 Use spaces to separate the user name entry.
/add / Add
添加组或在组中添加用户名。 Add a group or add users in the group name. 必须使用该命令为添加到组中的用户建立帐号。 Must use this command to add to the group of users can create one.
/delete / Delete
删除组或从组中删除用户名。 Remove the group or remove users from the group name.

Net Help Net Help

提供网络命令列表及帮助主题,或提供指定命令或主题的帮助。 List of commands and provide network help topic, or provide the specified command or topic for help. 可用网络命令列于N 下面的“命令参考”中“命令”窗口内。 Available network N following command line in the "Command Reference" in "command" window.
net help [command] net help [command]
net command {/help | /?} net command {/ help | /?}
参数 Parameter
无 No
键入不带参数的net help 显示能够获得帮助的命令列表和帮助主题。 Type net help without arguments displays a list of commands to get help and help topics.
command command
需要其帮助的命令,不要将net 作为command 的一部分。 Need the help of the command, do not command as part of the net.
/help / Help
提供显示帮助文本方式选择。 Displays help text provides choice.
/? /?
显示命令的正确语法。 Display the correct command syntax.

Net Helpmsg Net Helpmsg

提供Windows NT 错误信息的帮助。 Windows NT provides an error message help.
net helpmsg message# net helpmsg message #
参数 Parameter
message# message #
需要其帮助的Windows NT 消息的四位代码。 Need the help of four Windows NT message code.

Net Localgroup Net Localgroup

添加、显示或更改本地组。 Add, display or change the local group.
net localgroup [groupname [/comment:"text "]] [/domain] net localgroup [groupname [/ comment: "text"]] [/ domain]
net localgroup groupname {/add [/comment:"text "] | /delete} [/domain] net localgroup groupname {/ add [/ comment: "text"] | / delete} [/ domain]
net localgroup groupname name [ ...] {/add | /delete} [/domain] net localgroup groupname name [...] {/ add | / delete} [/ domain]
参数 Parameter
无 No
键入不带参数的net localgroup 将显示服务器名称和计算机的本地组名称。 Type net localgroup without parameters will display the server name and the name of the computer's local group.
groupname groupname
要添加、扩充或删除的本地组名称。 To add, expand or delete the name of the local group. 只提供groupname 即可查看用户列表或本地组中的全局组。 Only groupname to view the list of users or local group global group.
/comment: "text " / Comment: "text"
为新建或现有组添加注释。 For new or existing group to add comments. 注释文字的最大长度是48 个字符,并用引号引住。 The maximum length of the comment text is 48 characters, and use quotes.
/domain / Domain
在当前域的主域控制器中执行操作,否则仅在本地计算机上执行操作。 In the current domain primary domain controller to perform operations, or only perform operations on the local computer.
该参数仅应用于Windows NT Server 域中的Windows NT Workstation 计算机。 This parameter applies only to Windows NT Server domain, Windows NT Workstation computers. Windows NT Server 计算机默认为在主域控制器中操作。 Windows NT Server computer, the default is the primary domain controller operations.
name [ ...] name [...]
列出要添加到本地组或从本地组中删除的一个或多个用户名或组名,多个用户名或组名之间以空格分隔。 List to be added to local group or local group to remove from one or more user or group name, multiple user names or group names separated by spaces. 可以是本地用户、其他域用户或全局组,但不能是其他本地组。 Can be a local user, the other domain users or global groups, but not other local groups. 如果是其他域的用户,要在用户名前加域名(例如,SALESRALPHR)。 If the other domain users, the user name in front of the domain name (for example, SALESRALPHR).
/add / Add
将全局组名或用户名添加到本地组中。 The global group name or user name to the local group. 在使用该命令将用户或全局组添加到本地组之前,必须为其建立帐号。 To use this command to add users or global groups to local groups, you must create an account for.
/delete / Delete
从本地组中删除组名或用户名。 To remove a group from the local group name or user name.

Net Name Net Name

添加或删除消息名(有时也称别名),或显示计算机接收消息的名称列表。 Add or delete the message name (sometimes called an alias), or display the name of the computer receiving the message list. 要使用net name 命令,计算机中必须运行信使服务。 To use the net name command, the computer must be running the Messenger service.
net name [name [/add | /delete]] net name [name [/ add | / delete]]
参数 Parameter
无 No
键入不带参数的net name 将列出当前使用的名称。 Type the net name with no parameters will list the names currently in use.
name name
指定接收消息的名称。 Designated to receive the message name. 名称最多为15 个字符。 Name up to 15 characters.
/add / Add
将名称添加到计算机中。 Add the name to the computer. /add 是可选项,键入net name name 与键入net name name /add 相同。 / Add is an option, type the net name name and type the net name name / add the same.
/delete / Delete
从计算机中删除名称。 Deleted from the computer name.

Net Pause Net Pause

暂停正在运行的服务。 Pause a running service.
net pause service net pause service
参数 Parameter
service service
指下列服务: file server for macintosh(仅限于Windows NT Server)、ftp publishing service、lpdsvc、net logon、network dde、network dde dsdm、nt lm security support provider、remoteboot(仅限于Windows NT Server)、remote access server、schedule、server、simple tcp/ip services 或workstation 。 Refer to the following services: file server for macintosh (only Windows NT Server), ftp publishing service, lpdsvc, net logon, network dde, network dde dsdm, nt lm security support provider, remoteboot (only Windows NT Server), remote access server , schedule, server, simple tcp / ip services or workstation.

Net Print Net Print

显示或控制打印作业及打印队列。 Display or control print jobs and print queues.
net print \computername sharename net print \ computername sharename
net print [\computername ] job# [/hold | /release | /delete] net print [\ computername] job # [/ hold | / release | / delete]
参数 Parameter
computername computername
共享打印机队列的计算机名。 The computer sharing the printer queue name.
sharename sharename
打印队列名称。 Print queue name. 当包含computername 与sharename 时,使用反斜杠() 将它们分开。 When included computername and sharename, use the backslash () to separate them.
job# job #
在打印机队列中分配给打印作业的标识号。 In the printer queue assigned to the print job identification number. 有一个或多个打印机队列的计算机为每个打印作业分配唯一标识号。 One or more printer queues print jobs assigned to each computer a unique identification number. 如果某个作业号用于共享打印机队列中,则不能指定给其他作业,也不能分配给其他打印机队列中的作业。 If a job number for the shared printer queue, you can not be assigned to another job, the printer can not be assigned to other jobs in the queue.
/hold / Hold
使用job# 时,在打印机队列中使打印作业等待。 Use of job # when a print job in printer queue manipulation to wait. 打印作业停留在打印机队列中,并且其他打印作业只能等到释放该作业之后才能进入。 Print jobs remain in the printer queue, and other print jobs can only wait until the release of the job before entering.
/release / Release
释放保留的打印作业。 Release held print job.
/delete / Delete
从打印机队列中删除打印作业。 Removed from the printer queue print jobs.

Net Send Net Send

向网络的其他用户、计算机或通信名发送消息。 Other users of the network, computer or communications were to send a message. 要接收消息必须运行信使服务。 To receive the message must be running the Messenger service.
net send {name | * | /domain[:name] | /users} message net send {name | * | / domain [: name] | / users} message
参数 Parameter
name name
要接收发送消息的用户名、计算机名或通信名。 Send a message to receive the user name, computer name, or communications name. 如果计算机名包含空字符,则要将其用引号(" ") 引住。 If the computer name contains a null character, will have to use quotation marks ("") lead to live.
* *
将消息发送到组中所有名称。 Sends a message to all the group names.
/domain[:name] / Domain [: name]
将消息发送到计算机域中的所有名称。 Sends a message to all computers in the domain name. 如果指定name,则消息将发送到指定域或组中的所有名称。 If you specify a name, the message will be sent to the specified domain name or group in all.
/users / Users
将消息发送到与服务器连接的所有用户。 Sends a message to all users connected to the server.
message message
作为消息发送的文本。 As the message text.

Net Session Net Session

列出或断开本地计算机和与之连接的客户端的会话。 List or disconnect the local computer and connect to the client's session.
net session [\computername] [/delete] net session [\ computername] [/ delete]
参数 Parameter
无 No
键入不带参数的net session 可以显示所有与本地计算机的会话的信息。 Type with no parameters, net session displays all of the local computer sessions.
\computername \ Computername
标识要列出或断开会话的计算机。 Identifies the session to list or disconnect the computer.
/delete / Delete
结束与\computername 计算机会话并关闭本次会话期间计算机的所有打开文件。 End with \ computername computer sessions during this session and close all open files your computer. 如果省略\computername 参数,将取消与本地计算机的所有会话。 If you omit the \ computername parameter will cancel all sessions with the local computer.

Net Share Net Share

创建、删除或显示共享资源。 Create, delete, or displays shared resources.
net share sharename net share sharename
net share sharename=drive:path [/users:number | /unlimited] [/remark:"text"] net share sharename = drive: path [/ users: number | / unlimited] [/ remark: "text"]
net share sharename [/users:number | unlimited] [/remark:"text"] net share sharename [/ users: number | unlimited] [/ remark: "text"]
net share {sharename | drive:path} /delete net share {sharename | drive: path} / delete
参数 Parameter
无 No
键入不带参数的net share 将显示本地计算机上所有共享资源的信息。 Type net share without parameters will display all the shared resources on the local computer information.
sharename sharename
是共享资源的网络名称。 Is the network name of the shared resource. 键入带sharename 的net share 命令,只显示该共享信息。 Type with the net share sharename command displays only the sharing of information.
drive:path drive: path
指定共享目录的绝对路径。 Specify the absolute path to the shared directory.
/users:number / Users: number
设置可同时访问共享资源的最大用户数。 Simultaneous access to shared resources set the maximum number of users.
/unlimited / Unlimited
不限制同时访问共享资源的用户数。 Simultaneous access to shared resources do not limit the number of users.
/remark:"text " / Remark: "text"
添加关于资源的注释,注释文字用引号引住。 Add a comment on resources, the comment text with quotes.
/delete / Delete
停止共享资源。 Stop sharing resources.

Net Start Net Start

启动服务,或显示已启动服务的列表。 Start the service, or display a list of services has been started. 如果服务名是两个或两个以上的词,如Net Logon 或Computer Browser,则必须用引号(") 引住。. If the service name is two or more words, such as Net Logon or Computer Browser, you must use quotation marks (") lead to live.
net start [service] net start [service]
参数 Parameter
无 No
键入不带参数的net start 则显示运行服务的列表。 Type net start without parameters will display a list of running services.
service service
包括下列服务: alerter、client service for netware、clipbook server、computer browser、dhcp client 、directory replicator 、eventlog 、ftp publishing service 、lpdsvc、messenger 、net logon 、network dde 、network dde dsdm 、network monitoring agent 、nt lm security support provider 、ole 、remote access connection manager 、remote access isnsap service 、remote access server 、remote procedure call (rpc) locator 、remote procedure call (rpc) service 、schedule 、server 、simple tcp/ip services 、snmp、spooler 、tcp/ip netbios helper 、ups 及workstation Include the following services: alerter, client service for netware, clipbook server, computer browser, dhcp client, directory replicator, eventlog, ftp publishing service, lpdsvc, messenger, net logon, network dde, network dde dsdm, network monitoring agent, nt lm security support provider, ole, remote access connection manager, remote access isnsap service, remote access server, remote procedure call (rpc) locator, remote procedure call (rpc) service, schedule, server, simple tcp / ip services, snmp, spooler, tcp / ip netbios helper, ups and workstation
。 .
下列服务仅在Windows NT Server 下可用:file server for macintosh、gateway service for netware、microsoft dhcp server、print server for macintosh、remoteboot、windows internet name service 。 The following services are only available under the Windows NT Server: file server for macintosh, gateway service for netware, microsoft dhcp server, print server for macintosh, remoteboot, windows internet name service.

Net Statistics Net Statistics

显示本地工作站或服务器服务的统计记录。 Show the local workstation or server service statistics records.
net statistics [workstation | server] net statistics [workstation | server]
参数 Parameter
无 No
键入不带参数的net statistics 将列出其统计信息可用的运行服务。 Type net statistics without parameters will list the available statistical information to run their services.
workstation workstation
显示本地工作站服务的统计信息。 Displays the local Workstation service statistics.
server server
显示本地服务器服务的统计信息。 Shows the statistics of local Server service.

Net Stop Net Stop

停止Windows NT 网络服务。 Stop Windows NT network services.
net stop service net stop service
参数 Parameter
service service
包括下列服务: alerter(警报)、client service for netware(Netware 客户端服务)、clipbook server(剪贴簿服务器)、computer browser(计算机浏览器)、directory replicator(目录复制器)、ftp publishing service (ftp )(ftp 发行服务)、lpdsvc、messenger(信使)、net logon(网络登录)、network dde(网络dde)、network dde dsdm(网络dde dsdm)、network monitor agent(网络监控代理)、nt lm security support provider(NT LM 安全性支持提供)、ole(对象链接与嵌入)、remote access connection manager(远程访问连接管理器)、remote access isnsap service(远程访问isnsap 服务)、remote access server(远程访问服务器)、remote procedure call (rpc) locator(远程过程调用定位器)、remote procedure call (rpc) service(远程过程调用服务)、schedule(调度)、server(服务器)、simple tcp/ip services(简单TCP/IP 服务)、snmp、spooler(后台打印程序)、tcp/ip netbios helper(TCP/IP NETBIOS 辅助工具)、ups 及workstation(工作站)。 Include the following services: alerter (alarm), client service for netware (Netware client services), clipbook server (scrapbook server), computer browser (Computer Browser), directory replicator (catalog replicator), ftp publishing service (ftp) (ftp distribution services), lpdsvc, messenger (messenger), net logon (network logon), network dde (network dde), network dde dsdm (network dde dsdm), network monitor agent (network monitoring agent), nt lm security support provider (NT LM Security Support Provider), ole (Object Linking and Embedding), remote access connection manager (Remote Access Connection Manager), remote access isnsap service (Remote Access isnsap service), remote access server (remote access server), remote procedure call (rpc) locator (Remote Procedure Call Locator), remote procedure call (rpc) service (Remote Procedure Call service), schedule (schedule), server (the server), simple tcp / ip services (Simple TCP / IP services) , snmp, spooler (spooler), tcp / ip netbios helper (TCP / IP NETBIOS aids), ups and workstation (workstation).
下列服务仅在Windows NT Server 中可用: file server for macintosh、gateway service for netware、microsoft dhcp server、print server for macintosh、remoteboot、windows internet name service。 The following services are only available in Windows NT Server: file server for macintosh, gateway service for netware, microsoft dhcp server, print server for macintosh, remoteboot, windows internet name service.

Net Time Net Time

使计算机的时钟与另一台计算机或域的时间同步。 The computer's clock with another computer or domain time synchronization. 不带/set 参数使用时,将显示另一台计算机或域的时间。 Without / set parameters, to display another computer or the domain of time.
net time [\computername | /domain[:name]] [/set] net time [\ computername | / domain [: name]] [/ set]
参数 Parameter
\computername \ Computername
要检查或同步的服务器名。 To check or synchronization server name.
/domain[:name] / Domain [: name]
指定要与其时间同步的域。 Specifies the time synchronization with the domain.
/set / Set
使本计算机时钟与指定计算机或域的时钟同步。 So that the computer clock with the specified computer or domain clock synchronization.

Net Use Net Use

连接计算机或断开计算机与共享资源的连接,或显示计算机的连接信息。 Connect a computer or disconnect your computer and connection to shared resources, or display the computer's connection information. 该命令也控制永久网络连接。 The command also controls persistent network connections.
net use [devicename | *] [\computernamesharename[volume]] [password | *]] [/user:[domainname]username] [[/delete] | [/persistent:{yes | no}]] net use devicename [/home[password | *]] [/delete:{yes | no}] net use [/persistent:{yes | no}] net use [devicename | *] [\ computernamesharename [volume]] [password | *]] [/ user: [domainname] username] [[/ delete] | [/ persistent: {yes | no}]] net use devicename [ / home [password | *]] [/ delete: {yes | no}] net use [/ persistent: {yes | no}]
参数 Parameter
无 No
键入不带参数的net use 将列出网络连接。 Type net use without parameters will list the network connection.
devicename devicename
指定要连接到的资源名称或要断开的设备名称。 Specify the resource name to connect to or disconnect the device name. 有两类设备名:磁盘驱动器(D: 到Z:)和打印机(LPT1: 到LPT3)。 There are two types of device names: disk drives (D: to Z:) and printers (LPT1: to LPT3). 若键入星号而不是指定设备名将分配下一个可用设备名。 If you type an asterisk instead of specifying the device name assigned the next available device name.
\computernamesharename \ Computernamesharename
服务器及共享资源的名称。 The name of the server and shared resources. 如果计算机名包含空白字符,要用引号(" ") 将双反斜线及计算机名引住。 If the computer name contains blank characters, use quotation marks ("") will lead a double backslash and the computer name to live. 计算机名长度可以是1-15 个字符。 The computer name can be 1-15 characters.
volume volume
指定服务器上的NetWare 卷。 NetWare volume on the specified server. 要连接到NetWare 服务器,必须安装并运行NetWare 客户机服务(Windows NT Workstation) 或NetWare 网关服务(Windows NT Server)。 To connect to a NetWare server, you must install and run the NetWare client service (Windows NT Workstation) or Gateway Service for NetWare (Windows NT Server).
password password
访问共享资源的密码。 Password access to shared resources.
* *
提示键入密码。 Type the password. 在密码提示行中键入密码时,将不显示该密码。 In the Password prompt, type the password, the password is not displayed.
/user / User
指定进行连接的另外一个用户。 Specify the connection of another user.
domainname domainname
指定另一个域。 Specify a different domain. 例如net use d: \servershare /user:adminmariel 连接用户mariel,如同从admin 域连接一样。 For example, net use d: \ servershare / user: adminmariel connected user mariel, as the domain admin to connect from the same. 如果省略域,将使用当前登录域。 If you omit the domain, will use the current logon domain.
username username
指定登录的用户名。 Specifies the login user name.
/home / Home
将用户连接到其宿主目录。 Connect users to their home directory.
/delete / Delete
取消指定网络连接。 Cancels the specified network connection. 如果用户以星号指定连接,则取消所有网络连接。 If you specify an asterisk to connect, then cancel all network connections.
/persistent / Persistent
控制永久网络连接的使用。 Control the use of persistent network connections. 默认为上次使用的设置。 Default to the last used settings. 无设备的连接不是永久的。 No device connected is not permanent.
yes yes
保存建立的所有连接,并在下次登录时还原。 Save all connections, and restore at next logon.
no no
不保存建立的连接和继发连接,并在下次登录时还原现有连接。 Does not save the connection and establish secondary connections, and restored at next logon existing connections. 使用/delete 开关项取消永久连接。 Use / delete switch key to cancel permanent connection.

Net User Net User

添加或更改用户帐号或显示用户帐号信息。 Add or change user accounts or displays user account information.
net user [username [password | *] [options]] [/domain] net user [username [password | *] [options]] [/ domain]
net user username {password | *} /add [options] [/domain] net user username {password | *} / add [options] [/ domain]
net user username [/delete] [/domain] net user username [/ delete] [/ domain]
参数 Parameter
无 No
键入不带参数的net user 将查看计算机上的用户帐号列表。 Type with no parameters, net user will see a list of user accounts on the computer.
username username
添加、删除、更改或查看用户帐号名。 Add, delete, change or view the user account name. 用户帐号名最多可以有20 个字符。 User account name can have up to 20 characters.
password password
为用户帐号分配或更改密码。 To assign or change user account password. 密码必须满足在net accounts 命令/minpwlen 选项中设置的最小参数。 Password must meet the net accounts command / minpwlen option to set the minimum parameters. 最多是14 个字符。 Up to 14 characters.
* *
提示输入密码。 Prompted for a password. 在密码提示行中键入密码时,将不显示该密码。 In the Password prompt, type the password, the password is not displayed.
/domain / Domain
在计算机主域的主域控制器中执行操作。 The main computer in the domain primary domain controller to perform operations.
该参数仅在Windows NT Server 域成员的Windows NT Workstation 计算机上可用。 This parameter is only in the Windows NT Server domain members is available on Windows NT Workstation computer. 默认情况下,Windows NT Server 计算机在主域控制器中执行操作。 By default, Windows NT Server computers perform operations on the primary domain controller.
注意:在计算机主域的主域控制器发生该动作。 Note: in the computer's primary domain primary domain controller has the action. 它可能不是登录域。 It may not logon domain.
/add / Add
将用户帐号添加到用户帐号数据库。 The user account to the user account database.
/delete / Delete
从用户帐号数据库中删除用户帐号。 Removed from the user account database user account.
选项如下所示: Options are as follows:
/active:{no | yes} / Active: {no | yes}
启用或禁止用户帐号。 Enable or disable user accounts. 如果不激活用户帐号,用户就不能访问计算机上的资源。 If you do not activate the user account, users can not access resources on the computer. 默认值是yes (激活)。 The default is yes (enabled).
/comment:"text" / Comment: "text"
提供用户帐号的注释。 Notes provide the user account. 该注释最多可以有48 个字符,文字用引号引住。 The comment can have up to 48 characters, text with quotes.
/countrycode:nnn / Countrycode: nnn
使用操作系统的国家代码以便为用户帮助和错误信息文件提供指定语言文件。 Use the operating system country code to help and error messages for the user to provide the specified language file file. 0 值表示默认国家代码。 Value of 0 indicates the default country code.
/expires:{date | never} / Expires: {date | never}
如果设置date,将导致用户帐号过期,never 不对用户帐号设置时间限制。 If you set the date, will result in the user account expires, never set the time limit user account does not. 过期日期根据/countrycode 值可以是下列格式: mm/dd/yy、dd/mm/yy 或mmm, dd, yy。 Expiration date under the / countrycode value can be the following format: mm / dd / yy, dd / mm / yy, or mmm, dd, yy. 注意帐号在指定日期开始时过期。 Note that when the account expires at the specified date. 月份可以是数字、全名或三个字母的简拼。 January can be a number, full name or three letter Jianpin. 年可以是两位或四位数,使用逗号或斜线(不要用空格) 区分日期的各部分。 Can be two or four-digit years, use a comma or a slash (do not use spaces) distinguish between parts of the date. 如果省略yy ,则使用该日期下一次到来的年份(根据计算机的时钟)。 If you omit yy, then use the date the arrival of the next year (according to the computer's clock). 例如如果在1994 年1 月10 日到1995 年1 月8 日之间输入下列日期项,那它们相同:jan,9 1/9/95 For example, if the January 10, 1994 to January 8, 1995, enter the following dates between the items, that they are the same: jan, 9 1/9/95
january,9,1995 january, 9,1995
1/9 1 / 9
/fullname:"name" / Fullname: "name"
指定用户全名而不是用户名。 Specifies the user's full name rather than user name. 用引号将名字引住。 Enclose the name of the lead live.
/homedir:path / Homedir: path
设置用户宿主目录的路径。 Set the user's home directory. 该路径必须存在。 The path must exist.
/homedirreq:{yes | no} / Homedirreq: {yes | no}
设置是否需要宿主目录。 Set whether the host directory.
/passwordchg:{yes | no} / Passwordchg: {yes | no}
指定用户是否能改变自己的密码。 Specifies whether users can change their own passwords. 默认值是yes。 The default value is yes.
/passwordreq:{yes | no} / Passwordreq: {yes | no}
指定用户帐号是否需要密码,默认值是yes。 Specify whether the user account password, the default value is yes.
/profilepath:[path] / Profilepath: [path]
设置用户登录配置文件的路径。 Set user login configuration file. 该路径名指向注册表配置文件。 The path name pointing to the registry configuration file.
/scriptpath:path / Scriptpath: path
为用户登录脚本设置路径。 Set the path for the user login script. Path 不能是绝对路径; Path can not be an absolute path;
path 是相对于%systemroot%SYSTEM32REPLIMPORTSCRIPTS 的相对路径:。 path is relative to the% systemroot% SYSTEM32REPLIMPORTSCRIPTS relative path:.
/times:{times | all} / Times: {times | all}
指定允许用户使用计算机的时间。 Allows the user to specify the computer's time. times 值表示为day[-day][, day[-day]] , time[-time][, time[-time]], 增量限制为一小时。 times value is expressed as day [-day] [, day [-day]], time [-time] [, time [-time]], limited to one hour increments. Days 可以是全名或简写(M、T、W、Th、F、Sa、Su)。 Days can be a full name or abbreviation (M, T, W, Th, F, Sa, Su). Hours 可以是12 小时制或24 小时制。 Hours can be 12-hour or 24 hour clock. 对于12 小时值,使用AM、PM 或AM、PM。 For 12-hour value, the use of AM, PM or AM, PM. all 表示用户总可以登录。 all that the user can always log on. 空值表示用户永远不能登录。 Null means that the user can never log on. 用逗号分隔日期和时间,分隔时间和日期的单位用分号(例如M,4AM-5PM; T,1PM-3PM)。 Date and time separated by commas, separate the time and date of the unit with a semicolon (for example, M, 4AM-5PM; T, 1PM-3PM). 指定/times 时不要使用空格。 Specify / times, do not use spaces.
/usercomment:"text " / Usercomment: "text"
让管理员添加或更改帐号的“用户注释”。 Allows administrators to add or change the account "user comments." 用引号引住文字。 Text with quotes..
/workstations:{computername[,...] | *} / Workstations: {computername [,...] | *}
列出最多八个用户可以登录到网络的工作站。 List up to eight users can log on to the network of workstations. 用逗号分隔列表中的多个项。 Comma-separated list of multiple items. 如果/workstations 没有列表,或如果列表是星号“*”,则用户可以从任何一台计算机登录。 If / workstations do not list, or if the list is an asterisk "*", the user can log on from any computer.

Net View Net View

显示域列表、计算机列表或指定计算机的共享资源列表。 Show the domain list, a list of computers or computer specified list of shared resources.
net view [\computername | /domain[:domainname]] net view [\ computername | / domain [: domainname]]
net view /network:nw [\computername] net view / network: nw [\ computername]
参数 Parameter
无 No
键入不带参数的net view 将显示当前域的计算机列表。 Type net view without parameters will display the current list of domain computers.
\computername \ Computername
指定要查看其共享资源的计算机。 Specify the shared resources you want to view the computer.
/domain[:domainname] / Domain [: domainname]
指定要查看其可用计算机的域。 To view the available computer specified domain. 如果省略domainname ,则显示网络的所有域。 If you omit the domainname, the network is displayed in all domains.
/network:nw / Network: nw
显示NetWare 网络中所有可用的服务器。 Show all available NetWare network server. 如果指定计算机名,则显示NetWare 网络中该计算机的可用资源。 If you specify a computer name, then display the NetWare network, the computer's available resources. 也可以用此开关指定添加到系统中的其他网络。 This switch can also be added to the system specified in the other network.

Tidak ada komentar:

Posting Komentar