Skip to content

Instantly share code, notes, and snippets.

@bitsydoge
Last active November 9, 2023 16:34
Show Gist options
  • Save bitsydoge/31afe80cc86889306eb71bc65ac7e843 to your computer and use it in GitHub Desktop.
Save bitsydoge/31afe80cc86889306eb71bc65ac7e843 to your computer and use it in GitHub Desktop.
One line system info
clear;"OS: $((gcim Win32_OperatingSystem).Caption.Trim()) ($(([System.Environment]::OSVersion.Version).ToString()))";"Host: $env:COMPUTERNAME";"Shell: $PSHOME";"UP: $((gcim Win32_OperatingSystem).LastBootUpTime)";"CPU: $((gcim Win32_Processor).Name)";"GPU: $((gcim Win32_VideoController).Name)";"RAM: $(([math]::Round((gcim Win32_ComputerSystem | select -ExpandProperty TotalPhysicalMemory) / 1GB))) GB"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment