Commands Flashcards

Skibidi (131 cards)

1
Q

What command displays information about the computer and its OS?

A

systeminfo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command retrieves system information from a remote machine?

A

systeminfo /s (computername)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command allows you to view the version via CLI?

A

ver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command allows you to view the visible network adapters?

A

get-netadapter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command displays IPv4, IPv6, subnet masks, and default gateway for all adapters?

A

ipconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What command displays all users on your workstation?

A

net user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What command creates a new user?

A

net user (name) (password) /add

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What command displays lists of groups on your workstation?

A

net localgroup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command creates a new group?

A

net localgroup groupname /add

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command gets all commands?

A

get-command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What command gets all available cmdlets with a specific name?

A

get-help (cmd name)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What command displays name, status, and description for local users?

A

get-localuser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What command displays all local security groups?

A

get-localgroup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What command displays users from a local group?

A

get-localgroupmember (-group)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What command adds users to a local group?

A

get-localgroupmember (-groupname) (-member) (username)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What command displays your Security Identifier (SID)?

A

whoami /user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What command displays the SID for every user on the domain?

A

wmic useraccount get name,side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What command finds a specified user’s SID?

A

get-localuser | where-object {$_.Name -eq “talayeh.matthews009”} |select-object name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What command displays your SID?

A

get-wmiobject win32_useraccount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What command displays everyone’s SIDs?

A

get-wmiobject win32_useraccount | select Name,*SID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What command displays current settings for password and logon limitations?

A

net accounts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What command sets the account minimum password length to eight characters?

A

net account /minpwlen:8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What command opens the local security policy GUI?

A

secpol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What command sets the maximum number of days a password is valid?

A

