![]() Write-Warning -Message "An error occurred on $($p.OriginInfo). ![]() Aside from that you can also specify the paths on the fly like so (If you just want HTML report): Powershell./Monitor.ps1 -Test -HTMLReport -HTMLOutputFile 'C:\Test\Output.htm'. $Monitors = Get-CimInstance -ClassName WmiMonitorID -Namespace root/WMI -Property ManufacturerName, UserFriendlyName, ProductCodeID, SerialNumberID, WeekOfManufacture, YearOfManufactureįoreach ( $Monitor in $Monitors | Where-Object ) Then all you need to do is specify the -Test switch to run it against the local computer only (your example will work for that). Don't have any other brands to see if they return manufacturer and model as well from this value, but worth a check if you have other brands. Use the following PowerShell script to get the current screen. Monitors Get-WmiObject WmiMonitorID -Namespace rootwmi LogFile 'd:monitors. Place Monitor-Information. Taking the UserFriendlyName and converting it from ASCII, it gave the name and model for the Dell monitors and HP monitors on the few machines I tested this script on (i.e. $BIOS = Get-CimInstance -ClassName Win32_BIOS -Property SerialNumber The Get-DisplayResolution WMI cmdlet shows the display resolution for Windows 10 computers. ![]() $ComputerInfo = Get-CimInstance -ClassName Win32_ComputerSystem -Property Name, Manufacturer, Model
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |