SYSTEMINFO – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
List system configuration.
SYSTEMINFO [/S system [/U username [/P [password]]] ]
[/FO format] [/NH]
/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.
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.