SSH Command in Windows with examples

System information commands in Windows

Find out which Windows and which machine you are on.

#systeminfo

Full system report

Syntaxsysteminfo
  • systeminfoCMD

    OS version, memory, hotfixes and network cards

  • systeminfo | findstr /B /C:"OS"CMD

    Only the OS lines

#ver

Windows version

Syntaxver
  • verCMD

    Prints the version number

#hostname

Computer name

Syntaxhostname
  • hostnameCMD

    The computer's name

#date / time

Date and time

Syntaxdate /t | time /t
  • date /tCMD

    Show the date

  • time /tCMD

    Show the time

  • Get-Date -Format "yyyy-MM-dd HH:mm"PowerShell

    Formatted date and time

#set

Environment variables

Syntaxset [NAME=value]
  • setCMD

    List all variables

  • set PATHCMD

    Show the program search path

  • set NAME=valueCMD

    Set a variable for this window only

  • setx NAME valueCMD

    Save a variable permanently

  • $env:PATH -split ';'PowerShell

    The path, one folder per line

#driverquery

Installed drivers

Syntaxdriverquery
  • driverqueryCMD

    List drivers

#Get-ComputerInfo

Details in PowerShell

SyntaxGet-ComputerInfo
  • Get-ComputerInfo | Select WindowsProductName, OsVersion, CsTotalPhysicalMemoryPowerShell

    The essentials

#msinfo32 / winver

Graphical info windows

Syntaxmsinfo32
  • msinfo32CMD

    System Information window

  • winverCMD

    The About Windows window

#doskey / Get-History

Command history

Syntaxdoskey /history
  • doskey /historyCMD

    List commands typed in this CMD window

  • Get-HistoryPowerShell

    Commands in this PowerShell session

TipPress F7 in CMD for a clickable list of your recent commands.

Run these commands with SSH Command

SSH Command is a desktop app for Mac, Windows and Linux that puts a real terminal, SFTP file panes, a sudo switch and a searchable Linux command finder in one window. Type what you want to do, and send the command to your server with one click.

Download free Linux commands with examples SFTP & FTP client