IZBORNIK HOME FORUM ACCESS EXCEL WORD  
 

HOME

   
1 UVOD
2 CMD sintaksa i XP naredbeni interpreter
3 Parametri i Prekidači
4 Kretanje pomoću tipki
5 Podešavanje prozora
6 Zamjenski znakovi
7 Editiranje TXTdatoteka
8 Posebni simboli u CMD naredbi
9 BATCH datoteke u CMD
10 HELP u CMD prozoru
11 ERROR u CMD prozoru
 

-- NAREDBE U  CMD-u --

  ASSOC
  AT
  ATTRIB
  BREAK
  CACLS
  CALL
  CD
  CHCP
  CHDIR
  CHKDSK
  CHKNTFS
  CLS
  CMD
  COLOR
  COMP
  COMPACT
  CONVERT
  COPY
  DATE
  DEL
  DIR
  DISKCOMP
  DISKCOPY
  DOSKEY
  ECHO
  ENDLOCAL
  ERASE
  EXIT
  FC
  FIND
  FINDSTR
  FOR
  FORMAT
  FTYPE
  GOTO
  GRAFTABL
  HELP
  IF
  LABEL
  MD
  MKDIR
  MODE
  MORE
  MOVE
  PATH
  PAUSE
  POPD
  PRINT
  PROMPT
  PUSHD
  RD
  RECOVER
  REM
  REN
  RENAME
  REPLACE
  RMDIR
  SET
  SETLOCAL
  SHIFT
  SORT
  START
  SUBST
  TIME
  TITLE
  TREE
  TYPE
  VER
  VERIFY
  VOL
  XCOPY
   
12 PING
13 IPCONFIG
14 NETSTAT
15 ROUTE
16 NSLOOKUP
17 ARP
18 TRACERT
19 TELNET
20 NET Commands
   
  .

NAREDBENO SUČELJE (Command Prompt line)

NET COMMANDS

 

NET Services Commands

• Net accounts

Updates the user accounts database and modifies password and logon requirements for all accounts.

Syntax

net accounts [/forcelogoff:{minutes | no}] [/minpwlen:length] [/maxpwage:{days | unlimited}] [/minpwage:days] [/uniquepw:number] [/domain]

Parameters

/forcelogoff:{minutes | no}

Sets the number of minutes to wait before ending a user's session with a server when the user account or valid logon time expires. The default value, no, prevents users from being forced to log off.

/minpwlen:length

Sets the minimum number of characters for a user account password. The range is from 0 through 127 characters and the default is six characters.

/maxpwage:{days | unlimited}

Sets the maximum number of days that a user account's password is valid. The unlimited value sets no maximum time. The /maxpwage command-line option must be greater than /minpwage. The range is from 1 through 49,710 days (that is, unlimited equals 49,710 days), and the default value is 90 days.

/minpwage:days

Sets the minimum number of days before a user can change a new password. The default value is zero days, which sets no minimum time. The range is from 0 through 49,710 days.

/uniquepw:number

Requires a user to not repeat the same password for the specified number of password changes. The range is from 0 through 24 password changes, and the default is five password changes.

/domain

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

net help command

Displays help for the specified net command.

Remarks

  • The Net Logon service must be running on the computer where you want to change account parameters. Used without parameters, net accounts displays the current settings for password, logon limitations, and domain information.
  • You must do the following before you can use net accounts:
    • Create user accounts. Use User Manager or net user to set up user accounts.
    • Run the Net Logon service on all servers that verify logon in the domain. Net Logon starts automatically at startup.
  • When you use /forcelogoff:minutes, a warning is sent minutes before users are forced to log off from the network. Users are also notified if any files are open. If minutes is less than two, users are warned to log off from the network immediately.

Examples

To display the current settings, the password requirements, and the server role for a server, type:

net accounts

To set a minimum of seven characters for user account passwords, type:

net accounts /minpwlen:7

To specify that users can reuse a password only after the fifth time they change passwords, type:

net accounts /uniquepw:5

To prevent users from changing passwords more often than every seven days, force users to change passwords every 30 days, and force users to log off after the logon time expires with a five-minute warning, type:

net accounts /minpwage:7 /maxpwage:30 /forcelogoff:5

To ensure that the preceding settings take effect for the domain that the computer is logged on to, type:

net accounts /minpwage:7 /maxpwage:30 /domain


• Net computer
 

Adds or deletes computers from a domain database.

Syntax

net computer \\ComputerName {/add | /del}

Parameters

\\ComputerName

Specifies the computer to add or delete from the domain.

{/add | /del}

Adds or removes the specified computer from the domain.

net help command

Displays help for the specified net command.

Remarks

  • Net computer forwards all computer additions and deletions to a domain controller.

Examples

To add the computer Grizzlybear to a domain, type:

net computer \\grizzlybear /add


• Net config
 

Displays the configurable services that are running, or displays and changes settings for a Server service or a Workstation service. Used without parameters, net config displays a list of configurable services.

Syntax

net config [{server|workstation}]

Parameters

server

Displays and allows you to make changes to the settings for the Server service while the service is running.

workstation

Displays and allows you to make changes to the settings for the Workstation service while the service is running.

/?

Displays help at the command prompt.

Remarks

  • Use net config server to change configurable Server service settings. The changes take effect immediately and are permanent.
  • You cannot change all of the Server service settings by using net config server. Net config server displays the following information that you cannot configure:
    • Server computer name
    • Server comment
    • Server version (that is, the software version number)
    • Server is active on (that is, a description of the network)
    • Server hidden (that is, the /hidden setting)
    • Maximum logged on users (that is, the maximum number of users who can use the shared resources of the server)
    • Maximum open files per session (that is, the maximum number of server files that users can open during a session)
    • Idle session time (min)
  • Use net config workstation to change configurable workstation service settings.
  • Net config workstation displays the following information:
    • Computer name
    • Full computer name
    • User name
    • Workstation active on (that is, a description of the network)
    • Software version (that is, the software version number)
    • Workstation domain
    • Workstation domain DNS name
    • Logon domain
    • COM open timeout (sec)
    • COM send count (byte)
    • COM send timeout (msec)

• Net continue
 

Continues a service that has been suspended by net pause.

Syntax

net continue service

Parameters

service

Required. Specifies the service that you want to continue. The following table lists some of the values for service.

Value

Description

netlogon

Continues the Net Logon service.

"nt lm security support provider"

Continues the NT LM Security Support Provider service.

schedule

Continues the Task Scheduler service.

server

Continues the Server service.

workstation

Continues the Workstation service.

net help command

Displays help for the specified net command.

Remarks

  • To make a minor correction to a resource, pause the service. Use the net continue command to reactivate the service or printer, without canceling user connections.
  • The effect of pausing and continuing a service can vary with each service.
  • If a service name contains spaces, use quotation marks around the text (for example, "Service Name").

Examples

The following command continues the Workstation service:

net continue workstation

If the service name consists of two or more words, you must enclose the service name in quotation marks. For example, to continue the NT LM Security Support Provider Service, type:

net continue "nt lm security support provider"


• Net file
 

Displays the names of all open shared files on a server and the number of file locks, if any, on each file. This command also closes individual shared files and removes file locks. Used without parameters, net file displays a list of the open files on a server.

Syntax

net file [ID [/close]]

Parameters

ID

Specifies the identification number of the file.

/close

Closes an open file and releases locked records. Type this command from the command prompt on the server where the file is shared.

net help command

Displays help for the specified net command.

Remarks

  • You can also type net files to run this command.
  • Use net file to view and control files shared on the network. Sometimes, a user leaves a shared file open and locked by mistake. When this happens, other computers on the network cannot gain access to the locked portions of the file. Use net file /close to remove the lock and close the file. Net file output is similar to the following:

File      Path             Username    #locks

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

0         C:\A_FILE.TXT    MARYSL      0

1         C:\DATABASE      DEBBIET     2

Examples

To view information about shared files, type:

net file

To close a file that has the identification number 1, type:

net file 1 /close


• Net group
 

Adds, displays, or modifies global groups in domains.

Syntax

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

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

net group [groupname username[ ...] {/add | /delete} [/domain]]

Parameters

groupname

Specifies the name of the group to add, expand, or delete. Specify a group name to view a list of users in a group only.

/comment:"text"

Adds a comment for a new or existing group. The comment can have as many as 48 characters. Enclose the text in quotation marks.

/domain

Performs the operation on the domain controller in the current domain. Otherwise, the operation is performed on the local computer.

/add

Adds a group, or adds a user name to a group. You must establish an account for users that you add to a group with this command.

/delete

Removes a group, or removes a user name from a group.

UserName[ ...]

Lists one or more user names to add to or remove from a group. Separate multiple user name entries with a space.

net help command

Displays help for the specified net command.

Remarks

  • Used without parameters, net group displays the name of a server and the names of groups on the server.
  • You can also type net groups.
  • Use net group to group users who use the network in the same or similar ways. When you assign rights to a group, each member of the group automatically has those rights. In the output, net group precedes groups that include both users and groups with an asterisk (*).

The net group output of groups on the server is similar to the following:

Group Accounts for \\PRODUCTION
----------------------------------------------
*Domain Admins           *Domain Users

Examples

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

net group

To add a group called Exec to the local user accounts database, type:

net group exec /add

To add a group called Exec to the domain database, type:

net group exec /add /domain

To add the existing user accounts stevev, ralphr, and jennyt to the Exec group on the local computer, type:

net group exec stevev ralphr jennyt /add

To add the existing user accounts stevev, ralphr, and jennyt to the Exec group in the domain database, type:

net group exec stevev ralphr jennyt /add /domain

To display users in the Exec group, type:

net group exec

To add a comment to the Exec group record, type:

net group exec /comment:"The executive staff"


• Net help
 

Provides a list of network commands and topics for which you can get help, or provides information about a specific command. Used without parameters, net help displays a list of commands and topics for which you can get help.

Syntax

net help [command]

Parameters

command

/help

Displays the correct syntax and the help for the command.

Specifies the command for which you want help.

Examples

To display help for the net use command, type:

net help use

Or, type:

net use /help

To view just the syntax for the net help command, type:

net help /?


• Net helpmsg
 

Explains why an error occurred and provides problem-solving information.

Syntax

net helpmsg message#

Parameters

message#

Required. Specifies the four-digit number of the message you for which you want to get more information.

net help command

Displays help for the specified net command.

Remarks

  • When a network operation fails, a message similar to the following appears:

2182: The requested service has already been started.

Examples

To get more information about error message NET 2182, type:

net helpmsg 2182


• Net localgroup
 

Adds, displays, or modifies local groups. Used without parameters, net localgroup displays the name of the server and the names of local groups on the computer.

Syntax

net localgroup [GroupName [/comment:"text"]] [/domain]

net localgroup [GroupName {/add [/comment:"text"] | /delete} [/domain]]

net localgroup [GroupName name [ ...] {/add | /delete} [/domain]]

Parameters

GroupName

Specifies the name of the local group to add, expand, or delete. Used without additional parameters, net localgroup GroupName displays a list of users or global groups in a local group.

/comment:"text"

Adds a comment for a new or existing group. The comment can contain up to 48 characters. Enclose the text in quotation marks.

/domain

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

name [ ...]

Lists one or more user names or group names to add or remove from a local group.

/add

Adds a global group name or user name to a local group. You must first establish an account for users or global groups before you can add it to a local group with this command.

/delete

Removes a group name or user name from a local group.

net help command

Displays help for the specified net command.

Remarks

  • Using /domain

/domain applies only to Windows XP Professional computers that are members of a domain. By default, server computers perform operations on the primary domain controller.

  • Using name

Separate multiple entries with a space. Names can be local users, users on other domains, or global groups, but not other local groups. If a user is from another domain, preface the user name with the domain name (for example, Sales\Ralphr).

  • Grouping users

Use net localgroup to group users who use the computer or network in the same or similar ways. When you assign rights to a local group, each member of the local group automatically has the same rights.

Examples

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

net localgroup

To add a local group called Exec to the local user accounts database, type:

net localgroup exec /add

To add a local group called Exec to the domain user accounts database, type:

net localgroup exec /add /domain

