SYSTEMINFO

List system configuration.

Syntax
      SYSTEMINFO [/S system [/U username [/P [password]]] ]
                    [/FO format] [/NH]

Key:
    /S  system         Remote system to connect to.
    /U  [domain\]user  User context under which to execute.
    /P  [password]     Password for the given user (will prompt if omitted)
    /FO format         Output format: TABLE, LIST or CSV
    /NH                No "Column Header" in the Table/CSV output

The output includes OS configuration, security info, product ID, RAM, disk space, and network cards.
On a server you may run out of CMD window buffer, to avoid this either increase the window buffer size or redirect the output to a file.

Examples

SYSTEMINFO
SYSTEMINFO |find "Total Physical Memory:"
SYSTEMINFO |find "me:  "
SYSTEMINFO /S computer64
SYSTEMINFO /S computer64 /FO CSV /NH >>pcaudit.csv

In PowerShell we can convert the CSV ouptut into an object:
$objects = systeminfo.exe /FO CSV | ConvertFrom-Csv
$objects.'Available Physical Memory'

This output will be localised, on English systems the property names will be in English etc, to normalize these for international use see here.

“plus ça change, plus c'est la même chose (The more things change, the more they are the same.)” ~ Jean-Baptiste Alphonse Karr 1849.

Related:

MSINFO32 - Windows System Information.
WMIC - WMI Commands.
PsGetSid - Display the SID of a computer or a user.
Powershell: Get-ComputerInfo - Get system and operating system properties.


 
Copyright © SS64.com 1999-2020
Some rights reserved