Batch script foundation under Windows-network related commands (user operation commands, user group operation commands)

Since the USB flash drive was poisoned, I began to discover the importance of learning batch scripts. Let's work hard together! ! !
Insert picture description here
Do business! ! !

User operation command

View user help information

net user /?

Insert picture description here

View user detailed help information

net user /help

Insert picture description here

View user details

net user 用户名

Insert picture description here

View user accounts

net user

Insert picture description here

delete users

net user 用户名 /delete

Insert picture description here
Note : Be cautious with the user you are currently using, I was a real lesson of blood, which made me reinstall the system

Create user

Create a user with username admin and password admin

net user 用户名 密码 /add

Insert picture description here
Can check
Insert picture description here

User group operation command

View user groups

net localgroup

Insert picture description here

View user's group

net user 用户名

Insert picture description here

Add user group

net localgroup 所属组 用户 /add

Insert picture description here
Check the user's details at this time

net user admin

Insert picture description here

Delete user's group

net localgroup 所属组 用户名 /delete

Insert picture description here
Check the user's detailed information at this time.
Insert picture description here
Congratulations, you've finished reading it.Insert picture description here

Guess you like

Origin blog.csdn.net/hanhanwanghaha/article/details/108709706