by Karthikeyan (187 Submissions)
Category: Miscellaneous
Compatability: VB Script
Difficulty: Unknown Difficulty
Originally Published: Thu 29th July 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Get the information about the Display using Win32_DisplayConfiguration WMI Class
'Generated using 'WMI Win32 Class Autoscript Generator' - Developed by Karthikeyan
'Homepage: http://www.geocities.com/marskarthik
On Error Resume Next
Computer = "."
Set OutFile = CreateObject("WScript.Shell")
Const ForAppending = 2
Set FileSystem = CreateObject("Scripting.FileSystemObject")
Set TextFile = FileSystem.OpenTextFile ("c:\Win32_DisplayConfiguration.txt", ForAppending, True)
TextFile.WriteLine "Script for Win32_DisplayConfiguration Class by Karthikeyan"
TextFile.WriteLine
Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2")
Set Items = WMIService.ExecQuery("Select * from Win32_DisplayConfiguration",,48)
For Each SubItems in Items
TextFile.WriteLine "********************************************************************"
TextFile.WriteLine "BitsPerPel: " & SubItems.BitsPerPel
TextFile.WriteLine "Caption: " & SubItems.Caption
TextFile.WriteLine "Description: " & SubItems.Description
TextFile.WriteLine "DeviceName: " & SubItems.DeviceName
TextFile.WriteLine "DisplayFlags: " & SubItems.DisplayFlags
TextFile.WriteLine "DisplayFrequency: " & SubItems.DisplayFrequency
TextFile.WriteLine "DitherType: " & SubItems.DitherType
TextFile.WriteLine "DriverVersion: " & SubItems.DriverVersion
TextFile.WriteLine "ICMIntent: " & SubItems.ICMIntent
TextFile.WriteLine "ICMMethod: " & SubItems.ICMMethod
TextFile.WriteLine "LogPixels: " & SubItems.LogPixels
TextFile.WriteLine "PelsHeight: " & SubItems.PelsHeight
TextFile.WriteLine "PelsWidth: " & SubItems.PelsWidth
TextFile.WriteLine "SettingID: " & SubItems.SettingID
TextFile.WriteLine "SpecificationVersion: " & SubItems.SpecificationVersion
TextFile.WriteLine "********************************************************************"
Next
TextFile.Close
OutFile.Run "notepad.exe c:\Win32_DisplayConfiguration.txt",1,True
No comments have been posted about Get the information about the Display using Win32_DisplayConfiguration WMI Class. Why not be the first to post a comment about Get the information about the Display using Win32_DisplayConfiguration WMI Class.