Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1129 lines
100 KiB

  1. ��/*Copyright (c) 1991-1993 Microsoft Corporation
  2. Module Name:
  3. net.hlp
  4. Abstract:
  5. This file contains the help text used by the net command. It is used
  6. as is by the net command (e.g. it isn't "built" into some other form).
  7. Environment:
  8. User Mode - Win32
  9. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  10. Requires ANSI C extensions: slash-slash comments.
  11. Notes:
  12. You will find the documentation on how this file is formatted at the end
  13. of this file.
  14. --*/
  15. %A CONTINUE: CONT
  16. %A FILE: FILES
  17. %A GROUP: GROUPS
  18. %A REPLICATOR: REPL, REPLICATOR
  19. %A SESSION: SESSIONS, SESS
  20. %A STATISTICS: STATS
  21. %A USER: USERS
  22. %A WORKSTATION: REDIRECTOR, REDIR, RDR, WORK, WKSTA, PRDR, DEVRDR
  23. %A MESSENGER: MSG, RECEIVER, RCV
  24. %A SERVER: SVR, SRV
  25. !C NET
  26. !C NAMES
  27. !C SYNTAX
  28. !C SERVICES
  29. .1 SERVICES
  30. :1
  31. NET START can be used to start services, including:
  32. NET START ALERTER
  33. NET START BROWSER
  34. NET START CLIENT SERVICE FOR NETWARE
  35. NET START CLIPBOOK
  36. NET START DHCP CLIENT
  37. NET START EVENTLOG
  38. NET START FILE REPLICATION
  39. NET START MESSENGER
  40. NET START NET LOGON
  41. NET START NT LM SECURITY SUPPORT PROVIDER
  42. NET START PLUG AND PLAY
  43. NET START REMOTE ACCESS CONNECTION MANAGER
  44. NET START ROUTING AND REMOTE ACCESS
  45. NET START RPCLOCATOR
  46. NET START RPCSS
  47. NET START SCHEDULE
  48. NET START SERVER
  49. NET START SPOOLER
  50. NET START TCP/IP NETBIOS HELPER SERVICE
  51. NET START UPS
  52. NET START WORKSTATION
  53. When typed at the command prompt, service names of two words or more must
  54. be enclosed in quotation marks. For example, NET START "NET LOGON"
  55. starts the net logon service.
  56. #1
  57. $1 There are no options for this topic. This topic is a list of
  58. some services that can be started. It is not a NET command.
  59. .1 SYNTAX
  60. :1
  61. The following conventions are used to indicate command syntax:
  62. - Capital letters represent words that must be typed as shown. Lower-
  63. case letters represent names of items that may vary, such as filenames.
  64. - The [ and ] characters surround optional items that can be supplied
  65. with the command.
  66. - The { and } characters surround lists of items. You must supply one
  67. of the items with the command.
  68. - The | character separates items in a list. Only one of the items can
  69. be supplied with the command.
  70. For example, in the following syntax, you must type NET COMMAND and
  71. either SWITCH1 or SWITCH2. Supplying a name is optional.
  72. NET COMMAND [name] {SWITCH1 | SWITCH2}
  73. - The [...] characters mean you can repeat the previous item.
  74. Separate items with spaces.
  75. - The [,...] characters mean you can repeat the previous item, but
  76. you must separate items with commas or semicolons, not spaces.
  77. - When typed at the command prompt, service names of two words or
  78. more must be enclosed in quotation marks. For example,
  79. NET START "COMPUTER BROWSER" starts the computer browser service.
  80. #1
  81. $1 There are no options for this topic. This topic is about how to
  82. read syntax lines. It is not a NET command.
  83. .1 NET
  84. .2 ACCOUNTS
  85. :2 [/FORCELOGOFF:{minutes | NO}] [/MINPWLEN:length]
  86. [/MAXPWAGE:{days | UNLIMITED}] [/MINPWAGE:days]
  87. [/UNIQUEPW:number] [/DOMAIN]
  88. #2 NET ACCOUNTS updates the user accounts database and modifies password
  89. and logon requirements for all accounts.
  90. When used without options, NET ACCOUNTS displays the current settings for
  91. password, logon limitations, and domain information.
  92. Two conditions are required in order for options used with
  93. NET ACCOUNTS to take effect:
  94. � The password and logon requirements are only effective if user
  95. accounts have been set up (use User Manager or the NET USER command).
  96. � The Net Logon service must be running on all servers in the domain
  97. that verify logon. Net Logon is started automatically when Windows
  98. starts.
  99. /FORCELOGOFF:{minutes | NO} Sets the number of minutes a user has
  100. before being forced to log off when the
  101. account expires or valid logon hours expire.
  102. NO, the default, prevents forced logoff.
  103. /MINPWLEN:length Sets the minimum number of characters for
  104. a password. The range is 0-14 characters;
  105. the default is 6 characters.
  106. /MAXPWAGE:{days | UNLIMITED} Sets the maximum number of days that a
  107. password is valid. No limit is specified
  108. by using UNLIMITED. /MAXPWAGE can't be less
  109. than /MINPWAGE. The range is 1-999; the
  110. default is 90 days.
  111. /MINPWAGE:days Sets the minimum number of days that must
  112. pass before a user can change a password.
  113. A value of 0 sets no minimum time. The range
  114. is 0-999; the default is 0 days. /MINPWAGE
  115. can't be more than /MAXPWAGE.
  116. /UNIQUEPW:number Requires that a user's passwords be unique
  117. through the specified number of password
  118. changes. The maximum value is 24.
  119. /DOMAIN Performs the operation on a domain
  120. controller of the current domain. Otherwise,
  121. the operation is performed on the local
  122. computer.
  123. NET HELP command | MORE displays Help one screen at a time.
  124. $2
  125. NET HELP ACCOUNTS describes the options for this command.
  126. .2 COMPUTER
  127. :2 \\computername {/ADD | /DEL}
  128. #2 NET COMPUTER adds or deletes computers from a domain database. This
  129. command is available only on Windows NT Servers.
  130. \\computername Specifies the computer to add or delete from
  131. the domain.
  132. /ADD Adds the specified computer to the domain.
  133. /DEL Removes the specified computer from the domain.
  134. $2
  135. NET HELP COMPUTER describes the options for this command.
  136. .2 CONFIG
  137. .3 SERVER
  138. :3 [/AUTODISCONNECT:time]
  139. [/SRVCOMMENT:"text"]
  140. [/HIDDEN:{YES | NO}]
  141. #3 NET CONFIG SERVER displays or changes settings for the Server service.
  142. /AUTODISCONNECT:time Sets the maximum number of minutes a user's
  143. session can be inactive before it is disconnected.
  144. You can specify -1 to never disconnect. The range
  145. is -1-65535 minutes; the default is 15.
  146. /SRVCOMMENT:"text" Adds a comment for the server that is displayed in
  147. Windows Screens and with the NET VIEW command.
  148. The comment can have as many as 48 characters.
  149. Enclose the text in quotation marks.
  150. /HIDDEN:{YES | NO} Specifies whether the server's computername
  151. appears on display listings of servers. Note that
  152. hiding a server does not alter the permissions
  153. on that server. The default is NO.
  154. To display the current configuration for the Server service,
  155. type NET CONFIG SERVER without parameters.
  156. NET HELP command | MORE displays Help one screen at a time.
  157. $3
  158. NET HELP CONFIG SERVER describes the options for this command.
  159. :2 [SERVER | WORKSTATION]
  160. #2 NET CONFIG displays configuration information of the Workstation or
  161. Server service. When used without the SERVER or WORKSTATION switch,
  162. it displays a list of configurable services. To get help with
  163. configuring a service, type NET HELP CONFIG service.
  164. SERVER Displays information about the configuration of
  165. the Server service.
  166. WORKSTATION Displays information about the configuration of
  167. the Workstation service.
  168. NET HELP command | MORE displays Help one screen at a time.
  169. $2
  170. NET HELP CONFIG describes the options for this command.
  171. .2 CONTINUE
  172. :2 service
  173. #2 NET CONTINUE reactivates a Windows service that has been
  174. suspended by NET PAUSE.
  175. service Is the paused service.
  176. For example, one of the following:
  177. NET LOGON
  178. NT LM SECURITY SUPPORT PROVIDER
  179. SCHEDULE
  180. SERVER
  181. WORKSTATION
  182. NET HELP command | MORE displays Help one screen at a time.
  183. $2
  184. NET HELP CONTINUE describes the options for this command.
  185. .2 FILE
  186. :2 [id [/CLOSE]]
  187. #2 NET FILE closes a shared file and removes file locks. When used without
  188. options, it lists the open files on a server. The listing includes the
  189. identification number assigned to an open file, the pathname of the file,
  190. the username, and the number of locks on the file.
  191. This command works only on computers running the Server service.
  192. id Is the identification number of the file.
  193. /CLOSE Closes an open file and removes file locks. Type this command
  194. from the server where the file is shared.
  195. NET HELP command | MORE displays Help one screen at a time.
  196. $2
  197. NET HELP FILE describes the options for this command.
  198. .2 GROUP
  199. :2 [groupname [/COMMENT:"text"]] [/DOMAIN]
  200. groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
  201. groupname username [...] {/ADD | /DELETE} [/DOMAIN]
  202. #2 NET GROUP adds, displays, or modifies global groups on servers. Used
  203. without parameters, it displays the groupnames on the server.
  204. groupname Is the name of the group to add, expand, or delete.
  205. Supply only a groupname to view a list of users
  206. in a group.
  207. /COMMENT:"text" Adds a comment for a new or existing group.
  208. The comment can have as many as 48 characters. Enclose
  209. the text in quotation marks.
  210. /DOMAIN Performs the operation on a domain controller
  211. of the current domain. Otherwise, the operation is
  212. performed on the local computer.
  213. username[ ...] Lists one or more usernames to add to or remove from
  214. a group. Separate multiple username entries with a space.
  215. /ADD Adds a group, or adds a username to a group.
  216. /DELETE Removes a group, or removes a username from a group.
  217. NET HELP command | MORE displays Help one screen at a time.
  218. $2
  219. NET HELP GROUP describes the options for this command.
  220. .2 HELP
  221. :2 command
  222. -or-
  223. NET command /HELP
  224. #2 Commands available are:
  225. NET ACCOUNTS NET HELP NET SHARE
  226. NET COMPUTER NET HELPMSG NET START
  227. NET CONFIG NET LOCALGROUP NET STATISTICS
  228. NET CONFIG SERVER NET NAME NET STOP
  229. NET CONFIG WORKSTATION NET PAUSE NET TIME
  230. NET CONTINUE NET PRINT NET USE
  231. NET FILE NET SEND NET USER
  232. NET GROUP NET SESSION NET VIEW
  233. NET HELP SERVICES lists some of the services you can start.
  234. NET HELP SYNTAX explains how to read NET HELP syntax lines.
  235. NET HELP command | MORE displays Help one screen at a time.
  236. $2
  237. NET HELP describes the options for this command.
  238. .2 HELPMSG
  239. :2 message#
  240. #2 NET HELPMSG displays information about Windows network messages
  241. (such as error, warning, and alert messages). When you type NET HELPMSG and
  242. the 4-digit number of the Windows error (for example, NET2182),
  243. Windows tells you about the message and suggests action you can take
  244. to solve a problem.
  245. message# Is the 4-digit number of the Windows message you need help
  246. with. You don't need to type NET as part of the message number.
  247. $2
  248. NET HELP HELPMSG describes the options for this command.
  249. .2 LOCALGROUP
  250. :2 [groupname [/COMMENT:"text"]] [/DOMAIN]
  251. groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
  252. groupname name [...] {/ADD | /DELETE} [/DOMAIN]
  253. #2 NET LOCALGROUP modifies local groups on computers. When used without
  254. options, it displays the local groups on the computer.
  255. groupname Is the name of the local group to add, expand, or
  256. delete. Supply only a groupname to view a list of
  257. users or global groups in a local group.
  258. /COMMENT:"text" Adds a comment for a new or existing group.
  259. Enclose the text in quotation marks.
  260. /DOMAIN Performs the operation on the domain controller
  261. of the current domain. Otherwise, the operation is
  262. performed on the local workstation.
  263. name [ ...] Lists one or more usernames or groupnames to add or to
  264. remove from a local group. Separate multiple entries with
  265. a space. Names may be users or global groups, but not
  266. other local groups. If a user is from another domain,
  267. preface the username with the domain name (for
  268. example, SALES\RALPHR).
  269. /ADD Adds a groupname or username to a local group. An account
  270. must be established for users or global groups added to a
  271. local group with this command.
  272. /DELETE Removes a groupname or username from a local group.
  273. NET HELP command | MORE displays Help one screen at a time.
  274. $2
  275. NET HELP LOCALGROUP describes the options for this command.
  276. .2 NAME
  277. :2 [name [/ADD | /DELETE]]
  278. #2 NET NAME adds or deletes a messaging name (alias) at a computer.
  279. A messaging name is a name to which messages are sent. When used without
  280. options, NET NAME displays the names accepting messages at the computer.
  281. A computer's list of names comes from three places:
  282. � Message names, which are added with NET NAME
  283. � A computername, which is added as a name when the Workstation
  284. service is started. This name cannot be deleted.
  285. � A username, which is added as a name when you log on, if it
  286. is not being used at another computer. This name can be deleted.
  287. name Specifies the name to receive messages. The name can have as
  288. many as 15 characters.
  289. /ADD Adds a name to a computer. Typing /ADD is optional; typing
  290. NET NAME name works the same way as typing NET NAME name /ADD.
  291. /DELETE Removes a name from a computer.
  292. NET HELP command | MORE displays Help one screen at a time.
  293. $2
  294. NET HELP NAME describes the options for this command.
  295. .2 PAUSE
  296. :2 service
  297. #2 NET PAUSE suspends a Windows service or resource. Pausing a service
  298. puts it on hold.
  299. service Is the service to be paused.
  300. For example, one of the following:
  301. NET LOGON
  302. NT LM SECURITY SUPPORT PROVIDER
  303. SCHEDULE
  304. SERVER
  305. WORKSTATION
  306. NET HELP command | MORE displays Help one screen at a time.
  307. $2
  308. NET HELP PAUSE describes the options for this command.
  309. .2 PRINT
  310. :2 \\computername\sharename
  311. [\\computername] job# [/HOLD | /RELEASE | /DELETE]
  312. #2 NET PRINT displays print jobs and shared queues.
  313. For each queue, the display lists jobs, showing the size
  314. and status of each job, and the status of the queue.
  315. \\computername Is the name of the computer sharing the printer
  316. queue(s).
  317. sharename Is the name of the shared printer queue.
  318. job# Is the identification number assigned to a print
  319. job. A computer with one or more printer queues
  320. assigns each print job a unique number.
  321. /HOLD Prevents a job in a queue from printing.
  322. The job stays in the printer queue, and other
  323. jobs bypass it until it is released.
  324. /RELEASE Reactivates a job that is held.
  325. /DELETE Removes a job from a queue.
  326. NET HELP command | MORE displays Help one screen at a time.
  327. $2
  328. NET HELP PRINT describes the options for this command.
  329. .2 SEND
  330. :2 {name | * | /DOMAIN[:name] | /USERS} message
  331. #2 Sends messages to other users, computers, or messaging names
  332. on the network. The Messenger service must be running to receive messages.
  333. You can send a message only to a name that is active on the network.
  334. If the message is sent to a username, that user must be logged on
  335. and running the Messenger service to receive the message.
  336. name Is the username, computername, or messaging name
  337. to send the message to. If the name is a
  338. computername that contains blank characters,
  339. enclose the alias in quotation marks (" ").
  340. * Sends the message to all the names in your group.
  341. /DOMAIN[:name] Sends the message to all the names in the
  342. workstation domain. If name is specified, the
  343. message is sent to all the names in the specified
  344. domain or workgroup.
  345. /USERS Sends the message to all users connected to
  346. the server.
  347. message Is text to be sent as a message.
  348. NET HELP command | MORE displays Help one screen at a time.
  349. $2
  350. NET HELP SEND describes the options for this command.
  351. .2 SESSION
  352. :2 [\\computername] [/DELETE]
  353. #2 NET SESSION lists or disconnects sessions between the computer and other
  354. computers on the network. When used without options, it displays information
  355. about all sessions with the computer of current focus.
  356. This command works only on servers.
  357. \\computername Lists the session information for the named computer.
  358. /DELETE Ends the session between the local computer and
  359. computername, and closes all open files on the computer
  360. for the session. If computername is omitted,
  361. all sessions are ended.
  362. NET HELP command | MORE displays Help one screen at a time.
  363. $2
  364. NET HELP SESSION describes the options for this command.
  365. .2 SHARE
  366. :2 sharename
  367. sharename=drive:path [/USERS:number | /UNLIMITED]
  368. [/REMARK:"text"]
  369. [/CACHE:Manual | Documents| Programs | None ]
  370. sharename [/USERS:number | /UNLIMITED]
  371. [/REMARK:"text"]
  372. [/CACHE:Manual | Documents | Programs | None]
  373. {sharename | devicename | drive:path} /DELETE
  374. #2 NET SHARE makes a server's resources available to network users. When
  375. used without options, it lists information about all resources being
  376. shared on the computer. For each resource, Windows reports the
  377. devicename(s) or pathname(s) and a descriptive comment associated with it.
  378. sharename Is the network name of the shared resource. Type
  379. NET SHARE with a sharename only to display information
  380. about that share.
  381. drive:path Specifies the absolute path of the directory to
  382. be shared.
  383. /USERS:number Sets the maximum number of users who can
  384. simultaneously access the shared resource.
  385. /UNLIMITED Specifies an unlimited number of users can
  386. simultaneously access the shared resource
  387. /REMARK:"text" Adds a descriptive comment about the resource.
  388. Enclose the text in quotation marks.
  389. devicename Is one or more printers (LPT1: through LPT9:)
  390. shared by sharename.
  391. /DELETE Stops sharing the resource.
  392. /CACHE:Manual Enables manual client caching of programs and documents
  393. from this share
  394. /CACHE:Documents Enables automatic caching of documents from this share
  395. /CACHE:Programs Enables automatic caching of documents and programs
  396. from this share
  397. /CACHE:None Disables caching from this share
  398. NET HELP command | MORE displays Help one screen at a time.
  399. $2
  400. NET HELP SHARE describes the options for this command.
  401. .2 START
  402. .3 ALERTER
  403. :3
  404. #3 NET START ALERTER starts the Windows Alerter service on a server.
  405. The Alerter service sends messages about network information to users.
  406. $3
  407. This command has no options.
  408. .3 BROWSER
  409. :3
  410. #3 NET START BROWSER starts the Browser service. The Browser service
  411. supports browsing computers on the network and being browsed by other
  412. computers on the network.
  413. NET HELP command | MORE displays Help one screen at a time.
  414. $3
  415. This command has no options.
  416. .3 CLIPBOOK
  417. :3
  418. #3 NET START CLIPBOOK starts the Windows Clipbook service.
  419. The Clipbook service supports cutting and pasting across
  420. the network.
  421. NET HELP command | MORE displays Help one screen at a time.
  422. $3
  423. This command has no options.
  424. .3 EVENTLOG
  425. :3
  426. #3 NET START EVENTLOG starts the event logging service, which logs events on
  427. the local computer. This service must be started prior to using
  428. the Event Viewer to view the logged events.
  429. NET HELP command | MORE displays Help one screen at a time.
  430. $3
  431. This command has no options.
  432. .3 MESSENGER
  433. :3
  434. #3 NET START MESSENGER starts the Windows Messenger service, which
  435. lets you receive messages from other network users. Typing this command
  436. also starts the Workstation service if it is not already running.
  437. NET HELP command | MORE displays Help one screen at a time.
  438. $3
  439. This command has no options.
  440. .3 NET
  441. .4 LOGON
  442. :4
  443. #4 NET START NET LOGON starts the Windows Net Logon service, which
  444. verifies logon requests and controls replication of the user
  445. accounts database. Service names with two words, such as
  446. Net Logon, must be enclosed in quotation marks (") when typed
  447. at the command prompt. This service can also be started by typing
  448. NET START NETLOGON.
  449. NET HELP command | MORE displays Help one screen at a time.
  450. $4
  451. This command has no options.
  452. :3
  453. #3
  454. $3
  455. NET HELP START NET LOGON describes this command. It has no options.
  456. .3 RPCLOCATOR
  457. :3
  458. #3 NET START RPCLOCATOR Starts the RPC Locator service. The Locator service
  459. is the RPC name service for Windows.
  460. NET HELP command | MORE displays Help one screen at a time.
  461. $3
  462. This command has no options.
  463. .3 RPCSS
  464. :3
  465. #3 NET START RPCSS starts the Windows RPCSS service.
  466. NET HELP command | MORE displays Help one screen at a time.
  467. $3
  468. This command has no options.
  469. .3 SCHEDULE
  470. :3
  471. #3 NET START SCHEDULE starts the Windows Schedule service.
  472. The Schedule service must be running to schedule events using
  473. the Schduled Tasks folder or the AT command.
  474. NET HELP command | MORE displays Help one screen at a time.
  475. $3
  476. This command has no options.
  477. .3 SERVER
  478. :3
  479. #3 NET START SERVER starts the Windows Server service, which controls
  480. access to resources.
  481. NET HELP command | MORE displays Help one screen at a time.
  482. $3
  483. This command has no options.
  484. .3 UPS
  485. :3
  486. #3 NET START UPS starts the Windows UPS service, which
  487. provides uninterrupted power service to your computer. The UPS service
  488. must be configured before starting.
  489. NET HELP command | MORE displays Help one screen at a time.
  490. $3
  491. This command has no options.
  492. .3 WORKSTATION
  493. :3
  494. #3 NET START WORKSTATION starts the Windows Workstation service, which
  495. enables your computer to use shared resources on the network.
  496. NET HELP command | MORE displays Help one screen at a time.
  497. $3
  498. This command has no options.
  499. :2 [service]
  500. #2 NET START lists running services.
  501. service May include one of the following services:
  502. ALERTER
  503. BROWSER
  504. CLIENT SERVICE FOR NETWARE
  505. CLIPBOOK
  506. DHCP CLIENT
  507. EVENTLOG
  508. FILE REPLICATION
  509. MESSENGER
  510. NET LOGON
  511. NT LM SECURITY SUPPORT PROVIDER
  512. PLUG AND PLAY
  513. REMOTE ACCESS CONNECTION MANAGER
  514. ROUTING AND REMOTE ACCESS
  515. RPCLOCATOR
  516. RPCSS
  517. SCHEDULE
  518. SERVER
  519. SPOOLER
  520. TCP/IP NETBIOS HELPER SERVICE
  521. UPS
  522. WORKSTATION
  523. When typed at the command prompt, service names of two words or more must
  524. be enclosed in quotation marks. For example, NET START "NET LOGON"
  525. starts the net logon service.
  526. NET START can also start services not provided with Windows.
  527. NET HELP command | MORE displays Help one screen at a time.
  528. $2
  529. NET HELP START describes the options for this command.
  530. .2 STATISTICS
  531. :2 [WORKSTATION | SERVER]
  532. #2 NET STATISTICS displays the statistics log for the local Workstation or
  533. Server service. Used without parameters, NET STATISTICS displays
  534. the services for which statistics are available.
  535. SERVER Displays the Server service statistics.
  536. WORKSTATION Displays the Workstation service statistics.
  537. NET HELP command | MORE displays Help one screen at a time.
  538. $2
  539. NET HELP STATISTICS describes the options for this command.
  540. .2 STOP
  541. :2 service
  542. #2 NET STOP stops Windows services.
  543. Stopping a service cancels any network connections the service is
  544. using. Also, some services are dependent on others. Stopping one
  545. service can stop others.
  546. Some services cannot be stopped.
  547. service May be one of the following services:
  548. ALERTER
  549. BROWSER
  550. CLIENT SERVICE FOR NETWARE
  551. CLIPBOOK
  552. DHCP CLIENT
  553. FILE REPLICATION
  554. MESSENGER
  555. NET LOGON
  556. NT LM SECURITY SUPPORT PROVIDER
  557. REMOTE ACCESS CONNECTION MANAGER
  558. ROUTING AND REMOTE ACCESS
  559. RPCLOCATOR
  560. SCHEDULE
  561. SERVER
  562. SPOOLER
  563. TCP/IP NETBIOS HELPER SERVICE
  564. UPS
  565. WORKSTATION
  566. NET STOP can also stop services not provided with Windows.
  567. NET HELP command | MORE displays Help one screen at a time.
  568. $2
  569. NET HELP STOP describes the options for this command.
  570. .2 TIME
  571. :2 [\\computername | /DOMAIN[:domainname] | /RTSDOMAIN[:domainname]] [/SET]
  572. [\\computername] /QUERYSNTP
  573. [\\computername] /SETSNTP[:ntp server list]
  574. #2 NET TIME synchronizes the computer's clock with that of another computer
  575. or domain, or displays the time for a computer or domain. When used without
  576. options on a Windows Server domain, it displays the current
  577. date and time at the computer designated as the time server for the domain.
  578. This command allows setting the NTP timeserver for computername.
  579. \\computername Is the name of the computer you want to check or
  580. synchronize with.
  581. /DOMAIN[:domainname] Specifies to synchronize the time from the Primary Domain
  582. Controller of domainname.
  583. /RTSDOMAIN[:domainname] Specifies to synchronize with a Reliable Time Server
  584. from domainname.
  585. /SET Synchronizes the computer's time with the time
  586. on the specified computer or domain.
  587. /QUERYSNTP Displays the currently configured NTP server for this computer
  588. /SETSNTP[:ntp server list]
  589. Sets the NTP time servers to be used by this computer. This
  590. may be a list of IP addresses or DNS names separated by spaces.
  591. If multiple timeservers are listed, the list must be surrounded
  592. by quotes.
  593. NET HELP command | MORE displays Help one screen at a time.
  594. $2
  595. NET HELP TIME describes the options for this command.
  596. .2 USE
  597. :2 [devicename | *] [\\computername\sharename[\volume] [password | *]]
  598. [/USER:[domainname\]username]
  599. [/USER:[dotted domain name\]username]
  600. [/USER:[username@dotted domain name]
  601. [/SMARTCARD]
  602. [/SAVECRED]
  603. [[/DELETE] | [/PERSISTENT:{YES | NO}]]
  604. NET USE {devicename | *} [password | *] /HOME
  605. NET USE [/PERSISTENT:{YES | NO}]
  606. #2 NET USE connects a computer to a shared resource or disconnects a
  607. computer from a shared resource. When used without options, it lists
  608. the computer's connections.
  609. devicename Assigns a name to connect to the resource or specifies
  610. the device to be disconnected. There are two kinds of
  611. devicenames: disk drives (D: through Z:) and printers
  612. (LPT1: through LPT3:). Type an asterisk instead of a
  613. specific devicename to assign the next available
  614. devicename.
  615. \\computername Is the name of the computer controlling the shared
  616. resource. If the computername contains blank characters,
  617. enclose the double backslash (\\) and the computername
  618. in quotation marks (" "). The computername may be from
  619. 1 to 15 characters long.
  620. \sharename Is the network name of the shared resource.
  621. \volume Specifies a NetWare volume on the server. You must have
  622. Client Services for Netware (Windows Workstations)
  623. or Gateway Service for Netware (Windows Server)
  624. installed and running to connect to NetWare servers.
  625. password Is the password needed to access the shared resource.
  626. * Produces a prompt for the password. The password is
  627. not displayed when you type it at the password prompt.
  628. /USER Specifies a different username with which the connection
  629. is made.
  630. domainname Specifies another domain. If domain is omitted,
  631. the current logged on domain is used.
  632. username Specifies the username with which to logon.
  633. /SMARTCARD Specifies that the connection is to use credentials on
  634. a smart card.
  635. /SAVECRED Specifies that the username and password are to be saved.
  636. This switch is ignored unless the command prompts for username
  637. and password. This option is not available on Windows XP
  638. Home Edition and will be ignored.
  639. /HOME Connects a user to their home directory.
  640. /DELETE Cancels a network connection and removes the connection
  641. from the list of persistent connections.
  642. /PERSISTENT Controls the use of persistent network connections.
  643. The default is the setting used last.
  644. YES Saves connections as they are made, and restores
  645. them at next logon.
  646. NO Does not save the connection being made or subsequent
  647. connections; existing connections will be restored at
  648. next logon. Use the /DELETE switch to remove
  649. persistent connections.
  650. NET HELP command | MORE displays Help one screen at a time.
  651. $2
  652. NET HELP USE describes the options for this command.
  653. .2 USER
  654. :2 [username [password | *] [options]] [/DOMAIN]
  655. username {password | *} /ADD [options] [/DOMAIN]
  656. username [/DELETE] [/DOMAIN]
  657. #2 NET USER creates and modifies user accounts on computers. When used
  658. without switches, it lists the user accounts for the computer. The
  659. user account information is stored in the user accounts database.
  660. This command works only on servers.
  661. username Is the name of the user account to add, delete, modify, or
  662. view. The name of the user account can have as many as
  663. 20 characters.
  664. password Assigns or changes a password for the user's account.
  665. A password must satisfy the minimum length set with the
  666. /MINPWLEN option of the NET ACCOUNTS command. It can have as
  667. many as 14 characters.
  668. * Produces a prompt for the password. The password is not
  669. displayed when you type it at a password prompt.
  670. /DOMAIN Performs the operation on a domain controller of
  671. the current domain.
  672. /ADD Adds a user account to the user accounts database.
  673. /DELETE Removes a user account from the user accounts database.
  674. Options Are as follows:
  675. Options Description
  676. --------------------------------------------------------------------
  677. /ACTIVE:{YES | NO} Activates or deactivates the account. If
  678. the account is not active, the user cannot
  679. access the server. The default is YES.
  680. /COMMENT:"text" Provides a descriptive comment about the
  681. user's account (maximum of 48 characters).
  682. Enclose the text in quotation marks.
  683. /COUNTRYCODE:nnn Uses the operating system country code to
  684. implement the specified language files for a
  685. user's help and error messages. A value of
  686. 0 signifies the default country code.
  687. /EXPIRES:{date | NEVER} Causes the account to expire if date is
  688. set. NEVER sets no time limit on the
  689. account. An expiration date is in the
  690. form mm/dd/yy or dd/mm/yy, depending on the
  691. country code. Months can be a number,
  692. spelled out, or abbreviated with three
  693. letters. Year can be two or four numbers.
  694. Use slashes(/) (no spaces) to separate
  695. parts of the date.
  696. /FULLNAME:"name" Is a user's full name (rather than a
  697. username). Enclose the name in quotation
  698. marks.
  699. /HOMEDIR:pathname Sets the path for the user's home directory.
  700. The path must exist.
  701. /PASSWORDCHG:{YES | NO} Specifies whether users can change their
  702. own password. The default is YES.
  703. /PASSWORDREQ:{YES | NO} Specifies whether a user account must have
  704. a password. The default is YES.
  705. /PROFILEPATH[:path] Sets a path for the user's logon profile.
  706. /SCRIPTPATH:pathname Is the location of the user's logon
  707. script.
  708. /TIMES:{times | ALL} Is the logon hours. TIMES is expressed as
  709. day[-day][,day[-day]],time[-time][,time
  710. [-time]], limited to 1-hour increments.
  711. Days can be spelled out or abbreviated.
  712. Hours can be 12- or 24-hour notation. For
  713. 12-hour notation, use am, pm, a.m., or
  714. p.m. ALL means a user can always log on,
  715. and a blank value means a user can never
  716. log on. Separate day and time entries with
  717. a comma, and separate multiple day and time
  718. entries with a semicolon.
  719. /USERCOMMENT:"text" Lets an administrator add or change the User
  720. Comment for the account.
  721. /WORKSTATIONS:{computername[,...] | *}
  722. Lists as many as eight computers from
  723. which a user can log on to the network. If
  724. /WORKSTATIONS has no list or if the list is *,
  725. the user can log on from any computer.
  726. NET HELP command | MORE displays Help one screen at a time.
  727. $2
  728. NET HELP USER describes the options for this command.
  729. .2 VIEW
  730. :2 [\\computername [/CACHE] | /DOMAIN[:domainname]]
  731. NET VIEW /NETWORK:NW [\\computername]
  732. #2 NET VIEW displays a list of resources being shared on a computer. When used
  733. without options, it displays a list of computers in the current domain or
  734. network.
  735. \\computername Is a computer whose shared resources you want
  736. to view.
  737. /DOMAIN:domainname Specifies the domain for which you want to
  738. view the available computers. If domainname is
  739. omitted, displays all domains in the local area
  740. network.
  741. /NETWORK:NW Displays all available servers on a NetWare
  742. network. If a computername is specified, the
  743. resources available on that computer in
  744. the NetWare network will be displayed.
  745. /CACHE Displays the offline client caching settings for
  746. the resources on the specified computer
  747. $2
  748. NET HELP VIEW describes the options for this command.
  749. :1
  750. #1
  751. The keyword NET specifies Windows commands.
  752. NET HELP command | MORE displays Help one screen at a time.
  753. .1 NAMES
  754. :1
  755. The following types of names are used with Windows:
  756. Messaging Name A name to which messages can be sent. Each computer's
  757. computername and the username logged on at that
  758. comptuer are added to its list of names. Use the
  759. NET NAME command to view a computer's names or to
  760. add new ones.
  761. Computername A unique name that identifies a computer on
  762. the local-area network.
  763. Devicename The name by which Windows identifies a disk resource
  764. or printer. A disk resource is identified by a drive
  765. letter followed by a colon (for example, D:). A
  766. printer is identified by a port name followed by a colon
  767. (for example, LPT1:).
  768. Workgroup A group of computers on the network. Each workgroup
  769. has a unique name.
  770. Localgroup A group of names in a Workgroup that are granted the
  771. same rights.
  772. Domain A group of Windows Servers, Windows Workstations
  773. and other computers on the network. A
  774. domain has a unique name. Usually, you must log on in
  775. a domain to gain access to the network. Domains are
  776. created and managed with Windows Server.
  777. Global group A group of names in a domain that are granted the
  778. same rights.
  779. Filename The name of a file. Under the file allocation table
  780. (FAT) file system, a filename can have as many as eight
  781. characters, followed by a period (.) and an extension of
  782. as many as three characters. Under NTFS and HPFS, a
  783. filename can have as many as 254 characters.
  784. Network path A description of the location of a shared resource,
  785. consisting of a computer's computername followed by
  786. the sharename of the resource. The computername
  787. is preceded by two backslashes, and the sharename is
  788. preceded by one backslash (for example,
  789. \\SERVER1\RESOURCE).
  790. Path The location of a directory. A path can consist of a
  791. devicename and one or more directory names. A
  792. backslash (\) precedes each directory name (for example,
  793. C:\CUSTOMER\CORP\ACCT).
  794. Pathname A path and a filename. The filename is preceded by a
  795. backslash (\) (for example, C:\CUSTOMER\CORP\REPORT.DOC).
  796. Sharename A name that identifies a shared resource on a computer. A
  797. sharename is used with the computer's computername to form
  798. a network path (as in \\SERVER\RESOURCE).
  799. Username The name a person supplies when logging on at
  800. a computer.
  801. To view these definitions one screen at a time, type NET HELP NAMES | MORE.
  802. #1
  803. $1 There are no options for this topic. This is a help topic about the
  804. different types of names Windows uses. It is not a NET command.
  805. :0
  806. #0
  807. /*
  808. This is how this file works. NET HELP looks for a match between the command
  809. specified at run time and one of the entries in this file. For each entry
  810. in this file there can be associated with it a subentry, which constitutes
  811. an switch for that command (or sub-command). HELP (NET HELP) first searches
  812. for a match at level 1. If it finds a match at this level it continues
  813. searching for a sub-level (if one was specified at run time). As HELP
  814. finds matches it displays them , by doing so it builds the command
  815. in its proper syntax. If no sub commands were entered at run time HELP
  816. stops and displays the help associated with that level.
  817. SOME RULES:
  818. Operators are the funny 2 character symbols that start every line -
  819. they are the characters !, %, ., :, and # followed by a alphanumeric
  820. character.
  821. Every operator must start in column 1.
  822. Every operator must be separated from the info that follows it by at
  823. least one space.
  824. The end of every line must contain a newline. (Trailing spaces will
  825. causes matches to fail on ".X" entries.)
  826. Every ".1" entry MUST have a corresponding "#1" entry.
  827. This file consists of 4 sections. These sections are ...
  828. COMMENTS are delimited by a "/*" at the beginning of a line (must
  829. start in column 1) indicating the beginning of the comment section.
  830. A "*/" at the beginning of a line marks the end of the comment sec-
  831. tion. Only two comment section are allowed, one at the very be-
  832. ginning of the file and one at the very end. It is recommended that
  833. the comment section at the beginning of the file be kept very
  834. small to minimize access time to "help data" by the help command.
  835. ALIASES are defined by a "%A" beginning in column 1. Aliases allow
  836. you to define another name for a given command. For example if
  837. you wish to change the name of the "ALERTER" to "WATCHDOG"
  838. you could do so by entering the line,
  839. %A ALERTER: WATCHDOG
  840. starting at column 1. If there are additional Aliases they should
  841. be specified on the same line separated by commas. This tells the
  842. help command that if someone types "net help watchdog" they really
  843. mean "net help alerter." Trailing spaces are significant (for this
  844. release) in alias names. Beware!
  845. COMMANDS are additional commands that you want NET HELP to document.
  846. They are defined by placing !C operator (yes starting in column
  847. 1) followed by the command name on a separate line.
  848. An example of this is the AT commands. This
  849. is not really NET commands but you can get help on it through
  850. NET by entering it with the COMMANDS section in this file. For
  851. example if you want to get help on your PHONE command that you wrote
  852. and the only help utility you have is the NET HELP utility. To
  853. add phone to this utility you must place the following line in the
  854. Commands section of this file,
  855. !C PHONE
  856. starting in column 1. Now all that remains is to add the PHONE
  857. help data to the DATA section of this file. (See DATA below)
  858. (YES, you can assign aliases to commands that you declare in this
  859. section. But you must assign the aliases in the alias section
  860. first.)
  861. DATA is the actual text that gets printed when you request help.
  862. The format for the data section is set up in a way such that
  863. the NET HELP command picks up information about a command as it
  864. reads through this file. The format of the data section is as
  865. follows;
  866. The Command Name (this is the proper name used to reference a
  867. specific command - any other name used to access this command should
  868. be entered in the alias list above) should be preceded by a
  869. ".1". This defines that this Command Name would normally be the
  870. first thing typed when entering the command. An example of a ".1"
  871. Command Name would be NET. When HELP finds this entry, it knows
  872. what follows pertains to the NET command. What follows this ".1"
  873. entry can be one of 2 possible fields. The syntax operator ":1" or
  874. a sub switch operator ".2".
  875. Another option of the NET command could follow. If, as it
  876. does, the NET command has many options that can be specified, they
  877. should be enumerated on separate lines. Each level of help for a
  878. specific command constitutes a higher "dot number". I think an
  879. example would make this clearer. Lets look at a help entry for the
  880. NET START command. The NET START command has additional options.
  881. NET START [SERVER WORKSTATION ALERTER ...etc]. In this example NET
  882. is the ".1" entry, START is a ".2" entry and SERVER, WKSTA, and
  883. ALERTER are all ".3" entries.
  884. .1 NET
  885. .2 START
  886. .3 SERVER
  887. .3 ALERTER
  888. .3 WORKSTATION
  889. In the example above I indented each level, this helps you
  890. visualize what's going on and is legal to do as long as the
  891. .X starts in column 1.
  892. This is all fine and well but what about the help for NET
  893. START SERVER. As stated before HELP allows two levels of
  894. assistance , Syntax and Help. You may choose to have the help
  895. be the same for all NET START options but obviously want
  896. different syntax displayed for each option. In order to do
  897. this you must place the help for any option (or sub-option)
  898. in the file prior to the help for the actual command. Sticking
  899. with our original example, lets assume that the SERVER and
  900. the WORKSTATION have enough in common that they want to share
  901. the same help message, but the alerter has some different
  902. information. We can accomplish this by specifying syntax, but
  903. no help for the SERVER and WORKSTATION options and specifying
  904. both for the ALERTER.
  905. .1 NET
  906. .2 START
  907. .3 SERVER
  908. (Syntax) :3 /Security /Autodisconnect ...etc
  909. .3 ALERTER
  910. (Syntax) :3
  911. (Help) #3 The alerter is the service that bla bla bla...etc
  912. .3 WORKSTATION
  913. (Syntax) :3 /Computername /Chartime ...etc
  914. (Syntax) :2
  915. (Help) #2 This is the help for NET START bla ... etc
  916. In the example above you will note a couple of things.
  917. First, I introduced two new operators ":" and "#". As indicated by
  918. the parentheses the ":" operator defines syntax data and "#"
  919. defines help data. Secondly, you may have noticed there were no
  920. syntax entries for the NET START ALERTER or NET START. In the
  921. case of NET START ALERTER, there may be no more syntax to be
  922. specified, since HELP generates the syntax as it reads the entries.
  923. In the case of NET START, leaving the syntax field blank, tells
  924. HELP to generate an option lists for the START command from the
  925. .3 entries found contained in the START section. If however,
  926. syntax information would have been placed there, HELP would have
  927. displayed the supplied information.
  928. This behavior can be expanded to 8 levels of sub-options.
  929. All level 1 (".1") entries must have a help ("#1") entry. The end
  930. of the data section must be marked by the following lines,
  931. :0
  932. #0
  933. beginning in column 1. There can be no more than 512 characters in
  934. the option field including the spaces between the options and the
  935. brackets. White space following the ".X" operators is ignored, white
  936. space following the ":X" and "#X" operators is printed exactly as
  937. entered. If data is entered on the next line following the syntax or
  938. help operators it is printed as entered, except that the first three
  939. columns are always ignored.
  940. */