Commands Flashcards
Skibidi
What command displays information about the computer and its OS?
systeminfo
What command retrieves system information from a remote machine?
systeminfo /s (computername)
What command allows you to view the version via CLI?
ver
What command allows you to view the visible network adapters?
get-netadapter
What command displays IPv4, IPv6, subnet masks, and default gateway for all adapters?
ipconfig
What command displays all users on your workstation?
net user
What command creates a new user?
net user (name) (password) /add
What command displays lists of groups on your workstation?
net localgroup
What command creates a new group?
net localgroup groupname /add
What command gets all commands?
get-command
What command gets all available cmdlets with a specific name?
get-help (cmd name)
What command displays name, status, and description for local users?
get-localuser
What command displays all local security groups?
get-localgroup
What command displays users from a local group?
get-localgroupmember (-group)
What command adds users to a local group?
get-localgroupmember (-groupname) (-member) (username)
What command displays your Security Identifier (SID)?
whoami /user
What command displays the SID for every user on the domain?
wmic useraccount get name,side
What command finds a specified user’s SID?
get-localuser | where-object {$_.Name -eq “talayeh.matthews009”} |select-object name
What command displays your SID?
get-wmiobject win32_useraccount
What command displays everyone’s SIDs?
get-wmiobject win32_useraccount | select Name,*SID
What command displays current settings for password and logon limitations?
net accounts
What command sets the account minimum password length to eight characters?
net account /minpwlen:8
What command opens the local security policy GUI?
secpol
What command sets the maximum number of days a password is valid?
net accounts /maxpwage:30
What command opens the registry editor?
regedit
What command displays an object’s value in the registry?
reg query
What command adds an object or value to the registry?
reg add
What command removes an object from the registry?
reg delete
What command displays the keys inside HKLM:\?
get-childterm -path hklm:\
What command displays all services that are running, stopped, or paused?
get-service (-computername)
What command starts a service?
start-service (servicename)
What command stops a service?
stop-service (servicename)
What command is used to start, stop, suspend, or change properties of a service?
set-service -name (servicename) -startuptype (automatic/manual)
What command shows a list of running services with their Process ID (PID)?
tasklist /svc
What command is used to view services running on a remote machine?
tasklist /svc /s (computername/ip)
What command filters the tasklist output for specific names, values, or operators?
tasklist /fi (example: tasklist /fi “PID eq 7360”)
What command is used to start or list running network services?
net start
What command is used to stop running network services?
net stop
What command shows all running processes?
sc query
What command queries the configuration information for services?
sc qc
What command starts a service?
sc start
What command stops a service?
sc stop
What command starts a service on a remote machine?
sc \\servername start
What command shows all running processes?
sc.exe query
What command queries the configuration information for services?
sc.exe qc
What command starts a service?
sc.exe start
What command stops a service?
sc.exe stop
What command starts a service on a remote machine?
sc.exe \\servername start
What command displays what file system is formatted on your drive?
fsutil fsinfo volumeinfo C:
What command shows the Master File Table (MFT) information for a file?
fsutil file layout (/v filename)
What command allows you to query logs and specify what you want to look for?
get-winevent -logname security -maxevent 5 |ft wrap
What command enables auditing?
Auditpol
What command retrieves the system policy, per-user policy auditing option, and audit security descriptor object?
auditpol /get
What command sets the per-user audit policy, system audit policy, or auditing options?
Auditpol /set
What command searches for a specific log?
get-help (log)
What command displays scheduled tasks?
schtasks /?
What command creates a new scheduled task?
schtasks /create
What command deletes a scheduled task by name?
schtasks /delete
What command changes the task that is run but not the name?
schtasks /change
What command displays current scheduled tasks?
schtasks /query
What command starts a Windows PowerShell background task on the local computer?
new-sheduledtask
What command is a diagnostic tool for NetBIOS over TCP/IP and allows you to view information and troubleshoot NetBIOS issues?
nbtstat
What command lists local NetBIOS names?
nbtstat -n
What command lists remote machines’ NetBIOS names by using either name or IP?
nbtstat -a
What command displays information that you can use to diagnose Domain Name System (DNS) infrastructure?
nslookup
What command queries your DNS records?
get-lookup
What command queries DNS server resource records?
get-DnsServerResourceRecord
What command allows for a temporary session to execute commands on a remote machine and then exits?
Enter-Pssession
What command runs scripts on multiple machines?
Invoke-command
What command displays UDP and TCP statistics?
netstat -an
What command displays only TCP statistics?
netstat -nap tcp
What command displays only TCP statistics and provides a Process ID (PID)?
netstat -anon tcp
What command shows shared resources on the local machine and also enables you to create shared resources?
net share
What command deletes a shared resource?
net share home$ /delete
What command shares a directory and names it with a specific share name?
net share home$=c:\users\bob
What command is used to add or remove network connections from a computer?
net use
What command maps a network drive to an intended share?
net use (driveletter or *)[\\ip\sharename]
What command deletes a mapped drive?
net use (driveletter) /del
What command displays configuration information of server services?
net config server
What command displays configuration information of workstation services?
net config workstation
What command shows shares available on a specific computer?
net view \\computername/all
What command displays local shares?
get-smbshare
What command names a new share folder?
new-smbshare -name hello -path ‘c:\program files'
What command deletes a share named “hello”?
remove-smbshare – name hello
What command is used for creating a new Internet Information Services (IIS) website?
new-website
What command adds specific types of objects to the Active Directory?
dsadd
What command queries Active Directory Domain Services (AD DS) according to specified criteria?
dsquery
What command modifies an existing object of a specific type in the Active Directory?
dsmod
What command moves or renames a single object in a domain?
dsmove
What command allows users to perform operations against an LDAP-compatible directory, such as Active Directory?
LDP
What command adds or deletes a computer from a domain database?
net computer
What command adds, displays, or modifies global groups in a domain?
net group
What command adds one or more members to an Active Directory group?
Add-ADGroupMember
What command enables or disables an Active Directory account?
Enable/Disable-ADAccount
What command gets one or more Active Directory computers?
Get-ADComputer
What command gets an Active Directory domain?
Get-ADDomain
What command gets one or more Active Directory domain controllers?
Get-ADDomainController
What command gets an Active Directory forest?
Get-ADForest
What command gets one or more Active Directory groups?
Get-ADGroup
What command gets the members of an Active Directory group?
Get-ADGroupMember
What command gets one or more Active Directory Organizational Units (OUs)?
Get-ADOrganizationalUnit
What command gets one or more Active Directory users?
Get-ADUser
What command opens the Group Policy Management GUI?
MMC
What command adds a group to the domain database?
net (groupname) group /add /domain
What command adds a local group to the domain?
net localgroup (groupname) /add /domain
What command opens the LDAP GUI?
ldp.exe
What command opens the Kerberos setup tool?
ksetup.exe
What command opens Process Explorer?
procexp.exe
What command opens Process Monitor?
procmon.exe
What command opens AutoRuns?
autoruns.exe
What command opens TCP View?
tcpview
What command adds or deletes a computer from a domain database?
net computer
What command adds, displays, or modifies global groups in a domain?
net group
What command adds one or more members to an Active Directory group?
Add-ADGroupMember
What command enables or disables an Active Directory account?
Enable/Disable-ADAccount
What command gets one or more Active Directory computers?
Get-ADComputer
What command gets an Active Directory domain?
Get-ADDomain
What command gets one or more Active Directory domain controllers?
Get-ADDomainController
What command gets an Active Directory forest?
Get-ADForest
What command gets one or more Active Directory groups?
Get-ADGroup
What command gets the members of an Active Directory group?
Get-ADGroupMember
What command gets one or more Active Directory Organizational Units (OUs)?
Get-ADOrganizationalUnit
What command gets one or more Active Directory users?
Get-ADUser
What command opens the Group Policy Management GUI?
MMC
What command adds a group to the domain database?
net (groupname) group /add /domain
What command adds a local group to the domain?
net localgroup (groupname) /add /domain
What command opens the LDAP GUI?
ldp.exe
What command opens the Kerberos setup tool?
ksetup.exe
What command opens Process Explorer?
procexp.exe
What command opens Process Monitor?
procmon.exe
What command opens AutoRuns?
autoruns.exe