Monday, August 29, 2016

How to user Systeminfo Command by filter its information

By Systeminfo command you can get following information.

Computer name, OS version, OS configuration, OS type, Install Date, System uptime data, BIOS version, Available physical memory, Processor model, Hotfixes installed, Network cards information, Domain name of the computer, System Locale, Time Zone and many other details.
if we want to get any particular information we can use findstr command to filter out unwanted details--------------------------
To get system’s physical memory information
systeminfo | findstr /C:”Total Physical Memory”
To get System type from windows
systeminfo | findstr /C:”System type”
To find System locale
systeminfo | findstr /C:”System Locale”
To find system manufacturer
systeminfo | findstr /C:”System Manufacturer”
To find OS install date
systeminfo | findstr /C:”Install Date”
To find System uptime

systeminfo | findstr /C:”Up Time”



Systeminfo Syntax :
systeminfo[.exe] [/s Computer [/u Domain\User [/p Password]]] [/fo {TABLE|LIST|CSV}] [/nh]

Parameters

/s   Computer   Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u   Domain \ User   Runs the command with the account permissions of the user specified by User or Domain\User. The default is the permissions of the current logged on user on the computer issuing the command.
/p   Password   Specifies the password of the user account that is specified in the /u parameter.
/fo { TABLE | LIST | CSV Specifies the format to use for the output. Valid values are TABLELIST, and CSV. The default format for output is LIST.

/nh   Suppresses column headers in the output. Valid when the /fo parameter is set to TABLE or CSV.
The following examples show how you can use the systeminfo command:
systeminfo.exe /s srvmain
systeminfo.exe /s srvmain /u maindom\hiropln
systeminfo /s srvmain /u maindom\hiropln /p p@ssW23 /fo table

3 comments: