Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows system command line net user command add delete update user

2025-02-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The syntax for this command is:

-

NET USER

[username [password |] [options]] [/ DOMAIN]

Username {password |} / ADD [options] [/ DOMAIN]

Username [/ DELETE] [/ DOMAIN]

Username [/ TIMES: {times | ALL}]

Examples of usage:

-

1. New user, account number is user1 password is 123456, full name is: user 1, description is user 1 description

Net user user1 123456 / add / fullname: "user one" / comment: "user description"

two。 Update user, account user1 password is changed to 23456 full name: user update, description: user description update if disabled, activate

Net user user1 23456 / fullname: "user one update" / comment: "user one description update" / active:yes

3. View user list net user

4. View the specified user properties net user user1

5. Delete user

Net user user1 / delete

6. The user list is written to the TXT file

Net user > C:\ 1.TXT

7. Add new users in batch

Net user user1 123456 / add / fullname: "user one" / comment: "user description"

Net user user2 123456 / add / fullname: "user 2" / comment: "user description"

Net user user3 123456 / add / fullname: "user 3" / comment: "user description"

Net user user4 123456 / add / fullname: "user 4" / comment: "user description"

Net user user5 123456 / add / fullname: "user five" / comment: "user description"

Net user user6 123456 / add / fullname: "user six" / comment: "user description"

The addition, update, viewing, deletion and batch of users can be realized through the command line

EXCELVBA can write bat scripts, so EXCEL+VBA can manage windows users.

During the course preparation, my course home page: https://edu.51cto.com/lecturer/6969164.html

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report