Identification

Users

  • whoami: username
  • whoami /groups: current user groups
  • whoami /priv: current user privileges
  • Get-LocalGroup+net localgroup: list groups
  • Get-LocalUser: list users
  • net localgroup users: list users in the group "users"
  • net user username: info about a user
  • net localgroup administrators: list administrators

Machine

  • ver (cmd-only): see Windows version
  • systeminfo: info about the system (OS+Product+System info...)
  • hostname: info about the host (ex: website-dev -> role of the user)
  • netstat: see real-time networking requests
  • netstat -ano: list connections
  • ls Env:: see environment variables
  • wmic product get name,version,vendor: list software installed using "normal" means, e.g., using the OS