Leaked source code of windows server 2003
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.

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