Net User 命令
2016-01-15 15:18
239 查看
You can use the net user command to create and modify user accounts on computers. When you use this command without command-line switches, the user accounts for the computer are listed. The user account information is stored in the user accounts database. This command works only on servers.
To run the net user command tool, using the WinX menu, open a Command Prompt, type net user and hit Enter. This will show you the user accounts on the computer. Thus, when you use net user without parameters, it displays a list of the user accounts on the computer.
The sytax for its usage is:
Using net user with the appropriate parameters allows you to carry out several functions. You can use the following parameters with the net user command:
username is the name of the user account you want to add, delete, modify, or view.
password will assign or change a password for the user’s account.
* will produce a prompt for the password.
/domain performs the operation on the primary domain controller of the current domain on computers running Windows NT Workstation which are members of a Windows NT Server domain.
/add will add a user account to the user accounts database.
/delete will delet a user account from the user accounts database.
You will be asked to type a password for the user. Type the new password and later again retype the password to confirm. The password will now be changed.
You could also use the following command. But this case, you will not be prompted. The password will be directly changed right away:
Amongst many such things, you can also use net user to:
Restrict login hours of a particular user
Activate Windows Super Administrator Account
To run the net user command tool, using the WinX menu, open a Command Prompt, type net user and hit Enter. This will show you the user accounts on the computer. Thus, when you use net user without parameters, it displays a list of the user accounts on the computer.
The sytax for its usage is:
net user [<UserName> {<Password> | *} [<Options>]] [/domain] net user [<UserName> {<Password> | *} /add [<Options>] [/domain]] net user [<UserName> [/delete] [/domain]]
Using net user with the appropriate parameters allows you to carry out several functions. You can use the following parameters with the net user command:
username is the name of the user account you want to add, delete, modify, or view.
password will assign or change a password for the user’s account.
* will produce a prompt for the password.
/domain performs the operation on the primary domain controller of the current domain on computers running Windows NT Workstation which are members of a Windows NT Server domain.
/add will add a user account to the user accounts database.
/delete will delet a user account from the user accounts database.
Net user Change Password
As an example let us say you want to change the password of a user. To change a user’s password, log on as an administrator, open an elevated command prompt type the following and press Enter:net user user_name * /domain
You will be asked to type a password for the user. Type the new password and later again retype the password to confirm. The password will now be changed.
You could also use the following command. But this case, you will not be prompted. The password will be directly changed right away:
net user user_name new_password
Amongst many such things, you can also use net user to:
Restrict login hours of a particular user
Activate Windows Super Administrator Account
相关文章推荐
- Swift-06-闭包
- html5 中常用的标签和属性
- 欢迎使用CSDN-markdown编辑器
- 大数据认知阶段——如何学习大数据相关技术
- Ios开发Swift自定义UIbutton增加一个能设置高亮状态下背景颜色的方法
- 无法debug断点跟踪JDK源代码——missing line number attributes的解决方法
- IOS App发布问题:code signing is required for product type "Application" in SDK 'iOS 9.2'
- DataTable
- How to use Total Commander?
- CGImageSource Reference
- 存储过程与JAVA
- Cocos2dx个人笔记之屏幕适配
- Java输入输出流(1)
- Mutex 进程间互斥
- ansible安装测试
- Storm简介
- aix中的makefie不支持ifeq
- 《大型网站技术架构:核心原理与案例分析》读书笔记 - 网站的技术升级路线
- ansible安装测试
- Apache POI生成Excel表格并下载的一些注意事项