NET command
net command is a powerful command execution. Through the list of users on the computer to view, add and delete users, establish a connection, start or stop a computer network services with each other.
1, Net User command
effect:
Add or change user accounts or displays user account information
Command Format
net user [username [password | *] [options]] [/add /del]
Parameters related
- Type without parameters net usr viewed on a standard computer user account column
- username to add, delete, change, or view the user account
- password for the user account or change the password assigned
- Prompt for password
- / Domain primary domain controller to perform operations in the computer's primary domain
For example: net user test test users view information
2, Net localgroup command
effect
Add or change user group information
Format:
net localgroup [name [options]]
Related parameters:
- Type without parameters neu localgroup view the group list on the computer
- name to add, delete, change or view the group name
For example: net localgroup administrators view information Administrators group
3, Net Shared command
effect
View or create shared
Command Format
net share [sharename=Drive:path]
E.g:
net share sen=f:\xxx # 创建显示共享
net share rec=f:\yyyy # 创建隐式共享
net share sen /del # 删除共享
- Access display sharing method:
Run (win + R) -> type "\ shared host IP"
- Pham Van implicitly shared method:
Run (win + R) -> type "\ shared hosting the IP \ implicitly share name"
note:
Access to virtual machines share files failed. Can WIN 2003 Settings -> Control Panel - Local Security Policy> - -> Administrative Tools> Security Options -> Accounts -> local account use of blank passwords to console logon only allowed -> set to "disabled"
4, Net start / Stop service command
effect
Start / Stop Services Directive
- For example: Start / Stop Telent Service
net start telnet # 开启 telnet
net stop telnet # 停止 telnet
5, Net use command
effect
Setting up a computer or disconnect the computer resource sharing links, or links to display computer information
Command Format
net use \ IP address of the destination host \ IPC $ / u: username password
E.g:
- IPC $ establish a link with the virtual machine using the net use command
# 链接 IPC
net use \\192.168.0.100\ipc$ /u:administrator
# 断开链接
net use \\192.168.0.100 /del
- C stresses shared disk, network drive mapped to a physical k
# 建立网络映射驱动器
net use k: \\192.168.0.100\C$
# 删除映射链接
net use k: /del
If a man unknown to concentrate swordsmanship ~!
`` `