C:\WINDOWS>NET HELP USE
The syntax of this command is:
NET USE
[devicename | *
] [\\computername\sharename
[\volume
] [password | *
]] [/USER:
[domainname\
]username
] [/USER:
[dotted domain name\
]username
] [/USER:
[username@dotted domain name
] [/SMARTCARD
] [/SAVECRED
] [[/DELETE
] |
[/PERSISTENT:
NET USE
[password | *
] /HOME
NET USE
[/PERSISTENT:
NET USE connects a computer to a shared resource or disconnects a
computer from a shared resource. When used without options, it lists
the computer's connections.
devicename Assigns a name to connect to the resource or specifies
the device to be disconnected. There are two kinds of
devicenames: disk drives (D: through Z:) and printers
(LPT1: through LPT3:). Type an asterisk instead of a
specific devicename to assign the next available
devicename.
\\computername Is the name of the computer controlling the shared
resource. If the computername contains blank characters,
enclose the double backslash (\\) and the computername
in quotation marks (" "). The computername may be from
1 to 15 characters long.
\sharename Is the network name of the shared resource.
\volume Specifies a NetWare volume on the server. You must have
Client Services for Netware (Windows Workstations)
or Gateway Service for Netware (Windows Server)
installed and running to connect to NetWare servers.
password Is the password needed to access the shared resource.
* Produces a prompt for the password. The password is
not displayed when you type it at the password prompt.
/USER Specifies a different username with which the connection
is made.
domainname Specifies another domain. If domain is omitted,
the current logged on domain is used.
username Specifies the username with which to logon.
/SMARTCARD Specifies that the connection is to use credentials on
a smart card.
/SAVECRED Specifies that the username and password are to be saved.
This switch is ignored unless the command prompts for username
and password. This option is not available on Windows XP
Home Edition and will be ignored.
/HOME Connects a user to their home directory.
/DELETE Cancels a network connection and removes the connection
from the list of persistent connections.
/PERSISTENT Controls the use of persistent network connections.
The default is the setting used last.
YES Saves connections as they are made, and restores
them at next logon.
NO Does not save the connection being made or subsequent
connections; existing connections will be restored at
next logon. Use the /DELETE switch to remove
persistent connections.
NET HELP command | MORE displays Help one screen at a time.
C:\WINDOWS>NET HELP USER
The syntax of this command is:
NET USER
[username
[password | *
] [options
]] [/DOMAIN
] username /ADD
[options
] [/DOMAIN
] username
[/DELETE
] [/DOMAIN
]NET USER creates and modifies user accounts on computers. When used
without switches, it lists the user accounts for the computer. The
user account information is stored in the user accounts database.
This command works only on servers.
username Is the name of the user account to add, delete, modify, or
view. The name of the user account can have as many as
20 characters.
password Assigns or changes a password for the user's account.
A password must satisfy the minimum length set with the
/MINPWLEN option of the NET ACCOUNTS command. It can have as
many as 14 characters.
* Produces a prompt for the password. The password is not
displayed when you type it at a password prompt.
/DOMAIN Performs the operation on a domain controller of
the current domain.
/ADD Adds a user account to the user accounts database.
/DELETE Removes a user account from the user accounts database.
Options Are as follows:
Options Description
--------------------------------------------------------------------
/ACTIVE: Activates or deactivates the account. If
the account is not active, the user cannot
access the server. The default is YES.
/COMMENT:"text" Provides a descriptive comment about the
user's account (maximum of 48 characters).
Enclose the text in quotation marks.
/COUNTRYCODE:nnn Uses the operating system country code to
implement the specified language files for a
user's help and error messages. A value of
0 signifies the default country code.
/EXPIRES: Causes the account to expire if date is
set. NEVER sets no time limit on the
account. An expiration date is in the
form mm/dd/yy or dd/mm/yy, depending on the
country code. Months can be a number,
spelled out, or abbreviated with three
letters. Year can be two or four numbers.
Use slashes(/) (no spaces) to separate
parts of the date.
/FULLNAME:"name" Is a user's full name (rather than a
username). Enclose the name in quotation
marks.
/HOMEDIR:pathname Sets the path for the user's home directory.
The path must exist.
/PASSWORDCHG: Specifies whether users can change their
own password. The default is YES.
/PASSWORDREQ: Specifies whether a user account must have
a password. The default is YES.
/PROFILEPATH
[:path
] Sets a path for the user's logon profile.
/SCRIPTPATH:pathname Is the location of the user's logon
script.
/TIMES: Is the logon hours. TIMES is expressed as
day
[-day
][,day
[-day
]],time
[-time
][,time
[-time
]], limited to 1-hour increments.
Days can be spelled out or abbreviated.
Hours can be 12- or 24-hour notation. For
12-hour notation, use am, pm, a.m., or
p.m. ALL means a user can always log on,
and a blank value means a user can never
log on. Separate day and time entries with
a comma, and separate multiple day and time
entries with a semicolon.
/USERCOMMENT:"text" Lets an administrator add or change the User
Comment for the account.
/WORKSTATIONS: Lists as many as eight computers
from
which a user can log on to the network. If
/WORKSTATIONS has no list or if the list is *,
the user can log on from any computer.
NET HELP command | MORE displays Help one screen at a time.
C:\WINDOWS>NET HELP VIEW
The syntax of this command is:
NET VIEW
[\\computername
[/CACHE
] | /DOMAIN
[:domainname
]]NET VIEW /NETWORK:NW
[\\computername
]NET VIEW displays a list of resources being shared on a computer. When used
without options, it displays a list of computers in the current domain or
network.
\\computername Is a computer whose shared resources you want
to view.
/DOMAIN:domainname Specifies the domain for which you want to
view the available computers. If domainname is
omitted, displays all domains in the local area
network.
/NETWORK:NW Displays all available servers on a NetWare
network. If a computername is specified, the
resources available on that computer in
the NetWare network will be displayed.
/CACHE Displays the offline client caching settings for
the resources on the specified computer