Skip to content

Batch Script Network

Learn how to use the net command in batch scripts to manage network settings, user accounts, services, and shared resources on Windows systems.

Batch Script Network

The batch script has the ability to work with network settings. The net command is used to update, correct or display the network or network settings.

Several options are available for the net command:

Command Description
net accounts View the current password and logon restrictions for the computer.
net config Displays your current server or workgroup settings.
net computer Adds or removes a computer attached to the windows domain controller.
net user This command can be used to view the details of a particular user account, and add/delete/modify a user
net stop/start This command is used to stop and start a particular service.
net statistics Display network statistics of the workstation or server.
net use Connects or disconnects your computer from a shared resource or displays information about your connections.
Navigation