VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get the information about the Display Controller using Win32_DisplayControllerConfiguration WMI Cla

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 Controller using Win32_DisplayControllerConfiguration WMI Class

Rate Get the information about the Display Controller using Win32_DisplayControllerConfiguration WMI Cla



'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_DisplayControllerConfiguration.txt", ForAppending, True)
TextFile.WriteLine "Script for Win32_DisplayControllerConfiguration Class by Karthikeyan"
TextFile.WriteLine 
Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2")
Set Items = WMIService.ExecQuery("Select * from Win32_DisplayControllerConfiguration",,48)
For Each SubItems in Items
TextFile.WriteLine "********************************************************************"
    TextFile.WriteLine "BitsPerPixel: " & SubItems.BitsPerPixel
    TextFile.WriteLine "Caption: " & SubItems.Caption
    TextFile.WriteLine "ColorPlanes: " & SubItems.ColorPlanes
    TextFile.WriteLine "Description: " & SubItems.Description
    TextFile.WriteLine "DeviceEntriesInAColorTable: " & SubItems.DeviceEntriesInAColorTable
    TextFile.WriteLine "DeviceSpecificPens: " & SubItems.DeviceSpecificPens
    TextFile.WriteLine "HorizontalResolution: " & SubItems.HorizontalResolution
    TextFile.WriteLine "Name: " & SubItems.Name
    TextFile.WriteLine "RefreshRate: " & SubItems.RefreshRate
    TextFile.WriteLine "ReservedSystemPaletteEntries: " & SubItems.ReservedSystemPaletteEntries
    TextFile.WriteLine "SettingID: " & SubItems.SettingID
    TextFile.WriteLine "SystemPaletteEntries: " & SubItems.SystemPaletteEntries
    TextFile.WriteLine "VerticalResolution: " & SubItems.VerticalResolution
    TextFile.WriteLine "VideoMode: " & SubItems.VideoMode
TextFile.WriteLine "********************************************************************"
Next
TextFile.Close
OutFile.Run "notepad.exe c:\Win32_DisplayControllerConfiguration.txt",1,True


Download this snippet    Add to My Saved Code

Get the information about the Display Controller using Win32_DisplayControllerConfiguration WMI Cla Comments

No comments have been posted about Get the information about the Display Controller using Win32_DisplayControllerConfiguration WMI Cla. Why not be the first to post a comment about Get the information about the Display Controller using Win32_DisplayControllerConfiguration WMI Cla.

Post your comment

Subject:
Message:
0/1000 characters