Membuat user account dengan munggunakan perintah cmd (command prompt) pada windows atau linux
Soal :
Carilah perintah untuk membuat account login di Windows. bagaimana
supaya perintah tersebut dapat membuat user secara berurut. contoh
:
user nim 1101530001 s/d 1101530100
password : unisbank
user nim 1101530001 s/d 1101530100
password : unisbank
Jawaban :
Pernah ketemu
masalah ketika hendak menambah atau menghapus nama pengguna (user
account) di control panel windows? dan pengen tahu cara
menghapus/menambah akun pengguna dengan memakai Command Prompt?
Silahkan Simak ulasan berikut ini:
Cara membuat akun
user baru di windows 8 cukup mudah, hanya membuka Metro control
panel, kemudian ke “Users” dan klik tombol “add user”, kita
tidak bisa membuat akun baru menggunakan control panel lama, ketika
kita mengklik opsi menambah akun baru di control panel lama ia akan
membawa kita ke Metro Control panel, jadi lebih cepat kita buka Metro
Control Panel untuk menambah/menghapus User Account di Windows 8.
Gimana kalo Metro
Control Panel tiba2 hilang atau tidak bisa dibuka karena beberapa
Alasan tertentu?
User Account bisa
juga kita tambah/hapus dengan menggunakan Command prompt, yang kita
perlu lalukan ialah menjalankan perintah sederhana saja, dan akun
pengguna (user account) sudah bisa di gunakan.
Berikut adalah cara
untuk membuat akun pengguna di Windows dari Command Prompt:
- Bukalah Command Prompt dengan hak akses Administator (klik kanan Command prompt di accessories dan pilih “Run as Administrator”), klik di kotak pencarian dan ketik “CMD” (tanpa tanda kutip) dan secara bersamaan tekan tombol CRTL + SHIFT + ENTER.
- Didalam jendela Command Prompt, ketikan perintah berikut ini:
-
net user username password / add
Ganti “Username”
dengan nama akun kesukaan kita, dan “Password” dengan password
yang mudah kita ingat tapi sulit ditebak orang lain (min 10
Karakter)
Dan jika kita menjalankan Command prompt nya tanpa hak akses Admin, maka pada saat menjalankan perintahnya akan muncul error “Access denied”.
Dan jika kita menjalankan Command prompt nya tanpa hak akses Admin, maka pada saat menjalankan perintahnya akan muncul error “Access denied”.
Cara menghapus user
account menggunakan Command Prompt:
- Buka Command prompt dan jalankan perintah:
-
net user username /delete
Ganti “Username”
dengan nama akun yang akan kita hapus.
Perintah2 diatas
juga dapat diterapkan pada Windows XP, Vista dan Windows 7
View user account password and logon
requirements (also displays the machine type - NT Server or NT
workstation)
NET ACCOUNTS
View password and logon requirements for the network domain.
NET ACCOUNTS /DOMAIN
Set the number of minutes a user has before being forced to log off when the account expires or valid logon hours expire
NET ACCOUNTS /FORCELOGOFF:minutes /DOMAIN
Prevent forced logoff when user accounts expire
NET ACCOUNTS /FORCELOGOFF:NO /DOMAIN
Set the minimum number of characters for a password.
NET ACCOUNTS /MINPWLEN:C /DOMAIN
The range is 0-14 characters; the default is 6 characters.
Set the maximum number of days that a password is valid.
NET ACCOUNTS /MAXPWAGE:dd /DOMAIN
The range is 1-49710; the default is 90 days.
Set passwords to never expire.
NET ACCOUNTS /MAXPWAGE:UNLIMITED /DOMAIN
Set a minimum number of days that must pass before a user can change a password (default = 0)
NET ACCOUNTS /MINPWAGE:dd /DOMAIN
Require that new passwords be different from 'x' number of previous passwords
NET ACCOUNTS /UNIQUEPW:x /DOMAIN
The range for 'x' is 1-24
Synchoronise the user accounts database (PDC and BDC)
NET ACCOUNTS /SYNC /DOMAIN
View user account details
NET USER [/DOMAIN]
Add a user account.
NET USER username {password | *} /ADD [options] [/DOMAIN]
Modify a user account.
NET USER [username [password | *] [options]] [/DOMAIN]
Delete a username
NET USER username [/DELETE] [/DOMAIN]
NET ACCOUNTS
View password and logon requirements for the network domain.
NET ACCOUNTS /DOMAIN
Set the number of minutes a user has before being forced to log off when the account expires or valid logon hours expire
NET ACCOUNTS /FORCELOGOFF:minutes /DOMAIN
Prevent forced logoff when user accounts expire
NET ACCOUNTS /FORCELOGOFF:NO /DOMAIN
Set the minimum number of characters for a password.
NET ACCOUNTS /MINPWLEN:C /DOMAIN
The range is 0-14 characters; the default is 6 characters.
Set the maximum number of days that a password is valid.
NET ACCOUNTS /MAXPWAGE:dd /DOMAIN
The range is 1-49710; the default is 90 days.
Set passwords to never expire.
NET ACCOUNTS /MAXPWAGE:UNLIMITED /DOMAIN
Set a minimum number of days that must pass before a user can change a password (default = 0)
NET ACCOUNTS /MINPWAGE:dd /DOMAIN
Require that new passwords be different from 'x' number of previous passwords
NET ACCOUNTS /UNIQUEPW:x /DOMAIN
The range for 'x' is 1-24
Synchoronise the user accounts database (PDC and BDC)
NET ACCOUNTS /SYNC /DOMAIN
View user account details
NET USER [/DOMAIN]
Add a user account.
NET USER username {password | *} /ADD [options] [/DOMAIN]
Modify a user account.
NET USER [username [password | *] [options]] [/DOMAIN]
Delete a username
NET USER username [/DELETE] [/DOMAIN]
Generate a random password:
NET USER administrator /random
Add a Workgroup
NET GROUP groupname /ADD [/COMMENT:"text"] [/DOMAIN]
Edit a workgroup
NET GROUP [groupname [/COMMENT:"text"]] [/DOMAIN]
Delete a group
NET GROUP groupname /DELETE [/DOMAIN]
Add a user to a group
NET GROUP groupname username [...] /ADD [/DOMAIN]
Delete a user from a group
NET GROUP groupname username [...] /DELETE [/DOMAIN]
To View, Add or modify a local workgroup replace GROUP in the commands above with LOCALGROUP.
Add a Workgroup
NET GROUP groupname /ADD [/COMMENT:"text"] [/DOMAIN]
Edit a workgroup
NET GROUP [groupname [/COMMENT:"text"]] [/DOMAIN]
Delete a group
NET GROUP groupname /DELETE [/DOMAIN]
Add a user to a group
NET GROUP groupname username [...] /ADD [/DOMAIN]
Delete a user from a group
NET GROUP groupname username [...] /DELETE [/DOMAIN]
To View, Add or modify a local workgroup replace GROUP in the commands above with LOCALGROUP.
Examples
Create a group
C:\>NET LOCALGROUP spud /add
Add to guests
C:\>NET LOCALGROUP guests spud /add
Then remove
C:\>NET LOCALGROUP guests spud
/delete
C:\>NET LOCALGROUP spud /delete
Jadi
kesimpulannya membuat perintah tersebut :
for
/l %a in (11.01.53.0001,1,11.01.53.0100) d0 net
user “11.01.53.000%a” unisbank / add
0 komentar:
Posting Komentar