To add the existing user accounts stevev, ralphr (from the Sales domain), and jennyt to the Exec local group on the local computer, type:

net localgroup exec stevev sales\ralphr jennyt /add

To add the existing user accounts stevev, ralphr, and jennyt to the Exec group of a domain, 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 the Exec local group record, type:

net localgroup exec /comment:"The executive staff."


• Net name
 

Adds or deletes a messaging name (that is, an alias), or displays the list of names for which the computer can accept messages. Used without parameters, net name displays a list of names currently in use.

Syntax

net name [name {/add|/delete}]

Parameters

name

Specifies the name to receive messages. The name can have as many as 15 characters.

/add

Adds a name to a computer.

/delete

Removes a name from a computer.

Remarks

  • Use net name to specify a name for receiving messages. You must start the Messenger service before you can use net name. Each messaging name must be unique on the network. Names created with net name are strictly for messaging, not for group names. Windows XP uses the three following name types:
    • Any name for messaging (added with net name)
    • Computer's machine name (added when the Workstation service starts)
    • User name (added when you log on, provided your user name is not in use as a message name elsewhere on the network)
  • add is optional. Net name name and net name name add have the same effect. You can use either one to add a name to the computer.
  • You cannot delete the computer's machine name. You can delete the user name.

Examples

To view the list of names at your computer, type:

net name

To add the name Rsvp to your computer, type:

net name rsvp

To remove the name Rsvp from your computer, type:

net name rsvp /delete


• Net pause
 

Pauses services that are currently running.

Syntax

net pause service

Parameters

service

Required. Specifies the service that you want to suspend. The following table lists some of the values for service.

Value

Description

netlogon

Suspends the Net Logon service.

"nt lm security support provider"

Suspends the NT LM Security Support Provider service.

schedule

Suspends the Task Scheduler service.

server

Suspends the Server service.

workstation

Suspends the Workstation service.

net help command

Displays help for the specified net command.

Remarks

  • On a server, use net pause before you stop a service to let users complete jobs or disconnect from resources. Pausing a service puts it on hold, but it does not remove the software from memory. Users who already have a connection to the resource are able to finish their tasks, but new connections to the resource are prevented.

If you plan to stop a service that affects shared resources, pause the service first. Use net send to broadcast a message that you are going to stop the service. After providing people with sufficient time to finish using the resource, use net stop to stop the service.

To reactivate a paused service, use net continue.

  • You cannot pause all services. Pausing affects services in the following ways:
    • Pausing the Net Logon service prevents the computer from processing logon requests. If the domain has other logon servers, users can still log on to the network.
    • Pausing the Server service prevents users from making new connections to the shared resources of the server. If there are no other logon servers on the network, it prevents users from logging on to the network. Existing connections are not affected. Administrators can make connections to the server even if it is paused.
    • Pausing the Workstation service keeps the user name, password, and connections defined, but directs requests for print devices to printers attached to the computer rather than to printers connected to the network.
  • If a service name contains spaces, use quotation marks around the text (for example, "Service Name").

Examples

To pause the Server service, type:

net pause server

If the service name consists of two or more words, you must enclose the service name in quotation marks. For example, to pause the "NT LM Security Support Provider" service, type:

net pause "nt lm security support provider"


• Net print
 

Displays information about a specified print queue, displays information about all print queues hosted by a specified print server, displays information about a specified print job, or controls a specified print job. Used without parameters, net print displays command-line help for the net print command.

To display information about a specified print queue or about all print queues hosted by a specified print server

Syntax

net print \\ComputerName[\QueueName]

Parameters

\\ComputerName

Required. Specifies, by name, the computer that hosts the print queue about which you want to display information.

\QueueName

Specifies, by name, the print queue for which you want to display information. If you specify a computer but you do not specify a queue, information about all print queues on the specified computer is displayed.

net help net print

Displays help for the net print command.

Remarks

  • Net print displays several types of information about print queues. The following is an example of a report for all print queues on the server named Production:

Printer queues at \\PRODUCTION

Name              Job #      Size      Status
---------------------------------------------------------
LASER Queue       1 jobs               *Queue Active*
           USER1          84        0      Spooling

Examples

To list the contents of the Dotmatrix print queue on the \\Production computer, type:

net print \\production\dotmatrix

To display information about or control a specified print job

Syntax

net print [\\ComputerName] JobNumber [{/hold | /release | /delete}]

Parameters

\\ComputerName

Specifies, by name, the computer that hosts the print job you want to control. If you do not specify a computer, the local computer is assumed.

JobNumber

Required. Specifies the number of the print job you want to control. This number is assigned by the computer that hosts the print queue to which the print job is sent. After a computer assigns a number to a print job, that number is not assigned to any other print jobs in any queue hosted by that computer.

{/hold | /release | /delete}

Specifies the action to take with the print job. The /hold parameter delays the job, allowing other print jobs to bypass it until it is released. The /release parameter releases a print job that has been delayed. The /delete parameter removes a print job from a print queue. If you specify a job number but do not specify any action, information about the print job is displayed.

net help net print

Displays help for the net print command.

Remarks

  • The following is an example of a report for a print job:

·                Job #            35

·                Status           Waiting

·                Size             3096

·                Remark

·                Submitting user  USER2

·                Notify           USER2

·                Job data type

·                Job parameters

Additional info

Examples

To display information about job number 35 on the \\Production computer, type:

net print \\production 35

To delay job number 263 on the \\Production computer, type:

net print \\production 263 /hold

To release job number 263 on the \\Production computer, type:

net print \\production 263 /release


• Net send
 

Sends messages to other users, computers, or messaging names on the network.

Syntax

net send {name | * | /domain[:name] | /users} message

Parameters

name

Specifies the user name, computer name, or messaging name to which you want to send the message. If the information that you supply contains spaces, use quotation marks around the text (for example, "Computer Name"). Long user names might cause problems when you use them as NetBIOS names. NetBIOS names are limited to 16 characters, and the sixteenth character is reserved.

*

Sends the message to all the names in your domain or workgroup.

/domain:name

Sends the message to all the names in the computer's domain. You can specify name to send the message to all the names in the specified domain or workgroup.

/users

Sends the message to all users connected to the server.

message

