![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Desktop Monitor Properties
|
||
' Description: Returns information about the desktop monitor connected to a computer.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_DesktopMonitor") For Each objItem in colItems Wscript.Echo "Availability: " & objItem.Availability Wscript.Echo "Bandwidth: " & objItem.Bandwidth Wscript.Echo "Description: " & objItem.Description Wscript.Echo "Device ID: " & objItem.DeviceID Wscript.Echo "Display Type: " & objItem.DisplayType Wscript.Echo "Is Locked: " & objItem.IsLocked Wscript.Echo "Monitor Manufacturer: " & objItem.MonitorManufacturer Wscript.Echo "Monitor Type: " & objItem.MonitorType Wscript.Echo "Name: " & objItem.Name Wscript.Echo "Pixels Per X Logical Inch: " & objItem.PixelsPerXLogicalInch Wscript.Echo "Pixels Per Y Logical Inch: " & objItem.PixelsPerYLogicalInch Wscript.Echo "PNP Device ID: " & objItem.PNPDeviceID Wscript.Echo "Screen Height: " & objItem.ScreenHeight Wscript.Echo "Screen Width: " & objItem.ScreenWidth Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |