The Get-Computerinfo cmdlet gathers a variety of information about the computer it is running on. In addition to information about running processes, the number of users or the currently used logon server in the active directory, there is a lot of information about the existing hardware. With these you can get a short, quick overview of the equipment of the PC or notebook.
With the following example Powershell command, you get the following information:
- CsManufacturer -> Computer manufacturer
- CsModel -> Manufacturer’s computer model
- CsName -> Computername
- CsPhyicallyInstalledMemory -> Installed memory
- CsProcessors -> Installed CPU
- CsNumberOfProcessors -> Number of CPUs
- CsNumberOfLogicalProcessors -> Number of logical processors
- WindowsInstallDateFromRegistry -> Windows installation date
- WindowsProductName -> Version of the installed operating system
- OsArchitecture -> 32bit or 64bit operating system
The command for this is:
Get-ComputerInfo | fl CsManufacturer,CsModel,CsName, `
CsPhyicallyInstalledMemory,CsProcessors,CsNumberOfProcessors, `
CsNumberOfLogicalProcessors,WindowsInstallDateFromRegistry, *
WindowsProductName,OsArchitecture