![]() ![]() System Information might be the best place to look if you require a detailed specification sheet for your monitor. ![]() You’ll find all the information you need about the monitor. If you need to check classes in another namespace, you can always use the Namespace parameter along with that as well. Enter wmic desktopmonitor get Caption, MonitorType, MonitorManufacturer, Name and hit the Enter key. Using Get-WmiObject -List, you’ll be able to see all of the classes in the root\cimv2 namespace. Using Get-WmiObject, we can query all of the available classes in a namespace. There are thousands of classes, and you probably don’t know which class you’d like to use yet. All you’ll need to know is the namespace (probably root\cimv2 which is default) and the WMI class where the information you’re looking for is located. Discovering Classes with Get-WmiObjectĪt it’s most basic this cmdlet can query information from a local computer. wmic DISKDRIVE get Caption,size,InterfaceType. This cmdlet is one of a couple in PowerShell that can work with the WMI repository to make managing lots of systems a whole lot easier. get Name, Manufacturer, Model, InterfaceType, MediaLoaded, MediaType. wmic DESKTOPMONITOR where Status’ok’ get ScreenHeight,ScreenWidth. I tried writting it two different ways and it did not seem to put the second Get- after it ran the first. Not only reading, by leveraging WMI methods, Get-WmiObject can also run actions on local or remote systems as well. I had taken your example and worked it for WinDesktopMonitor as well and had issue when trying to run both on the same. How can I get the manufacturer and model of my monitor from within Windows, without having to disconnect and manhandle a 27" inch monitor looking for a label that may not exist, or download any third-party software? It seems odd that there's no native, software-only solution to do this on Windows 7.Whenever we need to discover just about any information about a Windows computer and it’s components, we can do so with Get-WmiObject. It isn't a duplicate of the proposed question because: This question was initially claimed to be a duplicate of another question. The proposed question is specific to laptops. The proposed question is incredibly broad, seeking to cover all (laptop) hardware with a single solution. My question, by contrast, is asking about a piece of hardware specific to desktop computers. I did so knowing that it is notoriously hard for Windows 7 users to obtain specifics for said piece of hardware with a native software solution. This is evidenced by the fact that none of the answers to the supposed original question correctly answer mine, despite said question having existed since 2009, and by the fact that the only correct answer to my question is an obscure command-line one. The proposed question doesn't specify native-only solutions, which is an important requirement for me and many other users who want to be able to accomplish such a relatively simple task without downloading or installing additional software. I accepted the current answer because it is the right solution to the question I asked, even though it doesn't work in my specific instance due to bad EDID values. Get Manufacturer and Model of Monitor(s) via Command Line For that specific issue, I created a follow-up question here. You can use wmic for the task of getting the monitor make and model information from a Windows system. #RESET THE FOLLOWING VARIABLES FOR FOLLOWING IF-THEN LOGIC PROCESSES ::ASCII.GetString($args)įorEach ($Monitor in Get-WmiObject WmiMonitorID -Namespace root\wmi) #Write-Log -Path $LogFile -Message "SUCCESS: PINGTEST: Able to ping $ComputerName" -Level Info SpiceWorks - PowerShell Get Monitor Serial Number, etc $LogFile = "C:\test\monitors.txt" It's important to run the command prompt (and PowerShell) elevated as administrator to ensure this works properly.Ĭommand Example wmic desktopmonitor get Caption, MonitorType, MonitorManufacturer, Name I tested and confirmed this works with both Windows 7 and Windows 10.įurthermore, if you need to get the serial number, I've included a resource below that has some PowerShell script examples that I also confirmed works with both Windows 7 and Windows 10. ![]()
0 Comments
Leave a Reply. |