net accounts /maxpwage:30

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What command opens the registry editor?
regedit
26
What command displays an object's value in the registry?
reg query
27
What command adds an object or value to the registry?
reg add
28
What command removes an object from the registry?
reg delete
29
What command displays the keys inside HKLM:\?
get-childterm -path hklm:\
30
What command displays all services that are running, stopped, or paused?
get-service (-computername)
31
What command starts a service?
start-service (servicename)
32
What command stops a service?
stop-service (servicename)
33
What command is used to start, stop, suspend, or change properties of a service?
set-service -name (servicename) -startuptype (automatic/manual)
34
What command shows a list of running services with their Process ID (PID)?
tasklist /svc
35
What command is used to view services running on a remote machine?
tasklist /svc /*s (computername/*ip)
36
What command filters the tasklist output for specific names, values, or operators?
tasklist /fi (example: tasklist /fi "PID eq 7360")
37
What command is used to start or list running network services?
net start
38
What command is used to stop running network services?
net stop
39
What command shows all running processes?
sc query
40
What command queries the configuration information for services?
sc qc
41
What command starts a service?
sc start
42
What command stops a service?
sc stop
43
What command starts a service on a remote machine?
sc \\\\servername start
44
What command shows all running processes?
sc.exe query
45
What command queries the configuration information for services?
sc.exe qc
46
What command starts a service?
sc.exe start
47
What command stops a service?
sc.exe stop
48
What command starts a service on a remote machine?
sc.exe \\\\servername start
49
What command displays what file system is formatted on your drive?
fsutil fsinfo volumeinfo C:
50
What command shows the Master File Table (MFT) information for a file?
fsutil file layout (/v filename)
51
What command allows you to query logs and specify what you want to look for?
get-winevent -logname security -maxevent 5 |ft wrap
52
What command enables auditing?
Auditpol
53
What command retrieves the system policy, per-user policy auditing option, and audit security descriptor object?
auditpol /get
54
What command sets the per-user audit policy, system audit policy, or auditing options?
Auditpol /set
55
What command searches for a specific log?
get-help (log)
56
What command displays scheduled tasks?
schtasks /?
57
What command creates a new scheduled task?
schtasks /create
58
What command deletes a scheduled task by name?
schtasks /delete
59
What command changes the task that is run but not the name?
schtasks /change
60
What command displays current scheduled tasks?
schtasks /query
61
What command starts a Windows PowerShell background task on the local computer?
new-sheduledtask
62
What command is a diagnostic tool for NetBIOS over TCP/IP and allows you to view information and troubleshoot NetBIOS issues?
nbtstat
63
What command lists local NetBIOS names?
nbtstat -n
64
What command lists remote machines' NetBIOS names by using either name or IP?
nbtstat -a
65
What command displays information that you can use to diagnose Domain Name System (DNS) infrastructure?
nslookup
66
What command queries your DNS records?
get-lookup
67
What command queries DNS server resource records?
get-DnsServerResourceRecord
68
What command allows for a temporary session to execute commands on a remote machine and then exits?
Enter-Pssession
69
What command runs scripts on multiple machines?
Invoke-command
70
What command displays UDP and TCP statistics?
netstat -an
71
What command displays only TCP statistics?
netstat -nap tcp
72
What command displays only TCP statistics and provides a Process ID (PID)?
netstat -anon tcp
73
What command shows shared resources on the local machine and also enables you to create shared resources?
net share
74
What command deletes a shared resource?
net share home$ /delete
75
What command shares a directory and names it with a specific share name?
net share home$=c:\users\bob
76
What command is used to add or remove network connections from a computer?
net use
77
What command maps a network drive to an intended share?
net use (driveletter or *)[\\\\ip\\sharename]
78
What command deletes a mapped drive?
net use (driveletter) /del
79
What command displays configuration information of server services?
net config server
80
What command displays configuration information of workstation services?
net config workstation
81
What command shows shares available on a specific computer?
net view \\\\computername/all
82
What command displays local shares?
get-smbshare
83
What command names a new share folder?
new-smbshare -name hello -path 'c:\program files\'
84
What command deletes a share named "hello"?
remove-smbshare -- name hello
85
What command is used for creating a new Internet Information Services (IIS) website?
new-website
86
What command adds specific types of objects to the Active Directory?
dsadd
87
What command queries Active Directory Domain Services (AD DS) according to specified criteria?
dsquery
88
What command modifies an existing object of a specific type in the Active Directory?
dsmod
89
What command moves or renames a single object in a domain?
dsmove
90
What command allows users to perform operations against an LDAP-compatible directory, such as Active Directory?
LDP
91
What command adds or deletes a computer from a domain database?
net computer
92
What command adds, displays, or modifies global groups in a domain?
net group
93
What command adds one or more members to an Active Directory group?
Add-ADGroupMember
94
What command enables or disables an Active Directory account?
Enable/Disable-ADAccount
95
What command gets one or more Active Directory computers?
Get-ADComputer
96
What command gets an Active Directory domain?
Get-ADDomain
97
What command gets one or more Active Directory domain controllers?
Get-ADDomainController
98
What command gets an Active Directory forest?
Get-ADForest
99
What command gets one or more Active Directory groups?
Get-ADGroup
100
What command gets the members of an Active Directory group?
Get-ADGroupMember
101
What command gets one or more Active Directory Organizational Units (OUs)?
Get-ADOrganizationalUnit
102
What command gets one or more Active Directory users?
Get-ADUser
103
What command opens the Group Policy Management GUI?
MMC
104
What command adds a group to the domain database?
net (groupname) group /add /domain
105
What command adds a local group to the domain?
net localgroup (groupname) /add /domain
106
What command opens the LDAP GUI?
ldp.exe
107
What command opens the Kerberos setup tool?
ksetup.exe
108
What command opens Process Explorer?
procexp.exe
109
What command opens Process Monitor?
procmon.exe
110
What command opens AutoRuns?
autoruns.exe
111
What command opens TCP View?
tcpview
112
What command adds or deletes a computer from a domain database?
net computer
113
What command adds, displays, or modifies global groups in a domain?
net group
114
What command adds one or more members to an Active Directory group?
Add-ADGroupMember
115
What command enables or disables an Active Directory account?
Enable/Disable-ADAccount
116
What command gets one or more Active Directory computers?
Get-ADComputer
117
What command gets an Active Directory domain?
Get-ADDomain
118
What command gets one or more Active Directory domain controllers?
Get-ADDomainController
119
What command gets an Active Directory forest?
Get-ADForest
120
What command gets one or more Active Directory groups?
Get-ADGroup
121
What command gets the members of an Active Directory group?
Get-ADGroupMember
122
What command gets one or more Active Directory Organizational Units (OUs)?
Get-ADOrganizationalUnit
123
What command gets one or more Active Directory users?
Get-ADUser
124
What command opens the Group Policy Management GUI?
MMC
125
What command adds a group to the domain database?
net (groupname) group /add /domain
126
What command adds a local group to the domain?
net localgroup (groupname) /add /domain
127
What command opens the LDAP GUI?
ldp.exe
128
What command opens the Kerberos setup tool?
ksetup.exe
129
What command opens Process Explorer?
procexp.exe
130
What command opens Process Monitor?
procmon.exe
131
What command opens AutoRuns?
autoruns.exe