Commands Flashcards

Skibidi

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
Q

What command opens the registry editor?

A

regedit

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

What command displays an object’s value in the registry?

A

reg query

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

What command adds an object or value to the registry?

A

reg add

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

What command removes an object from the registry?

A

reg delete

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

What command displays the keys inside HKLM:\?

A

get-childterm -path hklm:\

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

What command displays all services that are running, stopped, or paused?

A

get-service (-computername)

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

What command starts a service?

A

start-service (servicename)

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

What command stops a service?

A

stop-service (servicename)

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

What command is used to start, stop, suspend, or change properties of a service?

A

set-service -name (servicename) -startuptype (automatic/manual)

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

What command shows a list of running services with their Process ID (PID)?

A

tasklist /svc

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

What command is used to view services running on a remote machine?

A

tasklist /svc /s (computername/ip)

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

What command filters the tasklist output for specific names, values, or operators?

A

tasklist /fi (example: tasklist /fi “PID eq 7360”)

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

What command is used to start or list running network services?

A

net start

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

What command is used to stop running network services?

A

net stop

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

What command shows all running processes?

A

sc query

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

What command queries the configuration information for services?

A

sc qc

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

What command starts a service?

A

sc start

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

What command stops a service?

A

sc stop

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

What command starts a service on a remote machine?

A

sc \\servername start

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

What command shows all running processes?

A

sc.exe query

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

What command queries the configuration information for services?

A

sc.exe qc

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

What command starts a service?

A

sc.exe start

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

What command stops a service?

A

sc.exe stop

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

What command starts a service on a remote machine?

A

sc.exe \\servername start

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

What command displays what file system is formatted on your drive?

A

fsutil fsinfo volumeinfo C:

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

What command shows the Master File Table (MFT) information for a file?

A

fsutil file layout (/v filename)

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

What command allows you to query logs and specify what you want to look for?

A

get-winevent -logname security -maxevent 5 |ft wrap

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

What command enables auditing?

A

Auditpol

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

What command retrieves the system policy, per-user policy auditing option, and audit security descriptor object?

A

auditpol /get

54
Q

What command sets the per-user audit policy, system audit policy, or auditing options?

A

Auditpol /set

55
Q

What command searches for a specific log?

A

get-help (log)

56
Q

What command displays scheduled tasks?

A

schtasks /?

57
Q

What command creates a new scheduled task?

A

schtasks /create

58
Q

What command deletes a scheduled task by name?

A

schtasks /delete

59
Q

What command changes the task that is run but not the name?

A

schtasks /change

60
Q

What command displays current scheduled tasks?

A

schtasks /query

61
Q

What command starts a Windows PowerShell background task on the local computer?

A

new-sheduledtask

62
Q

What command is a diagnostic tool for NetBIOS over TCP/IP and allows you to view information and troubleshoot NetBIOS issues?

A

nbtstat

63
Q

What command lists local NetBIOS names?

A

nbtstat -n

64
Q

What command lists remote machines’ NetBIOS names by using either name or IP?

A

nbtstat -a

65
Q

What command displays information that you can use to diagnose Domain Name System (DNS) infrastructure?

A

nslookup

66
Q

What command queries your DNS records?

A

get-lookup

67
Q

What command queries DNS server resource records?

A

get-DnsServerResourceRecord

68
Q

What command allows for a temporary session to execute commands on a remote machine and then exits?

A

Enter-Pssession

69
Q

What command runs scripts on multiple machines?

A

Invoke-command

70
Q

What command displays UDP and TCP statistics?

A

netstat -an

71
Q

What command displays only TCP statistics?

A

netstat -nap tcp

72
Q

What command displays only TCP statistics and provides a Process ID (PID)?

A

netstat -anon tcp

73
Q

What command shows shared resources on the local machine and also enables you to create shared resources?

A

net share

74
Q

What command deletes a shared resource?

A

net share home$ /delete

75
Q

What command shares a directory and names it with a specific share name?

A

net share home$=c:\users\bob

76
Q

What command is used to add or remove network connections from a computer?

A

net use

77
Q

What command maps a network drive to an intended share?

A

net use (driveletter or *)[\\ip\sharename]

78
Q

What command deletes a mapped drive?

A

net use (driveletter) /del

