Windows Account Related Commands Flashcards
Learn Account Related Commands used in the windows CLI
cacls
C:>cacls dir1
C:>cacls dir1 /g sue:R
C:>cacls dir1 /p sue:N
Displays or modifies access control lists (ACLs) for directories and files
Displays ACL for C:\dir1 directory
Replace existing ACL with a single entry
Replace existing user access with a single entry
page 58
net accounts
net accounts /minpwlen:
net accounts/maxpwage:
Manage policy settings, such as account and password policies, on a local computer
set minimum password character length
sets maximum password age
page 58
net user
net user /add
net user /delete
Displays, modifies, or creates user accounts.
creates user account
deletes user account
page 58
net localgroup
net localgroup group /add
net localgroup group /delete
Displays, modifies, or creates group accounts
Creates a group account or adds a user account as a member
Deletes a group account or removes a user account as a member
runas /user:
Identifies a user account to execute a program
page 59
tasklist
Displays a list of processes currently executing
page 59
taskkill
taskkill /pid
taskkill /IM
taskkill /f
Kills one or more processes Specifies PID of process to be killed Specifies process by image name Forcefully terminate the process page 59