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

How to use the NET LOCALGROUP command in DOS

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces how to use the NET LOCALGROUP command in DOS. It is very detailed and has a certain reference value. Friends who are interested must finish it!

The code is as follows:

Net user / add abc * / comment: "description of this user" / expires:never

Net localgroup / add administrators abc adds abc to the administrators user group

NET LOCALGROUP

[groupname [/ COMMENT: "text"]] [/ DOMAIN]

Groupname {/ ADD [/ COMMENT: "text"] | / DELETE} [/ DOMAIN]

Groupname name [...] {/ ADD | / DELETE} [/ DOMAIN]

NET LOCALGROUP is used to modify local groups on a computer. When you use this command without options, it will

Displays the local groups on the computer.

Groupname refers to the name of the local group that needs to be added, expanded, or deleted. Just enter the group name

You can browse the list of users or global groups in local groups.

/ COMMENT: "text" adds comments to a new or existing group. You need to enclose the text in quotes.

/ DOMAIN performs operations on the primary domain controller of the current domain. Otherwise, hold it on the local computer

Okay, this operation.

Name [...] Lists one or more user names that need to be added or removed from a local group or

Group name. Multiple user names can be separated by spaces. The name can be the user.

Or a global group, but cannot be another local group. If a user is from another

For another domain, you should add the domain name (for example, SALES\ RALPHR) before the user name.

/ ADD adds a group name or a user name to a local group. Must be used for

This command is added to a user or global group in a local group to establish an account.

/ DELETE removes a group name or a user name from a local group.

NET USER

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

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

Username [/ DELETE] [/ DOMAIN]

NET USER is used to create and modify user accounts on your computer. When using this command without options

It lists the user accounts on the computer. The information about the user account is stored in the user account database.

This command runs only on the server.

Username refers to the name of the user account that needs to be added, deleted, modified, or browsed. The name of the user account cannot exceed 20 characters.

Password assigns or changes the password of the user account. The password must satisfy the NET ACCOUNTS command

Requirements for the minimum length specified by the / MINPWLEN option. It can have up to 14 characters.

* prompt for a password. When the user enters at the password prompt, the password is not displayed.

/ DOMAIN performs operations on the primary domain controller of the current domain.

/ ADD adds user accounts to the user accounts database.

/ DELETE removes a user account from the user account database.

The Options is as follows:

Options description

/ ACTIVE: {YES | NO} activate or deactivate the account. If the account is deactivated, the user

You cannot access the server. The default value for this option is YES.

/ COMMENT: "text" provides a descriptive comment about the user account. Need to enclose the text in quotation marks

/ COUNTRYCODE:nnn uses the country code of the operating system to implement user assistance

And the specific language file for the error message. 0 indicates the default country

Area code.

/ EXPIRES: {date | NEVER} if the date is set, the account will expire. Set up NEVER

There is no time limit for the account. Based on the country code

Different, valid dates can be in the format of month / day / year or day / month / year.

Month can be a number, a complete spelling or a three-letter acronym.

The year can be two or four digits. Use a slash (/) (no spaces)

To separate parts of the date.

/ FULLNAME: "name" is the full name (not the user name) of a user. Need to put the name

Enclose it in quotation marks.

/ HOMEDIR:pathname sets the path to the user's home directory. The path must already exist.

/ PASSWORDCHG: {YES | NO} specifies whether users can change their passwords. Its default value is YES.

/ PASSWORDREQ: {YES | NO} specifies whether the user's account must have a password. Its default value is YES.

/ PROFILEPATH [: path] sets the path for the user's login profile.

/ SCRIPTPATH:pathname refers to the location of the user's login file.

/ TIMES: {times | ALL} refers to the time when the user can log in. The expression of TIMES is

Day [- day] [, day [- day]], time [- time] [, time [- time]]

The increment is limited to 1 hour. Days can be all spelled or abbreviated. Hour

It can be 12 hours or 24 hours. For the 12-hour system,

To use AM,PM. ALL means that users can always log in. Null value table

Indicates that the user can never log in. You can use commas to separate days and time items

And separate multiple days and time items with a semicolon.

/ USERCOMMENT: "text" allows the administrator to add or change user comments for the account.

/ WORKSTATIONS: {computername [,...] | *}

Lists the computers on which up to 8 users can log on to the network.

If / WORKSTATIONS does not have a list or the list is *

Users can log in from any computer.

The above is all the contents of the article "how to use NET LOCALGROUP commands in DOS". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report