![]() ![]() (Get-WMIObject win32_operatingsystem) | Select OSArchitecture Microsoft Windows 11 Home Insider Preview Single Language|C:\WINDOWS|\Device\Harddisk1\Partition3 This command will display the name of the operating system in the Powershell window. (Get-WMIObject win32_operatingsystem) | Select Name You can qualify this Powershell directive with multiple filters to bring up the desired information. The serial number of the computer is also offered as part of the Powershell directive. This WMIObject directive brings in the version of Windows and the build number. The command output of this Powershell command is displayed below: We use a generic WMIObject to find operating system information on the computer. Using WmiObject to find operating system details WmiObject can be used to fetch system details as displayed hereunder. However, there are simpler Powershell directives that can provide the build number and Windows version information. I find the systeminfo command as the best command to run on a local or remote computer to get all the information in one place. Once you type this command, the command output will contain all the system information as per the image below: Once Powershell loads on the computer, use the systeminfo command to fetch OS version, build number and other details of the system in a short and concise format. The screen capture below shows pwsh in the search box. You can do so by using the ‘pwsh’ command in the command prompt or the search box. On your Windows 11 computer, launch Powershell. To use the command, we will follow the process below. Systeminfo /fo csv | ConvertFrom-Csv | select OS, System, Hotfix* | Format-List The command is shared below for your ready reference: The simplest command to fetch detailed information of a Windows computer is to use the systeminfo command. Using systeminfo to fetch OS version on Windows computer Using CimInstance to find operating system information.Using WmiObject to find operating system details.Using systeminfo to fetch OS version on Windows computer.W i n 32 _ Q u i ck F i 圎n g i n ee r i n g return a list of HotFixes installed on a computer. PS C:\> Get-WmiObject -Class Win32_LocalTime -ComputerName IND-DNS You can get local time from a computer using Win32_LocalTime class PS C:\ > Get-WmiObject -Class Win32_LogonSession -ComputerName IND-DNS1 W i n 32 _ L ogo nS e ss i o n gives you the session information on a computer. PS C:\ > Get - WmiObject -Class Win32_LogicalDisk -Filter “DriveType=3” -ComputerName IND-DNS1 PS C:\> Get - WmiObject -Class Win32_LogicalDisk -ComputerName IND-DNS1 You can use filters such as “DriveType” to get the space information of a specific drive. W i n 32 _ L og i ca l D i s k will return all the available disk on a local computer. PS C:\> Get-WmiObject -Class Win32_Desktop -ComputerName IND-DNS1 W i n 32 _ De s k t op class returns the information about the desktops on your local computer. PS C:\> Get-WmiObject -Class Win32_BIOS -ComputerName IND-DNS1 Win32_BIOS class will return complete information about your system BIOS. PS C:\> Get-WmiObject -Class -ComputerName IND-DNS1 You can retrieve Processor information using Win32_Processor class. Win32_OperatingSystem -ComputerName IND-DNS1 Win32_OperatingSystem provides version and Service Pack information of your Operating System. List Op e r a t i n g S y s t e m (OS) Version Information PS C:\ > Get-WmiObject -Class Win32_ComputerSystem You can get the Computer Model Information using Win32_ComuterSystem class. L i s t C o m p u t e r Manufacturer and Model ![]() The below examples will provide you a better understanding of how we collect information about a computer system using Get-WmiObject cmdlet. We use Get-WmiObject cmdlet to collect Information about computers in PowerShell. ![]()
0 Comments
Leave a Reply. |