You are on page 1of 2

Lab: Computer Maintenace & Repaire I-II SETEC INSTITUTE

D. បង្កើត User Account តាមរយៈ Command Prompt


Command Prompt គឺជាការប្រើ្ាស់តាមរបរៀរ Command Line បៅក្នុង Operating System
Windows ស្ារ់ Execute បៅតាមរញ្ចាររស់ User។ Command ភាគប្រន
ើ ស្ារ់របងកើតការងារ
បោយសវ័យ្រវតត( Automate Tasks) ដូរជា Scripts, Batch files… ជាបដើម និងានគុ ណសមបតតិជា
ប្រន
ើ ប ៀត ស្ារ់បោយ្ាយរញ្ចាបៅបេលដដល Windows Errors…។

Syntax: C:\>net user

 Create user Account by Command:


- Run  Cmd (Run command as administrator)
- C:\> net user student /add Enter

 Delete User Account


- C:\>net user student /Del  Enter

 Set Password
- C:\> net user student * 12345 Enter

 Remover Password on User:


- C:\>net user student * (Enter)
- Type a password for a user : (Enter)
- Confirm a password for user: (Enter)

 Assign and Remove user Account to Administrators group:


- ==> Administrators, Power Users, Users…
- C:\>net localgroup administrators student /add
- C:\>net localgroup administrators student /delete

 Remove User from Group


- C:\> net localgroup grpup_name user_name /delete
- C:\> net localgroup "Power users" username /delete

 Enable / Disable User Account:


For example, to disable a user account named Administrator
we can run the below command from command prompt.

C:\>Net user Administrator /active:no  Disable User Account


C:\>Net user Administrator /active:yes  Enable User Account

Page 47
Lab: Computer Maintenace & Repaire I-II SETEC INSTITUTE
 ការ្គរ់្គង User Account ជាមួយ Batch file: (ដំបណើរការបនេះ្តូវប្រើ Notepad Applicaiton)
- Net user student /add: ស្ារ់របងកើត User Student
- Net user student /del : ស្ារ់លុរ User Student
- Net localgroup Users student /del: ស្ារ់ Remove Group Users បរញេើ
User Student
- Net localgroup administrators student /add: ស្ារ់ Add User Student
រូលបៅកាន់ Administrators Group

Page 48

You might also like