Required. Specifies the text of the message.

net help command

Displays help for the specified net command.

Remarks

  • You can send a message only to a name that is active on the network. If you send the message to a user name, that user must be logged on and running the Messenger service to receive the message.
  • You can broadcast a message to all of the names in your computer's domain (use * or /domain), or a different domain (/domain:DomainName). Broadcast messages can contain up to 128 characters. Use discretion when you send messages to multiple users.
  • /users lets you send a message to all users who have sessions with the server. Use discretion when you send messages to multiple users.
  • The Messenger service must be running for messages to be received. For more information about how to start a service, see Related Topics.

Examples

To send the message "Meeting changed to 3 P.M. Same place." to the user robertf, type:

net send robertf Meeting changed to 3 P.M. Same place.

To send a message to all users connected to the server, type:

net send /users This server will shut down in 5 minutes.

To send a message that includes a slash mark (/), type:

net send robertf "Format your disk with FORMAT /4"


• Net session
 

Manages server computer connections. Used without parameters, net session displays information about all sessions with the local computer.

Syntax

net session [\\ComputerName] [/delete]

Parameters

\\ComputerName

Identifies the computer for which you want to list or disconnect sessions.

/delete

Ends the computer's session with ComputerName and closes all open files on the computer for the session. If you omit ComputerName, all sessions on the local computer are canceled.

net help command

Displays Help for the specified net command.

Caution

  • Using net session can result in a loss of data. You might want to warn users before you disconnect a session.

Remarks

  • You can also use net sessions or net sess to run net session.
  • Use net session to view the computer names and user names of users on a server, to see if users have files open, and to see how long each user's session has been idle.

The information appears in a format similar to the following:

Computer      User name        Client type  Opens   Idle time
------------------------------------------------------------------------
\\BASSETT     CHRISDR          Windows 2000   1     00:00:13
\\SHARONCA    Administrator    DOS LM 2.1     0     01:05:13

  • To display one user's session, use ComputerName with the command. The information about a single user includes a list of shared resources to which the user has connections.
  • A session is recorded when a user at a client successfully contacts a server. A successful session occurs when the two computers are on the same network, and the user has a user name and password that are accepted by the server. A user at a client has to have a session with a server before he or she can use the resources of the server, and a session is not established until a user at a client connects to a resource. A client and a server have only one session, but they can have many entry points, or connections, to resources.
  • To set how long a session can remain idle before being automatically disconnected, set the autodisconnect feature by using net config server /autodisconnect. For more information about net config server, see Related Topics. An automatic disconnection is transparent to the user because the session is automatically reconnected when the user accesses the resource again.
  • To end a session with the server, use net session \\ComputerName /delete.

Examples

To display a list of session information for the local server, type:

net session

To display session information for a client with the computer name Shepherd, type:

net session \\shepherd

To end all sessions between the server and the clients connected to it, type:

net session /delete 


• Net share
 

Manages shared resources. Used without parameters, net share displays information about all of the resources that are shared on the local computer.

Syntax

net share [ShareName] net share [ShareName=Drive:Path [{/users:number|/unlimited}] [/remark:"text"] [/cache: {manual|automatic|no}]] net share [ShareName [{/users:number|unlimited}] [/remark:"text"] [/cache: {manual|automatic|no}]] net share [{ShareName|Drive:Path} /delete]

Parameters

ShareName

Specifies the network name of the shared resource. Type net share with a ShareName to display information about that share only.

Drive:Path

Specifies the absolute path of the directory to be shared.

/users:number

Sets the maximum number of users who can simultaneously access the shared resource.

/unlimited

Specifies an unlimited number of users who can simultaneously access the shared resource.

/remark:"text"

Adds a descriptive comment about the resource. Enclose the text in quotation marks.

/cache:automatic

Enables offline client caching with automatic reintegration.

/cache:manual

Enables offline client caching with manual reintegration.

/cache:no

Advises the client that offline caching is inappropriate.

/delete

Stops sharing the shared resource.

net help command

Displays Help for the specified net command.

Remarks

  • To share a directory with a path that contains a white space, enclose the drive and the path of the directory in quotation marks (for example, "C:\Path Name").
  • When you display all of the shared resources on a computer, the share name of the resource, the device names or path associated with the resource, and a descriptive comment about the resource is displayed. The output is similar to the following:

       Sharename    Resource                         Remark
------------------------------------------------------
      ADMIN$       C:\WINNT                          Remote Admin
      C$               C:\                                     Default Share for Internal Use
      print$          C:\WINNT\SYSTEM\SPOOL       
      IPC$                                                      Remote IP
   LASER          LPT1                                  Spooled   Laser printer

  • As you create shares on a server, they are saved. When you stop the Server service, all shares are disconnected, but they are reconnected automatically the next time the Server service is started or the computer is restarted. For more information about services, see Services.
  • Shared resource names that end in a $ character are not displayed when you are browsing the local computer from a remote computer.

Examples

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

net share

To share a computer's C:\Data directory with the share name DataShare and include a remark, type:

net share DataShare=c:\Data /remark:"For department 123."

To stop sharing the DataShare folder you created in the previous example, type:

net share DataShare /delete

To share a computer's C:\Art Lst directory with the share name List, type:

net share list="c:\art lst"


• Net start
 

Starts a service. Used without parameters, net start displays a list of services that are currently operating.

Syntax

net start [service]

Parameters

service

Starts the specified service. The following table lists values for service.

Value

Description

Remarks

alerter

Starts the Alerter service.

  • Start the Alerter service to send alert messages to specified users that are connected to the server. Alert messages warn users about security, access, and user session problems.
  • Use Server Manager (that is, systemroot\System32\Srvmgr.exe) to specify the administrators who you want to receive administrative alerts. Server Manager is available on Windows Server 2000 computers only.
  • Alert messages are sent as messages from the server to a user's computer. The Messenger service must be running on the user's computer for the user to receive alert messages.

browser

Starts the Computer Browser service.

  • The Computer Browser service maintains an up-to-date list of computers on your network and supplies the list to programs that request it.

"client service for netware"

Starts the Client Service for NetWare service.

  • This command is available only if you have installed Client Service for NetWare.

clipbook

Starts the ClipBook service.

  • ClipBook permits you to cut and paste text and graphics over the network.
  • The ClipBook service supports ClipBook Viewer, which allows pages to be seen by remote ClipBooks.

dhcp client

Starts the DHCP Client service.

  • This command is available only if you have installed the TCP/IP protocol.
  • The DHCP Client service manages network configuration by registering and updating IP addresses and DNS names. The DHCP Client service supports obtaining an IP address from the DHCP service.
  • You cannot stop or pause the DHCP Client service.

eventlog

Starts the Event Log service.

  • The Event Log service logs event messages issued by programs and Windows XP. Event Log reports contain information that can be useful in diagnosing problems. Reports are viewed in Event Viewer. The Event Log service must be started prior to using Event Viewer to view the logged events.
  • You cannot stop or pause the Event Log service.

file replication

Starts the File Replication service.

 

messenger

Starts the Messenger service.

  • The Messenger service enables a computer to receive messages.
  • A message is sent to a computer using the names assigned to the computer as identification.

netlogon

Starts the Net Logon service.

  • The Net Logon service verifies logon requests and controls domain-wide replication of the user accounts database.
  • Start the Net Logon service on all the servers in a domain that use a copy of the domain's user accounts database.

"nt lm security support provider"

Starts the NT LM Security Support Provider service.

  • This command is available only if you have installed the NT LM Security Support Provider.

"plug and play"

Starts the Plug and Play service.

 

"remote access connection manager"

Starts the Remote Access Connection Manager service.

  • This command is available only if you have installed the Remote Access Service.

"routing and remote access"

Starts the Routing and Remote Access service.

 

rpclocator

Starts the Remote Procedure Call (RPC) Locator service.

  • Allows distributed applications to use the Microsoft RPC name service.
  • The Remote Procedure Call (RPC) Locator service is the RPC name service for Microsoft Windows XP. The RPC Locator manages the RPC name service database.
  • The server side of the distributed application registers its availability with the RPC Locator service. The client side of the distributed application queries the RPC Locator service to find available compatible server applications.

rpcss

Starts the Remote Procedure Call (RPC) service.

  • The Remote Procedure Call (RPC) service is the RPC subsystem for Windows XP. The RPC subsystem includes the endpoint mapper and other miscellaneous RPC services. Net start rpcss starts the Remote Procedure Call (RPC) service to allow distributed applications to use dynamic endpoints. The Remote Procedure Call (RPC) service manages the endpoint map database.

The server side of the distributed application registers its endpoints with the Remote Procedure Call (RPC) service. The client run-time library, on behalf of the client side of the distributed application, queries the Remote Procedure Call (RPC) service to obtain the endpoint information. To determine whether a distributed application uses the endpoint mapper service, see the documentation for that distributed application.

schedule

Starts the Task Scheduler service.

  • With Task Scheduler, you can start programs at a specified time with the at command. You might need to have other services running before you can run scheduled commands.
  • Task Scheduler is initially configured to run in the System account on the local computer. When Task Scheduler runs using this account, there are no restrictions on the jobs that you can run with Task Scheduler. However, these jobs have limited network access because the System account on a local computer is not recognized by other computers.
  • To overcome network access limitations, you can configure Task Scheduler to run in a user's account. If you do this, jobs executed by Task Schedule are governed by the user account's network access. However, because Task Scheduler is not using the local System account in this case, you can only run jobs that do not require the presence of a window.

server

Starts the Server service.

  • You can use the Server service to share server resources with users on the network.

spooler

Starts the Print Spooler service.

  • The Print Spooler service loads files to memory for printing.

"tcp/ip netbios helper"

Starts the NetBIOS helper over TCP service, which enables NetBIOS over TCP/IP (NetBT) services.

  • NetBT services provide NetBIOS data grams, NetBIOS sessions, and NetBIOS name management (such as name registration and resolution) for NetBIOS applications that are using the TCP/IP protocol.
  • This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections.

ups

Starts the Uninterruptible Power Supply service.

  • The Uninterruptible Power Supply service manages an uninterruptible power supply (UPS) connected to the computer.
  • You can configure the Uninterruptible Power Supply service by using Power Options in Control Panel. If you configure the Uninterruptible Power Supply service to execute a command file upon shutdown the command file must finish running in 30 seconds. A run time that is greater than 30 seconds threatens the capability of Windows XP to complete a graceful system shutdown.

workstation

Starts the Workstation service.

  • The Workstation service enables a computer to connect to and use network resources.

net help command

Displays help for the specified net command.

Remarks

  • The set of services and applications you see might vary depending on the options you selected during installation or configuration.
  • For more information about services, see the "System Essentials Guide" at the Microsoft Web site.(http://www.microsoft.com/)
  • Some services are dependent on other services.
  • You can use the Services snap-in to configure services to stop and start automatically. Use this snap-in to manually stop, start, pause, and continue network services.
  • You can use Net start to start services that are not provided with Windows XP.
  • If a service name contains spaces, use quotation marks around the text (for example, "Service Name").

Examples

To list services that are currently operating, type:

net start

To start the Client Service for Netware service, type:

net start "client service for netware"


• Net statistics
 

Displays the statistics log for the local Workstation or Server service, or the running services for which statistics are available. Used without parameters, net statistics lists the running services for which statistics are available.

Syntax

net statistics [{workstation | server}]

Parameters

workstation

Displays statistics for the local Workstation service.

server

Displays statistics for the local Server service.

net help command

Displays help for the specified net command.

Remarks

  • You can also type net stats.
  • For the Workstation service, Windows XP reports the computer's name, the date and time when the statistics were last updated, and the following information:
    • Number of bytes and server message blocks (SMB) received and transmitted
    • Number of read and write operations that succeeded or failed
    • Number of network errors
    • Number of sessions that failed, disconnected, or were reconnected
    • Number of connections to shared resources that succeeded or failed
  • For the Server service, Windows XP reports the computer's name, the date and time when the statistics were last updated, and the following information:
    • Number of sessions that were started, disconnected automatically, and disconnected because of an error
    • Number of kilobytes sent and received, and the average server-response time
    • Number of errors and violations of password and permission limits
    • Number of times the shared files, printers, and communication devices were used
    • Number of times the size of the memory buffer was exceeded

Examples

To display statistics for the Server service and prevent the output from scrolling, type:

net statistics server | more


• Net stop
 

Stops a running service.

Syntax

net stop service

Parameters

service

Stops the specified service. The following table lists values for service.

Value

Description

Remarks

alerter

Stops the Alerter service.

  • Stop the Alerter service that sends alert messages to specified users that are connected to the server computer. Alert messages warn users about security, access, and user session problems.
  • Use Server Manager (that is, systemroot\System32\Srvmgr.exe) to specify the administrators who you want to receive administrative alerts. Server Manager is available on Windows 2000 Server computers only.
  • Alert messages are sent as messages from the server to a user's computer. The Messenger service must be running on the user's computer for the user to receive alert messages.

browser

Stops the Computer Browser service.

  • The Computer Browser service maintains an up-to-date list of computers on your network and supplies the list to programs that request it.

"client service for netware"

Stops the Client Service for NetWare service.

  • This command is available only if you have installed Client Service for NetWare.

clipbook

Stops the ClipBook service.

  • ClipBook permits you to cut and paste text and graphics over the network.
  • The ClipBook service supports ClipBook Viewer, which allows pages to be seen by remote ClipBooks.

dhcp client

You cannot stop or pause the DHCP Client service.

  • The DHCP Client service manages network configuration by registering and updating IP addresses and DNS names. The DHCP Client service supports obtaining an IP address from the DHCP service.

file replication

Starts the File Replication service.

 

messenger

Stops the Messenger service.

  • The Messenger service enables a computer to receive messages.
  • A message is sent to a computer using the names assigned to the computer as identification.

netlogon

Stops the Net Logon service.

  • The Net Logon service verifies logon requests and controls domain-wide replication of the user accounts database.
  • Stop the Net Logon service on all the servers in a domain that use a copy of the domain's user accounts database.

"nt lm security support provider"

Stops the NT LM Security Support Provider service.

  • This command is available only if you have installed the NT LM Security Support Provider.

"remote access connection manager"

Stops the Remote Access Connection Manager service.

  • This command is available only if you have installed the Remote Access Service.

"routing and remote access"

Stops the Routing and Remote Access service.

 

rpclocator

Stops the Remote Procedure Call (RPC) Locator service.

  • Allows distributed applications to use the Microsoft RPC name service.
  • The Remote Procedure Call (RPC) Locator service is the RPC name service for Microsoft Windows XP. The RPC Locator manages the RPC name service database.
  • The server side of the distributed application registers its availability with the RPC Locator service. The client side of the distributed application queries the RPC Locator service to find available compatible server applications.

schedule

Stops the Task Scheduler service.

  • With Task Scheduler, you can start programs at a specified time with the at command. You might need to have other services running before you can run scheduled commands.
  • Task Scheduler is initially configured to run in the System account on the local computer. When Task Scheduler runs using this account, there are no restrictions on the jobs that you can run with Task Scheduler. However, these jobs have limited network access because the System account on a local computer is not recognized by other computers.
  • To overcome network access limitations, you can configure Task Scheduler to run in a user's account. If you do this, jobs executed by Task Schedule are governed by the user account's network access. However, because Task Scheduler is not using the local System account in this case, you can only run jobs that do not require the presence of a window.

server

Stops the Server service.

  • You can use the Server service to share server resources with users on the network.

spooler

Stops the Print Spooler service.

  • The Print Spooler service loads files to memory for printing.

"tcp/ip netbios helper"

Stops the NetBIOS helper over TCP service, which enables NetBIOS over TCP/IP (NetBT) services.

  • NetBT services provide NetBIOS data grams, NetBIOS sessions, and NetBIOS name management (such as name registration and resolution) for NetBIOS applications that are using the TCP/IP protocol.
  • This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections.

ups

Stops the Uninterruptible Power Supply service.

  • The Uninterruptible Power Supply service manages an uninterruptible power supply (UPS) connected to the computer.
  • You can configure the Uninterruptible Power Supply service by using Power Options in Control Panel. If you configure the Uninterruptible Power Supply service to execute a command file upon shutdown the command file must finish running in 30 seconds. A run time that is greater than 30 seconds threatens the capability of graceful system shutdown completing successfully.

workstation

Stops the Workstation service.

  • The Workstation service enables a computer to connect to and use network resources.

net help command

Displays help for the specified net command.

Remarks

  • The set of services and applications you see might vary depending on the options you selected during installation or configuration.
  • For more information about services, see Microsoft Windows Resource Kits.
  • Some services are dependent on other services.
  • Use net stop to stop a service and remove the software from memory.
  • Stopping the Server service prevents users from gaining access to the computer's shared resources. If you stop the Server service when users are using server resources, a warning message appears. A y (that is, yes) response cancels all connections to the computer. Before you stop the Server service, do the following:
  • Use net pause to pause the service, which prevents new connections.
  • Use net send to send a message that advises users to disconnect from the server resources.
  • If a service name contains spaces, use quotation marks around the text (for example, "Service Name").
  • Net stop can also stop services not provided with Windows XP.

Examples

The following command stops the Server service:

net stop server

Enclose service names with two or more words in quotation marks. For example, the following command stops the Client Service for Netware service:

net stop "client service for netware"


• Net time
 

Synchronizes the computer's clock with that of another computer or domain. Used without parameters, net time displays the time for another computer or domain.

Syntax

net time [{\\ComputerName | /domain[:DomainName] | /rtsdomain[:DomainName]}] [/set]

net time [\\ComputerName] [/querysntp] [/setsntp[:NTPServerList]]

Parameters

\\ComputerName

Specifies the name of a server you want to check or with which you want to synchronize.

/domain[:DomainName]

Specifies the domain with which to synchronize clocks.

/rtsdomain[:DomainName]

Specifies the domain of the Reliable Time Server with which to synchronize clocks.

/set

Synchronizes the computer's clock with the time on the specified computer or domain.

/querysntp

Displays the name of the Network Time Protocol (NTP) server currently configured for the local computer or the one specified in ComputerName.

/setsntp[:NTPServerList]

Specifies a list of NTP time servers to be used by the local computer. The list can contain IP addresses or DNS names, separated by spaces. If you use multiple time servers, you must enclose the list in quotation marks.

net help command

Displays help for the specified net command.


• Net use
 

Naredba Net use stvara ili prekida vezu s dijeljenim izvorom na drugom računalu na mreži. Dijeljeni izvor može biti pisač, disk jedinica, CDROM ili folder.

Koristi se i za prikazivanje raznih informacija o mreži. Kao što se iz opisa parametra naredbe vidi naziv računala na mreži na koje se želi povezati počinje sa dva znaka backslash \\. 

Prilikom svakog korištenja mrežnih izvora treba navesti dva znaka backslash (\\). Mrežni se izvori nakon kreiranja mape pomoću naredbe net use mogu koristiti kao bilo koja druga mapa ili pogon na lokalnom računalu (u skladu s danim privilegijama na udaljenom računalu)

. net use [devicename | *] [\\computername\sharename[\volume]] [password | *]] [/user:[domainname\]username] [[/delete] | [/persistent:{yes | no}]]

. net use devicename [/home[password | *]] [/delete:{yes | no}]

Parametar Značenje
none Prikazuje popis mrežnih veza
devicename Dodjeljuje ime željenoj vezi. To mogu biti disk jedinice (D: do Z:)
i printeri (LPT1: do LPT3)
\\computerename\sharename Određuje ime poslužitelja i djeljivog izvora
password Određuje lozinku potrebnu za korištenje izvora
* Onemogućava prikazivanje lozinke kod upisivanja
/user Određuje korisničko ime
username Određuje korisničko ime kojim se logira na mrežu
/delete Poništava definiranu mrežnu vezu

Zadatak : Mapiraj (kreiraj vezu) kazalo na računalu \\servernt\vjezbe\provjera\g11\ na lokalnoj mreži (mapi dodjeli ime X:)

C:\>net use x: \\servernt\vjezbe\provjera\g11

 

***********************
Connects a computer to or disconnects a computer from a shared resource, or displays information about computer connections. The command also controls persistent net connections. Used without parameters, net use retrieves a list of network connections.

Syntax

net use [{DeviceName | *}] [\\ComputerName\ShareName[\volume]] [{Password | *}]] [/user:[DomainName\]UserName] [/user:[DottedDomainName\]UserName] [/user: [UserName@DottedDomainName] [/savecred] [/smartcard] [{/delete | /persistent:{yes | no}}]

net use [DeviceName [/home[{Password | *}] [/delete:{yes | no}]]

net use [/persistent:{yes | no}]

Parameters

DeviceName

Assigns a name to connect to the resource or specifies the device to be disconnected. There are two kinds of device names: disk drives (that is, D: through Z:) and printers (that is, LPT1: through LPT3:). Type an asterisk (*) instead of a specific device name to assign the next available device name.

\\ComputerName\ShareName

Specifies the name of the server and the shared resource. If ComputerName contains spaces, use quotation marks around the entire computer name from the double backslash (\\) to the end of the computer name (for example, "\\Computer Name\Share Name"). The computer name can be from 1 to 15 characters long.

\volume

Specifies a NetWare volume on the server. You must have Client Service for NetWare installed and running to connect to NetWare servers.

Password

Specifies the password needed to access the shared resource. Type an asterisk (*) to produce a prompt for the password. The password is not displayed when you type it at the password prompt.

/user

Specifies a different user name with which the connection is made.

DomainName

Specifies another domain. If you omit DomainName, net use uses the current logged on domain.

UserName

Specifies the user name with which to log on.

DottedDomainName

Specifies the fully-qualified domain name for the domain where the user account exists.

/savecred

Stores the provided credentials for reuse.

/smartcard

Specifies the network connection is to use the credentials on a smart card. If multiple smart cards are available, you are asked to specify the credential.

/delete

Cancels the specified network connection. If you specify the connection with an asterisk (*), all network connections are canceled.

/persistent:{yes | no}

Controls the use of persistent network connections. The default is the setting used last. Deviceless connections are not persistent. Yes saves all connections as they are made, and restores them at next logon. No does not save the connection being made or subsequent connections. Existing connections are restored at the next logon. Use /delete to remove persistent connections.

/home

Connects a user to the home directory.

net help command

Displays help for the specified net command.

Remarks

  • Connecting and disconnecting from a network resource

Use net use to connect to and disconnect from a network resource, and to view your current connections to network resources. You cannot disconnect from a shared directory if you use it as your current drive or an active process is using it.

  • Viewing connection information

To view information about a connection, you can do either of the following:

    • Type net use DeviceName to get information about a specific connection.
    • Type net use to get a list of all the computer's connections.
  • Using deviceless connections

Deviceless connections are not persistent.

  • Connecting to NetWare servers

After you install and run Client Service for NetWare, you can connect to a NetWare server on a Novell network. Use the same syntax that you use to connect to a Windows Networking server, except you must include the volume you to which you want to connect.

  • Using quotation marks

If the ServerName that you supply contains spaces, use quotation marks around the text (that is, "Server Name"). If you omit quotation marks, an error message appears.

Examples

To assign the disk-drive device name E: to the Letters shared directory on the \\Financial server, type:

net use e: \\financial\letters

To assign (map) the disk-drive device name M: to the directory Mike within the Letters volume on the \\Financial NetWare server, type:

net use m: \\financial\letters\mike

To connect the user identifier Dan as if the connection were made from the Accounts domain, type:

net use d:\\server\share /user:Accounts\Dan

To disconnect from the \\Financial\Public directory, type:

net use f: \\financial\public /delete

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

net use k: "\\financial 2" \memos

To restore the current connections at each logon, regardless of future changes, type:

net use /persistent:yes


• Net user
 

Adds or modifies user accounts or displays user account information.

Syntax

net user [UserName [Password | *] [options]] [/domain]

net user [UserName {Password | *} /add [options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters

UserName

Specifies 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. Type an asterisk (*) to produce a prompt for the password. The password is not displayed when you type it at the password prompt.

/domain

Performs the operation on the domain controller in the computer's primary domain.

options

Specifies a command-line option. The following table lists valid command-line options that you can use.

Command-line option syntax

Description

/active:{no | yes}

Enables or disables the user account. If the user account is not active, the user cannot access resources on the computer. The default is yes (that is, active).

/comment:"text"

Provides a descriptive comment about the user's account. This comment can have as many as 48 characters. Enclose the text in quotation marks.

/countrycode:nnn

Uses the operating system Country/Region codes to implement the specified language files for a user's Help and error messages. A value of 0 signifies the default Country/Region code.

/expires:{{mm/dd/yyyy | dd/mm/yyyy | mmm,dd ,yyyy} | never}

Causes the user account to expire if you specify date. Expiration dates can be in [mm/dd/yyyy], [dd/mm/yyyy], or [mmm,dd ,yyyy] format, depending on the Country/Region code. Note that the account expires at the beginning of the specified date. For the month value, you can use numbers, spell it out, or use a three-letter abbreviation (that is, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec). You can use two or four numbers for the year value. Use commas or slashes to separate parts of the date. Do not use spaces. If you omit yyyy, the next occurrence of the date (that is, according to your computer's date and time) is assumed. For example, the following entries are equivalent if entered between Jan. 10, 1994, and Jan. 8, 1995:

jan,9
1/9/95
january,9,1995
1/9

/fullname:"name"

Specifies a user's full name rather than a user name. Enclose the name in quotation marks.

/homedir:Path

Sets the path for the user's home directory. The path must exist.

/passwordchg:{yes | no}

Specifies whether users can change their own password. The default is yes.

/passwordreq:{yes | no}

Specifies whether a user account must have a password. The default is yes.

/profilepath:[Path]

Sets a path for the user's logon profile. This path points to a registry profile.

/scriptpath:Path

Sets a path for the user's logon script. Path cannot be an absolute path. Path is relative to %systemroot%\System32\Repl\Import\Scripts.

/times:{day[-day][,day[-day]] ,time[-time][,time[-time]] [;…] | all}

Specifies the times that users are allowed to use the computer. Time is limited to 1-hour increments. For the day values, you can spell out or use abbreviations (that is, M,T,W,Th,F,Sa,Su). You can use 12-hour or 24-hour notation for hours. If you use 12-hour notation, use AM and PM, or A.M. and P.M. The value all means a user can always log on. A null value (blank) means a user can never log on. Separate day and time with commas, and units of day and time with semicolons (for example, M,4AM-5PM;T,1PM-3PM). Do not use spaces when designating times.

/usercomment:"text"

Specifies that an administrator can add or change the "User comment" for the account. Enclose the text in quotation marks.

/workstations:{ComputerName[,...] | *}

Lists as many as eight workstations from which a user can log on to the network. Separate multiple entries in the list with commas. If /workstations has no list or if the list is an asterisk (*), users can log on from any computer.

net help command

Displays help for the specified net command.

Remarks

  • Used without parameters, net user displays a list of the user accounts on the computer. You can also type net users.
  • A password must satisfy the minimum length set with net accounts /minpwlen. It can have as many as 127 characters. However, if you are using Windows 2000 or Windows XP on a network that also has computers using Windows 95 or Windows 98, consider using passwords not longer than 14 characters. Windows 95 and Windows 98 support passwords of up to 14 characters. If your password is longer, you might not be able to log on to your network from those computers.

Examples

To display a list of all user accounts for the local computer, type:

net user

To view information about the user account jimmyh, type:

net user jimmyh

To add a user account for Jay Jamison, with logon rights from 8 A.M. to 5 P.M., Monday through Friday (no spaces in time designations), a mandatory password (jayj), and the user's full name, type:

net user jayj /add /passwordreq:yes /times:monday-friday,8am-5pm/fullname:"Jay Jamison"

To set johnsw's logon time (8 A.M. to 5 P.M.) using 24-hour notation, type:

net user johnsw /time:M-F,08:00-17:00

To set johnsw's logon time (8 A.M. to 5 P.M.) using 12-hour notation, type:

net user johnsw /time:M-F,8am-5pm

To specify logon hours of 4 A.M. until 5 P.M. on Monday, 1 P.M. until 3 P.M. on Tuesday, and 8 A.M. until 5 P.M. Wednesday through Friday for marysl, type:

net user marysl /time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00


• Net view

Prikazuje izvore (računala, domene) na lokalnoj MS mreži (eng. Net view = pogled na

net view [\\ime_računala | /domena[:ime-domene]]

Parametar Značenje
\\computername Određuje računalo za koje se žele vidjeti dijeljeni izvori
/domain[:domainname] Određuje željenu domenu računala. Ako je izostavljeno prikazuje sve domene

Primjer 1: Prikaži djeljive (sherane) izvore na računalu \\servernt na lokalnoj mreži
C:\>net view \\servernt

Primjer 2 : Popis računala na lokalnoj mreži pohrani u datoteku a:\network.txt
C:\>net view >a:\work.txt


Displays a list of domains, computers, or resources that are being shared by the specified computer. Used without parameters, net view displays a list of computers in your current domain.

Syntax

net view [\\ComputerName] [/domain[:DomainName]]

net view /network:nw [\\ComputerName]

Parameters

\\ComputerName

Specifies the computer that contains the shared resources that you want to view.

/domain[:DomainName]

Specifies the domain for which you want to view the available computers. If you omit DomainName, /domain displays all of the domains in the network.

/network:nw

Displays all available servers on a NetWare network. If you specify a computer name, /network:nw displays the resources available on that computer in the NetWare network. You can also specify other networks that are added to the system.

net help command

Displays help for the specified net command.

Remarks

  • Use the net view command to display a list of computers. The output is similar to the following:

Server Name           Remark
-------------------------------------------------
\\Production          Production file server
\\Print1              Printer room, first floor
\\Print2              Printer room, second floor

Examples

To see a list of the resources shared by the \\Production computer, type:

net view \\production

To see the resources available on the NetWare server \\Marketing, type:

net view /network:nw \\marketing

To see a list of the computers in the sales domain or workgroup, type:

net view /domain:sales

To see all the servers in a NetWare network, type:

net view /network:nw

 

Copyright 2009 - Ivan Cindrić - ic.ims.hr