79
Q

What command displays configuration information of server services?

A

net config server

80
Q

What command displays configuration information of workstation services?

A

net config workstation

81
Q

What command shows shares available on a specific computer?

A

net view \\computername/all

82
Q

What command displays local shares?

A

get-smbshare

83
Q

What command names a new share folder?

A

new-smbshare -name hello -path ‘c:\program files'

84
Q

What command deletes a share named “hello”?

A

remove-smbshare – name hello

85
Q

What command is used for creating a new Internet Information Services (IIS) website?

A

new-website

86
Q

What command adds specific types of objects to the Active Directory?

A

dsadd

87
Q

What command queries Active Directory Domain Services (AD DS) according to specified criteria?

A

dsquery

88
Q

What command modifies an existing object of a specific type in the Active Directory?

A

dsmod

89
Q

What command moves or renames a single object in a domain?

A

dsmove

90
Q

What command allows users to perform operations against an LDAP-compatible directory, such as Active Directory?

A

LDP

91
Q

What command adds or deletes a computer from a domain database?

A

net computer

92
Q

What command adds, displays, or modifies global groups in a domain?

A

net group

93
Q

What command adds one or more members to an Active Directory group?

A

Add-ADGroupMember

94
Q

What command enables or disables an Active Directory account?

A

Enable/Disable-ADAccount

95
Q

What command gets one or more Active Directory computers?

A

Get-ADComputer

96
Q

What command gets an Active Directory domain?

A

Get-ADDomain

97
Q

What command gets one or more Active Directory domain controllers?

A

Get-ADDomainController

98
Q

What command gets an Active Directory forest?

A

Get-ADForest

99
Q

What command gets one or more Active Directory groups?

A

Get-ADGroup

100
Q

What command gets the members of an Active Directory group?

A

Get-ADGroupMember

101
Q

What command gets one or more Active Directory Organizational Units (OUs)?

A

Get-ADOrganizationalUnit

102
Q

What command gets one or more Active Directory users?

A

Get-ADUser

103
Q

What command opens the Group Policy Management GUI?

A

MMC

104
Q

What command adds a group to the domain database?

A

net (groupname) group /add /domain

105
Q

What command adds a local group to the domain?

A

net localgroup (groupname) /add /domain

106
Q

What command opens the LDAP GUI?

A

ldp.exe

107
Q

What command opens the Kerberos setup tool?

A

ksetup.exe

108
Q

What command opens Process Explorer?

A

procexp.exe

109
Q

What command opens Process Monitor?

A

procmon.exe

110
Q

What command opens AutoRuns?

A

autoruns.exe

111
Q

What command opens TCP View?

A

tcpview

112
Q

What command adds or deletes a computer from a domain database?

A

net computer

113
Q

What command adds, displays, or modifies global groups in a domain?

A

net group

114
Q

What command adds one or more members to an Active Directory group?

A

Add-ADGroupMember

115
Q

What command enables or disables an Active Directory account?

A

Enable/Disable-ADAccount

116
Q

What command gets one or more Active Directory computers?

A

Get-ADComputer

117
Q

What command gets an Active Directory domain?

A

Get-ADDomain

118
Q

What command gets one or more Active Directory domain controllers?

A

Get-ADDomainController

119
Q

What command gets an Active Directory forest?

A

Get-ADForest

120
Q

What command gets one or more Active Directory groups?

A

Get-ADGroup

121
Q

What command gets the members of an Active Directory group?

A

Get-ADGroupMember

122
Q

What command gets one or more Active Directory Organizational Units (OUs)?

A

Get-ADOrganizationalUnit

123
Q

What command gets one or more Active Directory users?

A

Get-ADUser

124
Q

What command opens the Group Policy Management GUI?

A

MMC

125
Q

What command adds a group to the domain database?

A

net (groupname) group /add /domain

126
Q

What command adds a local group to the domain?

A

net localgroup (groupname) /add /domain

127
Q

What command opens the LDAP GUI?

A

ldp.exe

128
Q

What command opens the Kerberos setup tool?

A

ksetup.exe

129
Q

What command opens Process Explorer?

A

procexp.exe

130
Q

What command opens Process Monitor?

A

procmon.exe

131
Q

What command opens AutoRuns?

A

autoruns.exe