Commands Flashcards
Skibidi (131 cards)
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