NET series

zhaozj2021-02-16  136

NET ACCOUNTS NET HELPNET SHARENET COMPUTERNET HELPMSGNET STARTNET CONFIGNET LOCALGROUPNET STATISTICSNET CONFIG SERVERNET NAMENET STOPNET CONFIG WORKSTATIONNET PAUSENET TIMENET CONTINUENET PRINTNET USENET FILENET SEND NET USERNET GROUPNET SESSIONNET VIEW

1.Net View

Net view [// computername [/ cache] | / domain [: domainname]] NET View / Network: NW [// computename]

NET View Displays a domain list, a computer list, or a resource shared by the specified computer.

Net view [// computername | / domain [: domainname]]]

NET View / Network: NW [// computename]

parameter

no

If you use without parameters, NET View displays a list of computers in the current domain.

// computername

Specifies the computer to view its shared resource.

/ domain [: DomainName]

Specifies to view the domain of its available computers. If DomainName is omitted, all the domains in the network will be displayed.

/ network: NW

Display all available servers on the NetWare network. If the computer name is specified, the available resources on the computer are displayed in the NetWare network. Other networks added to the system can also be specified using this switch.

NET View Example To view a list of resources shared by // Production Computer, type:

Net View // Production

To see the available resources on NetWare Server // Marketing, type:

NET View / Network: NW // Marketing

To view a list of computers in the Sales Domain or Working Group: Type:

Net View / Domain: Sales

To view all servers in the NetWare network, type:

NET View / Network: NW

Net View Description Use the Net View command to display a list of computer. The display content is similar to the following:

Server Name Remark

-------------------------------------------------

// Production Production File Server

// Print1 Printer Room, First Floor

// Print2 Printer Room, Second Floor

2.NET USE

NET USE Connects to or disconnects your computer or displays information about your computer. This command also controls a persistent network connection.

NET USE [DeviceName | *] [// computername / sharename [/ volume]] [password | *]] [/ user: [domainname /] username] [[/ delete] | [/ personistent: {yes | no}] ]

NET Use DeviceName [/ Home [Password | *]] [/ delete: {yes | no}]

NET USE [/ persistent: {yes | no}]

parameter

no

If it is used without parameters, NET USE retrieves a list of network connections.

DeviceName

Assign name to connect to resources or specify disconnected devices. There are two equipment names: Disk drives (D: to Z :) and printers (LPT1: to LPT3 :). Type an asterisk instead of a specific device name, assign the next available device. // computername / sharename

Specifies the name of the server and shared resources. If ComputerName contains blank characters, the computer name is enclosed from the double-reverse slope (/ /) to the computer name. The computer name length can be 1 to 15 characters.

/ Volume

Specifies the NetWare volume on the server. The NetWare Customer Service (Windows 2000 Professional) or NetWare Gateway Service (Windows 2000 Server) must be installed and is running to the NetWare server.

Password

Specifies the password required to access the shared resource.

*

Generate a password prompt. The password is not displayed when you type a password at the password prompt.

/ User

Specifies the different user names of the connection.

DomainName

Specify other domains. For example, NET USE D: // Server / Share / User: Admin / Mariel connects the user identifier Mariel, as if the connection is established from the Admin domain. If DomainName is omitted, the current login domain will be used.

Username

Specifies the username used when logging in.

/ delete

Cancel the specified network connection. If the user specifies the connection with an asterisk, all network connections will be canceled.

/ home

Connect the user to the home directory.

/ persistent

Control the use of persistent network connections. The default is the last set of settings. Non-devices will not last.

YES

Save all connections as it is established and restores them when you log in.

NO

The established connection or subsequent connection is not saved. The existing connection is restored when logging in next time. Use the / delete switch to delete a persistent connection.

Net USE

To assign a disk drive device name E: assign a Letters shared directory on // Financial server, type:

NET Use E: // Financial / Letters

To assign a disk drive device name M: Assign (map) to the directory Maria in the Letters volume on the // Financial NetWare server, type:

NET USE M: // Financial / Letters / Maria

To assign the device name LPT1: assign the Laser2 shared printer queue on the // Accounting server, type:

Net use lpt1: // accounting / laser2

To disconnect from the LPT1 printer queue, type:

NET USE LPT1: / DELETE

To assign a disk drive device name h: assignment to the main directory as a user Mariel, type:

Net Use H: / home / user: mariel

To assign a disk drive device name f: assign the SCRATCH shared directory of the // Financial server, the directory requires password hctarcs, but does not establish a persistent connection, type:

NET USE F: // Financial / Scratch Hctarcs / Persistent: NO

To disconnect the // Financial / Scratch directory, type:

NET USE f: // Financial / Scratch / Delete

To connect to the resource shared on // Financial 2 server, type:

NET USE K: "// Financial 2" / MEMOS

The server name containing spaces must be enclosed in quotation marks. If the quotation is omitted, Windows 2000 will display an error message. To restore the current connection while logging in, type:

NET USE / PERSIStent: YES

NET USE Description Use the NET USE command to connect or disconnect the network resources and view the current connection to the network resource. If the shared directory is used as the current drive, or is being used by the active process, it cannot be disconnected from the shared directory.

Get information about the connection

Type NET Use DeviceName to get information about the specified connection. Type NET Use to get a list of all computer connections. Non-devices will not last.

Connect to NetWare Server

After installing and running the NetWare client or gateway service software, you can connect to the Novell network's NetWare server. In addition to the need to include the volume to be connected, the syntax used when connected to the Windows web server is the same.

3.NET Group is added to the domain of Windows 2000 Server, and the global group is displayed. This command is only available on the Windows 2000 Server domain controller.

Net group [groupname [/ comment: "text"]] [/ domain]

Net group groupname {/ add [/ comment: "text"] | / delete} [/ domain]

NET Group Groupname Username [...] {/ add | / delete [/ domain]

parameter

no

Type the NET Group command without parameters displays the name of the server name and server on the server.

Groupname

Specifies the name of the group to be added, extended, or deleted. Only a group name is available to view the list of users in the group.

/ Comment: "Text"

Add a comment for new or existing groups. The comment can contain up to 48 characters. Add quotes to text.

/ domain

Perform actions on the primary domain controller of the current domain. Otherwise, the operation is performed on the local computer.

This parameter is applied only to the Windows 2000 Professional Computer of the member in the Windows 2000 Server domain. By default, Windows 2000 Server computers perform operations on the primary domain controller.

Username

List one or more usernames to add to a group or from the group. Separate multiple user names with spaces.

/ add

Add groups or add user names to the group. The user who uses this command to add to the group must establish an account.

/ delete

Delete the group, or remove the user from the group.

Net group

To display a list of all groups on your local server, type:

Net group

To add Group EXEC to a local user account database, type:

NET Group EXEC / ADD

To add Group EXEC to the Windows 2000 Server Domain User Account Database for Installing Windows 2000 Professional Software Computers, type:

NET Group EXEC / Add / Domain

To add an existing user account Stevev, Ralphr (from Sales Domain) and JENNYT to the EXEC group on your local computer, type:

Net Group Exec Stevev Ralphr Jennyt / Add

To add an existing user account Stevev, Ralphr (from Sales Domain) and Jennyt to the "Windows 2000 Server" domain installed on the Windows 2000 PROFESSIONAL software, type:

NET Group Exec Stevev Ralphr Jennyt / Add / Domain To display users in the EXEC group, type:

NET GROUP EXEC

To add a note to an Exec group record, type:

Net Group EXEC / Comment: "The Executive Staff."

Net group

This command can also be typed as NET Groups.

Using the NET Group command will group users using the network in the same or similar way. Each member of the group is automatically obtained when you specify permissions to the group.

The group displayed on the server is similar to the contents of the following:

Group Accounts for // Production _____________________________________

* Domain Admins * Domain Users

Note that there is an asterisk (*) before each group name. The asterisk distinguishes the group that contains the user and group.

4.Net localgroup Add, display, or modify local groups.

Net localgroup [groupname [/ comment: "text"]] [/ domain]

Net localgroup groupname {/ add [/ comment: "text"] | / delete} [/ domain]

Net localgroup groupname name [...] {/ add | / delete} [/ domain]

parameter

no

Type NET localgroup commands without parameters Display the name of the local group on the computer.

Groupname

Specifies the name of the local group to be added, expanded, or deleted. Just provide GroupName to view global groups in a user list or local group.

/ Comment: "Text"

Add a comment for new or existing groups. The comment can contain up to 48 characters. Add quotes to text.

/ domain

Perform actions on the primary domain controller of the current domain. Otherwise, the operation is performed on the local computer.

This parameter is applied only to the Windows 2000 Professional Computer of the member in the Windows 2000 Server domain. By default, Windows 2000 Server computers perform operations on the primary domain controller.

Name [...]

List one or more usernames or group names are listed to add or remove from the local group. Separate multiple items with spaces. Names can be local users, other domains of users or global groups, but they cannot be other local groups. If the user comes from another domain, add a domain name (for example, Sales / Ralphr) at the beginning of the username.

/ add

Add a global group name or add a user name to the local group. The user or global group must establish an account before adding this command to join the local group.

/ delete

Remove the group name or username from the local group.

NET localgroup example To display a list of all local groups on your local server, type:

Net localgroup

To add local groups EXEC to a local user account database, type:

Net localgroup exec / add

To add local groups EXEC to the Windows 2000 Server Domain User Account Database, type:

Net localgroup exec / add / domain

To add an existing user account Stevev, Ralphr (from Sales Domain) and Jennyt to the EXEC local group on your local computer, type:

Net localgroup Exec Stevev Sales / Ralphr JennyT / Add

To add an existing user account Stevev, Ralphr (from Sales Domain) and Jennyt to EXEC group on your local computer, type: Net localgroup Exec Stevev Ralphr Jennyt / Add / Domain

To display users in the EXEC local group, type:

NET localgroup exec

To add a comment to an Exec local group log, type:

Net localgroup exec / comment: "The Executive Staff."

Net localgroup

Use the NET localgroup command will group users using a computer or network in the same or similar way. Each member of the local group automatically obtains the same permissions when specifying permissions for this group.

5.Net User Add or modify user accounts or displays user account information.

Net user [username [password | *] [options]] [/ domain]

Net user username {password | * / add [options] [/ domain]

Net user username [/ delete] [/ domain]

parameter

no

If you use without parameters, NET USER will display a list of user accounts on your computer.

Username

Specify the name of the user account to add, delete, modify, or view. The user account name can have 20 characters.

Password

Assign or change your password for the user account. The password must meet the minimum length of the / minptin option settings for the NET Accounts command. Up to 127 characters can be available. However, if there are both Windows 2000 computers on the Internet, there are Windows95 or Windows 98 computers, the password should not exceed 14 characters. The password supported by Windows 95 and Windows 98 is up to 14 characters. If the password is too long, you will not be able to log in to the network from the Windows 98 or Windows 95 computer.

*

The prompt of the password is generated. The password is not displayed when you type a password at the password prompt.

/ domain

Perform actions on the main domain controller of the computer main domain.

This parameter applies only to Windows 2000 Professional Computers that belong to WINDOWS 2000 Server domain. By default, Windows 2000 Server computers perform operations on the primary domain controller.

note

This operation is performed on the main domain controller of the computer main domain. This domain may not be a login area. / add

Add user accounts to the user account database.

/ delete

Remove the user account from the user account database.

Options

Specify the following options:

/ ACTIVE: {NO | YES_

Enable or disable user accounts. If the user account is inactive, the user cannot access resources in the computer. The default is set to YES.

/ Comment: Text

Provide a descriptive descriptive descriptive with a user account. This note can have up to 48 characters. Add quotes to text.

/ countrycode: nnn

Use the operating system "Country" code to implement the specified language files for user help and error messages. Value 0 represents the default "Country" code.

/ expiRes: {date | never}

If DATE is set, you will expire for the user account; do not set the time limit to the user account. The expiration time can be MM / DD / YY, DD / MM / YY or MMM, DD, YY, depending on the "Country" code. Note that the account expires at the beginning of the specified date. The month can be a number, spelling or abbreviation of three letters. Years can be two or four digits. Use a comma and sever separation date (no spaces). If YY is omitted, it will assume the date of the next appearance (depending on the date and time of the computer). For example, if the input date is between January 10, 1994 to January 8, 1995, then the following DATE items, etc .; Jan, 9 1/9/95 January, 9,1995 1/9

/ fullname: "Name"

Specifies the full name of the user instead of the username. The name is enclosed with quotation marks.

/ homedir: path

Set the path to the user home directory. This path must exist.

/ Passwordchg: {yes | no}

Specifies whether the user can change your own password. The default is set to YES.

/ passwordReq: {yes | no}

Specifies whether the user account must have a password. The default is set to YES.

/ ProfilePath: [PATH]

Set the path to the user login profile. This path points to the registry profile.

/ scriptpath: path

Set the path to the user login script. The Path value cannot be an absolute path; Path is relative to% SystemRoot% / System32 / REPL / IMPORT / SCRIPTS.

/ TIMES: {TIMES | All}

Specifies the time to allow the user to use a computer. The Times value is represented as day [-day] [, day [-day]], time [-time] [, time [-time]], the increment is limited to 1 hour. Date can be spelled or abbreviated (M, T, W, TH, F, SA, SU). A 12 or 24 representation can be used in hours. For 12-hour representation, use AM, PM or A.M., P.M .. Numerical ALL means that users can always log in. Null value (blank) means that users can never log in. Date and time with a comma, separated by a semicolon separation and time unit (for example, M, 4 AM-5PM; T, 1 PM-3PM). Do not use spaces when specifying time.

/ Usercomment: "text"

Specify the "User Notes" of the administrator to add or change the account. Add quotes to text.

/ WorkStations: {computername [, ...] | *}

Up to 8 users can log in to the network's workstation. Use a comma to divide multiple items in the list. If the / WorkStations does not have a list, or the list is *, the user can log in any computer.

Net user

To display a list of all user accounts on your local computer, type:

Net user

To view information about User Account Jimmyh, type:

Net User Jimmyh

To add a Henry James user account, login rights from Monday to Friday, 8:00 to 5:00 pm (there is no interval in time specified), use the Forced Password (Henryj), please type:

Net user Henryj Henryj / Add / PasswordReq: YES / TIMES: MONDAY-FRIDAY, 8 AM-5PM / FULLNAME: "Henry James"

To use a 24-hour representation to set the login time of Johnsw (8:00 to 5 pm), type:

NET User Johnsw / Time: M-F, 08: 00-17: 00

To use 12-hour representation to set the login time of Johnsw (8:00 to 5 pm), type: Net User Johnsw / Time: M-F, 8 AM-5PM

To specify the MARYSL's login time is 4 o'clock in the morning of Monday to 5:00 pm, on Tuesday to 1pm and 8pm to 5:00 pm on Wednesday to Friday, please type:

Net user marysl / time: M, 4 AM-5PM; T, 1 PM-3PM; W-F, 8: 00-17: 00

Net user

This command can also be typed for NET Users.

Use the Net User command to create and control user accounts in the domain. User account information is stored in the user account database.

note

When you type a Net User command on a computer running Windows 2000 Server, the changes to the user account database are automatically on the primary domain controller and then copied to the backup domain controller. This is only available for Windows 2000 server domain.

6.NET Share creation, delete, or displays shared resources.

Net Share ShareName

NET Share ShareName = Drive: path [/ users: Number | / undimited] [/ Remark: "text"]

Net Share ShareName [/ users: Number | Unlimited] [/ Remark: "text"]

Net Share {ShareName | Drive: path} / delete

parameter

no

Type NET Share without parameters Displays information about all resources shared on the local computer.

Sharename

It is the network name of shared resources. Type the NET Share command with parameter sharename only displays information about the shared.

Drive: path

Specifies the absolute path to share the directory.

/ users: Number

Set the maximum number of users that can access shared resources simultaneously.

/ undiMITED

Specifies that the number of unrestricted users can be accessed simultaneously.

/ remark: "text"

Add a description of the resource. The text is included in the quotation marks.

/ delete

Stop shared resources.

Net Share

To display information about shared resources on your computer, type:

Net Share

To use a shared name Secretary sharing computer's C: / letters directory and include a comment, type:

NET Share Secretary = C: / Letters / Remark: "for department 123."

To stop sharing the letters directory, type:

Net Share Secretary / Delete

To use a shared name list shared computer's C: / ART LST directory and include a comment, type:

NET Share List = "C: / Art LST"

Net Share

Use the NET Share command to share resources.

To share a directory with a space character path, use dual quotation marks ("") including the drives and paths of the directory.

When all shared resources on your computer, Windows 2000 reports the share name of the resource, with the resource-related device name or path, and the descriptive comment related to the resource.

The display is similar to the following:

Share Name Resource Remark -------------------------------------------------------------------------------------------------------------------------- -------- Admin $ C: / Winnt Remote AdminC $ C: / Default Share for Internal Useprint $ C: / Winnt / System / Spoolipc $ Remote IPCLASER LPT1 SPOLD Laser Printer When you create a share, these sharing is created on the server. Will be saved. When the Server service is stopped, all shares are disconnected, but they will automatically reconnect when the Server service is started or restarting the computer.

7.NET Start Launch Service, or display a list of start-up services. Series of two or more words, such as Net Logon or Computer Browser, must be joined (").

Net Start [Service]

parameter

no

Type NET Start without parameters Display a list of running services.

Service

Including alerter, client service for netware, clipbook server, content index, computer browser, dhcp client, directory replicator, eventlog, ftp publishing service, hypermedia object manager, logical disk manager, lpdsvc, media services management, messenger, Fax Service, Microsoft install server, net logon, network dde, network dde dsdm, nt lm security support provider, ole, plug and play, remote access connection manager, remote access isnsap service, remote access server, remote procedure call (rpc) locator, remote procedure call ( rpc) service, schedule, server, simple tcp / ip services, site server ldap service, smartcard resource manager, snmp, spooler, task scheduler, tcp / ip netbios helper, telephony service, tracking service, tracking (server) service, ups, Windows Time Service and Workstation.

The following services are only available on Windows 2000: File Service for Macintosh, Gateway Service For NetWare, Microsoft DHCP Service, Print Service for Macintosh, Windows Internet Name Service.

NET START

Start the Windows 2000 service using the Net Start Service command. Some services depends on other services. You can also use the Services management unit to configure the service to automatically stop and start. Simultaneous use of this management unit to stop, start, suspend, and continuing network services. Two or more words consisting of service names, such as NET logon or Computer Browser, must be joined in both sides ("). This command will also start the network service that Windows 2000 does not provide.

转载请注明原文地址:https://www.9cbs.com/read-8924.html

New Post(0)