Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  Desktop  Monitor  Properties  

 Content of List Desktop Monitor Properties.vbs
MD5 Hash: F6C26C6A2716D0A19E57E2653C7700AF
' 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 ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a