Code: ------------------------------------------------------------------------------------------------------------------- Query Tool GUI v0.10.6.10 ------------------------------------------------------------------------------------------------------------------- Log Date {UTC}: 02/12/2023 -- 19:16 {24-hour} Some results may be shortened to fit the output stage, such as RAM information or storage drive names. This is the postable report that does not contain full serial or sensitive information. GUI Font Used : Lucida Console Size: 11 =================================================================================================================== Operating System Information =================================================================================================================== Installation Type : Client Name : Microsoft Windows 10 Pro Edition Name {Registry} : Professional Composition Name {Registry} : Enterprise OS/CPU Architecture : CPU and OS is 64 bit Build : 10.0.19045 {UBR:2486} {22H2} Initial Full Build Information : 19041.1.amd64fre.vb_release.191206-1406 Setup/Install Locale : English (United States) GeoID Nation ISO Location : United States Current Keyboard Language : English - United States {1033} Current Keyboard Name : Enhanced (101- or 102-key) Number of Function Keys : 12 Keyboard Description : Standard PS/2 Keyboard Installed/Available Languages : en-US Stock Keeping Unit {SKU} : 48 Experience Pack : 120.2212.4190.0 Installation Date : 1/29/2023 at 14:25 PM {UTC} Shipped with Reserved 7GB : Yes Dirty Shutdown Count : N/A Build Branch : vb_release {Vibranium} Product ID : 00330-80214-45488-AA837 {Extended: 03612-03308-021-445488-00-1033-19045.0000-0292023} Time Zone Data : India Standard Time Hours offset from GMT : 5.5 Daylight Saving In Effect : -- Daylight Adjust Clock Mode : Enabled/Checked Upgrade or Clean Installation : Clean Previous OS Upgraded From : N/A StorageSense Policy : Disabled {0x0} Number of Licensed Users : 1 Data Execution Prevention : OptIn/Default {Ref: 2} DEP Available : Yes DEP 32Bit Applications : Yes DEP Drivers : Yes DEP Support Policy : Enabled for OS Kernel, essential binaries and all Windows-based Services. Clipboard History Service : Manual {Value:3} Clipboard History : Disabled {0} Allow Cross Device History : Enabled {Default} Allow Clipboard History : Enabled {Default} Current Power Policy Used : Home/Office Desk Power Plans Available : Balanced Only {Others may be 'hidden'} Current Active Power Plan : Balanced Long File Paths Enabled : No {0x0} NTFS is not set to allow file paths greater than 260 characters Part of a Domain : No Domain/Device Role : Standalone Workstation {Ref: 0} Portable OS {Win to Go} : No Feature Update Status : Not paused Quality Update Status : Not paused WSH Availability Status : Windows Scripting Host is not restricted. {All Users} WSH 'DisplayLogo' Value : Enabled {1} [All Users] HVCI Protection Status : N/A Download Over Metered Internet : Undefined Exclude Drivers from MS/WU : Undefined Pointing Device {Mouse} : USB Input Device Hypervisor Present/Installed : No Virtual Machine Data : This computer does not appear to be a virtual machine Last Boot Up Date/Time {UTC} : 01/29/2023 19:54:56 Windows Key 1 Installed : X2FC6 (Last 5 digits shown) Windows DpID4 Installed : X2FC6 (Last 5 digits shown) Windows Default Installed : 8HV2C (Last 5 digits shown) Windows Default4 Installed : 8HV2C (Last 5 digits shown) TPM Information : Active : Yes, Enabled : Yes, Owned : Yes, Version : 2.0, Vendor : Nuvoton Technology =============== Windows 11 Checks =============== Checked for W11 Target Upgrade : No Target Build Number : N/A Device is OEM Specific : N/A DirectX 12 Detected : N/A Device is Genuine : N/A Touch Capable Hardware : N/A 22H2 UpgradeExperience {1} : N/A 22H2 UpgradeExperience {2} : N/A 22H2 UpgEx Red Fail Reason Info : N/A Bypass TPM Check : N/A Bypass Secure Boot Check : N/A Bypass RAM Check : N/A Allow W11 WU Upgrade : N/A Red Fail Reason Notes: If any listed then those are not compatible. On the W11 checks, if 'N/A' is shown then the data may not of been fully compiled by the OS or via WU yet. =================================================================================================================== Booted System Drive Partition Information =================================================================================================================== Drive Type : SSD BUS Type : SATA Total Space : 79.89 GB Free Space : 55.04 GB Partition Type : GPT Firmware Boot Type : UEFI Mode {R:1} Secure Boot Status : Enabled [Ref:1] File System : NTFS System Drive Letter : C: Interface Information : What mode an interface is in IDE Controller Mode : Advanced Host Controller Interface {AHCI} SCSI Controller Mode : Microsoft Storage Spaces Disk and Partition Information : Driveletter | Disk #, Partition # | Model Name {50 Chars max} | Size 'GB' \\.\PHYSICALDRIVE0 C: | Disk #0, Partition #1 | WDC WDS480G2G0A-00JH30 | 79.89 GB \\.\PHYSICALDRIVE0 D: | Disk #0, Partition #2 | WDC WDS480G2G0A-00JH30 | 367.13 GB Drive letters/Partitions are shown as they are defined via the connected ports in the BIOS. Partitions without Drive letters assigned are not shown. =================================================================================================================== Memory Information =================================================================================================================== Total Physical : 8251224 KB (7.87 GB) Available Physical : 6502524 KB (6.2 GB) Total Page Size : 10217304 KB (9.74 GB) Available Page Size : 8628172 KB (8.23 GB) Total Virtual Size : 4194176 KB (4 GB) Available Virtual : 4002528 KB (3.82 GB) Memory Type : DDR4 {26} Memory Error Correction : Non-ECC Memory Slots Fitted : 2 Memory Slots Used : 2 Memory Slots Free : 0 Motherboard's Max Memory : 33554432 KB (32 GB} DIMM Information {First Eight} : DIMM A 4096MB @ 2400MHz DIMM B 4096MB @ 2133MHz =================================================================================================================== Graphics Information =================================================================================================================== Adaptor Name : Intel(R) HD Graphics 520 Adaptor DACType : Internal {iGPU} Adaptor Driver Information : 30.0.101.1340 {2022/02/03} Adaptor Status : Active Adaptor Name : Not Detected Adaptor DACType : N/A Adaptor Driver Information : N/A Adaptor Status : Inactive Virtual Desktop Resolution : 1366 x 768 Bits Per Pixel : 32 Video Mode Description : 1366 x 768 x 4294967296 colors {Ref:1} Some values may not be accurate due to 32 bit API limitations. =================================================================================================================== Network Adaptor Information =================================================================================================================== Adaptor 1 Name : Realtek PCIe GBE Family Controller Connection Status : Media Disconnected MAC Address : 98:40:BB:xx:xx:00 Adaptor 2 Name : Qualcomm QCA9377 802.11ac Wireless Adapter Connection Status : Connected MAC Address : 90:CD:B6:xx:xx:6F Adaptor 3 Name : Bluetooth Device (Personal Area Network) Connection Status : Media Disconnected MAC Address : 90:CD:B6:xx:xx:70 =================================================================================================================== Processor 1 Information =================================================================================================================== Name : Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz Architecture {Bits} : 64 L2 Cache Size {MB} : 512 L3 Cache Size {MB} : 3072 Current / Max Speed {MHz} : 2300 / 2300 {Not Turbo Speed} Physical Cores : 2 Logical Cores : 4 Processor Id : 0xBFEBFBFF000406E3 Virtualization Mode : Enabled Manufacturer : GenuineIntel [Intel] Description : Intel64 Family 6 Model 78 Stepping 3 Motherboard Connection : U3E1 OS Loaded Microcode Revision : 0x00000000EC000000 Bios Microcode Revision : 0x00000000EC000000 Processor Family : 206 Sockets/CPU's Present : 1 Feature Set : 0x000000003D1B3FFF Motherboard Connection is based on a OS internal database, MS may not have updated it. Microcode registry values are converted from binary to hexadecimal, not reliable for all devices. =================================================================================================================== DMI/BIOS Information =================================================================================================================== System Manufacturer : Dell Inc. System Product Name : Vostro 15-3568 BaseBoard Manufacturer : Dell Inc. BaseBoard Product : 0D70P6 BaseBoard Version : A00 PC System Type : Mobile {Ref: 2} BIOS Vendor : Dell Inc. BIOS Release Date : 12/15/2021 BIOS Version : 3.11.0 Primary BIOS : Yes SMBIOS Present : Yes SMBIOS Version : 3.1 SLIC/BIOS Data : DELL - 1072009 Valid SLIC Name : Dell {See notes below} Possible Brand Theme : Dell {System Manufacturer} SLIC Table Status : SLIC table with valid marker present {v2.1} {See notes below} Emulated SLIC : Not required/used for this OS MSDM Key Description : No MSDM key Description found MSDM Key Detected : Not Present MSDM Key OS Version/Edition : N/A Notes : When in UEFI mode the SLIC information may not be shown fully as it may be partially 'hidden' by the OEM/BIOS. =================================================================================================================== Miscellaneous Information =================================================================================================================== Which MRP Version Used : N/A Wallpaper Style : Fill image to display resolution Current Theme Used : aero.theme Installed Dot Net Frameworks : 2.0 3.0 3.5 4.8 4.0 Installed Powershell Versions : 1.0, 2.0, 3.0, 4.0, 5.0, 5.1 Security Product Name{s} : No Security Installed Defender Tamper Protection : Disabled Defender Service Status : Disabled Defender Code Integrity Mode : N/A Defender Credential Guard : Disabled Windows Firewall Service State : Running {Reg: Auto} Windows Activation Status : Activated Windows Licence Reason : Digital Store Licence Windows Product Key Channel : Retail {RETAIL} with HWID {R:PKC} Device has KMS Enabled : No KMS Auto Renewal (hook) : No MS Office {MSI/Traditional} : Not Detected C2R MS Office : Not Detected C2R Excluded Apps : N/A C2R Last Update Channel : N/A C2R Office Activation Status : N/A C2R Partial Product Key : N/A Office Reason Information : No reason information to show/No Issues Office MAK/KMS Information : No MAK or KMS activation detected ------------------------------------------------------------------------------------------------------------------- End of Report -------------------------------------------------------------------------------------------------------------------
Working on a few changes/additions to the GUI QT - can you spot them? Spoiler: GUI QT - Preview Log {so far} Code: ------------------------------------------------------------------------------------------------------------------- Query Tool GUI v0.10.6.11 ------------------------------------------------------------------------------------------------------------------- Log Date {UTC}: 02/14/2023 -- 10:56 {24-hour} Some results may be shortened to fit the output stage, such as RAM information or storage drive names. This is the postable report that does not contain full serial or sensitive information. GUI Font Used : Lucida Console Size: 11 =================================================================================================================== Operating System Information =================================================================================================================== Installation Type : Client Name : Microsoft Windows 10 Education Edition Name {Registry} : Education Composition Name {Registry} : Enterprise OS/CPU Architecture : CPU and OS is 64 bit Build : 10.0.19045 {UBR:2486} {22H2} Initial Full Build Information : 19041.1.amd64fre.vb_release.191206-1406 Build Branch : vb_release {Vibranium} Setup/Install Locale : English (United Kingdom) GeoID Nation ISO Location : United Kingdom Current Keyboard Language : English - United Kingdom {2057} Current Keyboard Name : Enhanced (101- or 102-key) Number of Function Keys : 12 Keyboard Description : USB Input Device Installed/Available Languages : en-GB en-US Stock Keeping Unit {SKU} : 121 Experience Pack : 120.2212.4190.0 Installation Date/Time {UTC} : 11/26/2021 at 7:24 AM Last Boot Up Date/Time {UTC} : 02/14/2023 at 5:10 AM Product ID : 00328-00000-00000-AA636 {Extended: 03612-03280-000-000000-00-2057-19043.0000-3302021} Time Zone Data : GMT Standard Time Hours offset from GMT : 0 Daylight Saving In Effect : No Daylight Adjust Clock Mode : Enabled/Checked Upgrade or Clean Installation : Clean Previous OS Upgraded From : N/A StorageSense Policy : Disabled {0x0} Number of Licensed Users : 1 Data Execution Prevention : OptIn/Default {Ref: 2} DEP Available : Yes DEP 32Bit Applications : Yes DEP Drivers : Yes DEP Support Policy : Enabled for OS Kernel, essential binaries and all Windows-based Services. Clipboard History Service : Disabled {Value:4} Clipboard History : Disabled {0} Allow Cross Device History : Enabled {Default} Allow Clipboard History : Enabled {Default} Current Power Policy Used : Home/Office Desk Power Plans Available : Balanced Only {Others may be 'hidden'} Current Active Power Plan : Balanced Long File Paths Enabled : Yes {0x1} NTFS set to allow file paths greater than 260 characters Part of a Domain : No Domain/Device Role : Standalone Workstation {Ref: 0} Portable OS {Win to Go} : No Feature Update Status : Not paused Quality Update Status : Not paused WSH Availability Status : Windows Scripting Host is not restricted. {All Users} WSH 'DisplayLogo' Value : Enabled {1} [All Users] HVCI Protection Status : Disabled {0} Download Over Metered Internet : No Exclude Drivers from MS/WU : Yes Pointing Device {Mouse} : Logitech HID-compliant Cordless Mouse Hypervisor Present/Installed : No Virtual Machine Data : This computer does not appear to be a virtual machine Shipped with Reserved 7GB : No Dirty Shutdown Count : N/A Windows Key 1 Installed : 7CFBY (Last 5 digits shown) Windows DpID4 Installed : 7CFBY (Last 5 digits shown) Windows Default Installed : 8HV2C (Last 5 digits shown) Windows Default4 Installed : 8HV2C (Last 5 digits shown) TPM Information : Active : Yes, Enabled : Yes, Owned : Yes, Version : 2.0, Vendor : Intel =============== Windows 11 Checks =============== Checked for W11 Target Upgrade : No Target Build Number : N/A Device is OEM Specific : N/A DirectX 12 Detected : N/A Device is Genuine : N/A Touch Capable Hardware : N/A Upgrade Experience {1} : N/A Upgrade Experience {2} : N/A Upgrade Fail Reason{s} : N/A Bypass TPM Check : N/A Bypass Secure Boot Check : N/A Bypass RAM Check : N/A Allow W11 WU Upgrade : Yes {1} CompatTelRunner.exe {Appraiser} : Process is not running. {File is not present in C:\Windows\System32} If 'N/A' is shown then the data may not of been fully compiled by the OS or via WU yet. When Fail Reason's are listed then they are not compatible and will be blocked for the upgrade. If any Upgrade Experience's are listed as 'Orange' then they will require attention to pass the OS checks. If CompatTelRunner.exe is prevented from running then the W11 checks will not be performed. =================================================================================================================== Booted System Drive Partition Information =================================================================================================================== Drive Type : SSD BUS Type : NVMe Total Space : 232.26 GB Free Space : 193.32 GB Partition Type : GPT Firmware Boot Type : UEFI Mode {R:1} Secure Boot Status : Disabled [Ref:1] File System : NTFS System Drive Letter : C: Interface Information : What mode an interface is in IDE Controller Mode : Advanced Host Controller Interface {AHCI} SCSI Controller Mode : Non-Volatile Memory Express {NVMe} / M$ Storage Spaces Disk and Partition Information : Driveletter | Disk #, Partition # | Model Name {50 Chars max} | Size 'GB' \\.\PHYSICALDRIVE1 F: | Disk #1, Partition #0 | WDC WD40EFRX-68N32N0 | 3725.9 GB \\.\PHYSICALDRIVE0 D: | Disk #0, Partition #0 | ST2000DM001-1E6164 | 1863.01 GB \\.\PHYSICALDRIVE2 C: | Disk #2, Partition #1 | KINGSTON SA2000M8250G | 232.26 GB Drive letters/Partitions are shown as they are defined via the connected ports in the BIOS. Partitions without Drive letters assigned are not shown. =================================================================================================================== Memory Information =================================================================================================================== Total Physical : 16622312 KB (15.85 GB) Available Physical : 12582752 KB (12 GB) Total Page Size : 17670888 KB (16.85 GB) Available Page Size : 12890700 KB (12.29 GB) Total Virtual Size : 4194176 KB (4 GB) Available Virtual : 4022772 KB (3.84 GB) Memory Type : DDR4 {26} Memory Error Correction : Non-ECC Memory Slots Fitted : 2 Memory Slots Used : 2 Memory Slots Free : 0 Motherboard's Max Memory : 33554432 KB (32 GB} DIMM Information {First Eight} : Controller0-ChannelA 8192MB @ 2133MHz Controller0-ChannelB 8192MB @ 2133MHz =================================================================================================================== Graphics Information =================================================================================================================== Adaptor Name : NVIDIA GeForce GTX 1050 Ti Adaptor DACType : Integrated RAMDAC {Addon} Adaptor Driver Information : 31.0.15.2756 {2022/12/05} Adaptor Status : Active Adaptor Name : Not Detected Adaptor DACType : N/A Adaptor Driver Information : N/A Adaptor Status : Inactive Virtual Desktop Resolution : 1920 x 1080 Bits Per Pixel : 32 Video Mode Description : 1920 x 1080 x 4294967296 colors {Ref:1} Some values may not be accurate due to 32 bit API limitations. =================================================================================================================== Network Adaptor Information =================================================================================================================== Adaptor 1 Name : Intel(R) Ethernet Connection (14) I219-V Connection Status : Connected MAC Address : FC:34:97:xx:xx:30 =================================================================================================================== Processor 1 Information =================================================================================================================== Name : Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz Architecture {Bits} : 64 L2 Cache Size {MB} : 1536 L3 Cache Size {MB} : 12288 Current / Max Speed {MHz} : 2904 / 2904 {Not Turbo Speed} Physical Cores : 6 Logical Cores : 12 Processor Id : 0xBFEBFBFF000A0653 Virtualization Mode : Enabled Manufacturer : GenuineIntel [Intel] Description : Intel64 Family 6 Model 165 Stepping 3 Motherboard Connection : LGA1200 OS Loaded Microcode Revision : 0x00000000EA000000 Bios Microcode Revision : 0x00000000EA000000 Processor Family : 205 Sockets/CPU's Present : 1 Feature Set : 0x000000003D1B3FFF Motherboard Connection is based on a OS internal database, MS may not have updated it. Microcode registry values are converted from binary to hexadecimal, not reliable for all devices. =================================================================================================================== DMI/BIOS Information =================================================================================================================== System Manufacturer : ASUS System Product Name : System Product Name BaseBoard Manufacturer : ASUSTeK COMPUTER INC. BaseBoard Product : PRIME B560M-K BaseBoard Version : Rev 1.xx PC System Type : Desktop {Ref: 1} BIOS Vendor : American Megatrends Inc. BIOS Release Date : 05/13/2022 BIOS Version : 1605 Primary BIOS : Yes SMBIOS Present : Yes SMBIOS Version : 3.3 SLIC/BIOS Data : ALASKA - 1072009 Valid SLIC Name : No Valid SLIC Table {See notes below} Possible Brand Theme : Asus {System Manufacturer} SLIC Table Status : No valid SLIC table {See notes below} Emulated SLIC : Not required/used for this OS MSDM Key Description : No MSDM key Description found MSDM Key Detected : Not Present MSDM Key OS Version/Edition : N/A Notes : When in UEFI mode the SLIC information may not be shown fully as it may be partially 'hidden' by the OEM/BIOS. =================================================================================================================== Miscellaneous Information =================================================================================================================== Which MRP Version Used : CY21M11D16-R141.BC6 Wallpaper Style : Stretch image to display resolution Current Theme Used : Current.theme Installed Dot Net Frameworks : 2.0 3.0 3.5 4.8 4.0 Installed Powershell Versions : 1.0, 2.0, 3.0, 4.0, 5.0, 5.1 Security Product Name{s} : ESET Security Defender Tamper Protection : Both Tamper and Cloud-delivered Protections are disabled Defender Service Status : Disabled Defender Code Integrity Mode : Disabled Defender Credential Guard : Disabled Windows Firewall Service State : Running {Reg: Auto} Windows Activation Status : Activated Windows Licence Reason : Digital Store Licence Windows Product Key Channel : Retail {RETAIL} with HWID {R:PKC} Device has KMS Enabled : No KMS Auto Renewal (hook) : No MS Office {MSI/Traditional} : Not Detected C2R MS Office : Not Detected C2R Excluded Apps : N/A C2R Last Update Channel : N/A C2R Office Activation Status : N/A C2R Partial Product Key : N/A Office Reason Information : No reason information to show/No Issues Office MAK/KMS Information : No MAK or KMS activation detected ------------------------------------------------------------------------------------------------------------------- End of Report ------------------------------------------------------------------------------------------------------------------- A clue for one addition is the task was not as easy as using cmd script!
Yep, it a bit awkward to get the task stuff in AutoIT -- unlike it is easier in cmd/ps... So i have done a couple of checks, one for task of it and the other if the file exists. It may be only one part of the w11 checking but it the main one that sends that info back to m$ that the device is all green for w11 or if not why... The GUI QT is slowly being enhanced, it will eventually replace the old cmd run version which then be left as a legacy version on its own download area.
Something added to GUI QT in the Graphics tab, but may need extra work when more than one monitor detected. As i not have more than 1 connected i am not 100% sure it will just use the first monitor data... Code: First Monitor Name/Model : S241HL First Monitor Serial Number : xxxxE0218549 Just getting that info was a major challenge as you have to decode the info from any EDID in the registry! Postable/GUI obfuscates the Serial number, Private log shows in full. Hmm needs a bit of work when the default monitor has no EDID But can work around that just be no serial number, i can hopefully get Name and Model....
Managed to hopefully get the manufacturer, model/type and devicepnpid if it available to read. Some monitors/tv's may just say Generic etc. Taking a Tv break now so will resume tomorrow morning. Have gui part almost sorted, just got to sort out the saved log part. If all gone to plan if more than one monitor connected the qt should show the data, limited to 4 monitor entries as no other space in that tab section.
Hopefully this routine now works even with more than one display attached... Graphics section results from my main PC (one display): Code: =================================================================================================================== Graphics Information =================================================================================================================== Adaptor Name : NVIDIA GeForce GTX 1050 Ti Adaptor DACType : Integrated RAMDAC {Addon} Adaptor Driver Information : 31.0.15.2756 {2022/12/05} Adaptor Status : Active Adaptor Name : Not Detected Adaptor DACType : N/A Adaptor Driver Information : N/A Adaptor Status : Inactive Virtual Desktop Resolution : 1920 x 1080 Bits Per Pixel : 32 Video Mode Description : 1920 x 1080 x 4294967296 colors {Ref:1} Monitor/Display Information : {Maximum of four shown} ========== Desktop Monitor 1 ========== Manufacturer : ACER Model/Type : S241HL PNPDeviceID : DISPLAY\ACR0312\5&FD8CBA9&0&UID4353 Some values may not be accurate due to 32 bit API limitations. Monitor data may not always be accurate due to no information available. There is quite a bit of error checking done in this code section but as always some errors 'may' slip through, if nothing can be obtained then 'Generic' etc may be shown instead. On some TV's used as monitors the Extended ID was not always present and so confused the EID routine i used originally, so have used a more relaxed WMI method, it won't show the 'Serial Number' now but then that should be on a sticker on the display or via its settings/options button/menu anyway. The EID method can obtain more data but it gets a bit too complex to decode it all so this WMI method is simpler and should technically work on all displays if the info is in the registry etc. Have limited it to showing a max of four displays as there is no room in the GUI section unless i remove the PNPDeviceID lines to squeeze another 1 or 2 in, there again is it worth it?
On another PC with a JVC TV used as a monitor: Code: =================================================================================================================== Graphics Information =================================================================================================================== Adaptor Name : AMD Radeon HD 6570 Adaptor DACType : Internal {iGPU} Adaptor Driver Information : 15.301.1901.0 {2016/02/26} Adaptor Status : Active Adaptor Name : Not Detected Adaptor DACType : N/A Adaptor Driver Information : N/A Adaptor Status : Inactive Virtual Desktop Resolution : 1400 x 1050 Bits Per Pixel : 32 Video Mode Description : 1400 x 1050 x 4294967296 colors {Ref:1} Monitor/Display Information : {Maximum of four shown} ========== Desktop Monitor 1 ========== Manufacturer : (Standard monitor types) Model/Type : Generic Non-PnP Monitor PNPDeviceID : DISPLAY\DEFAULT_MONITOR\5&5FF5EA&0&UID512 Some values may not be accurate due to 32 bit API limitations. Monitor data may not always be accurate due to no information available.
I have noticed on Win 11's Notepad replacement 'App' that some linefeeds 'CRLF' are ignored and so the text looks a bit squashed? But viewing the text/log file in this case on W10 using the original Notepad all looks ok!
Have uploaded this GUI QT to the private beta test area and will probably not be released for a while until i can make sure the multi-display part works, or it may only just show the main monitor in use at the time of the QT being run... It seems can only retrieve the first monitor PShell goes nuts if an array is empty or some silly cryptic error that only the dev who wrote the OS code in PS would know The non ps code is set up to look for multiple monitors but wmi only shows primary one? May have to think more about that section, i can sort of get more info using p/shell but if certain results are nul then it throws its dummy out with silly red lettered cryptic crap... Plus ps is painfully slow...
At the moment i cant get a reliable method to find more than one display as the 'Win32_DesktopMonitor' does not seem to show more than one display? It has potential to show more but using a laptop with its main lcd and a HDMI tv/monitor connected it only shows/detects the Primary laptop one as found using Win32_DesktopMonitor wmi api. Until i can find a better method that will work on all supported OS's it may just show the Primary monitor data for the time being, I have adjusted the 'Notes' section in the Graphics tab and saved logs. For example: --------------------------------------------- Some values may not be accurate due to 32 bit API limitations. Monitor/Display section is experimental and will be updated later. Monitor data may only show the 'Primary' display. The name 'Generic' may be used when using some TV's etc.
This looked promising... Until i tried it on Win 7 and WimiMonitorID is not present Code: strComputer = "." 'Get monitors with WMI Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\WMI") Set colMonitors = objWMIService.ExecQuery("SELECT * FROM WmiMonitorID") For Each objMonitor in colMonitors 'Convert model name to ASCII ProductId = "" For I = 0 To Ubound(objMonitor.UserFriendlyName) ProductId = ProductId & Chr(objMonitor.UserFriendlyName(I)) Next Wscript.echo ProductId Next I wrote a PShell script that is more advanced and that too not work on 7 or below because it makes extensive use of the WmiMonitorID class and gives more data... Took a while to 'sort of' understand PShell Arrays and how to use as a hashtable to convert 3 chars to the manufacturer name, i may not of got all the manufacturer 'codes' and those i missed will hopefully just show the abbreviated result or Generic instead. Model/Type should hopefully show ok too or Generic depending if a null result. I may add in the pshell version but that will only work on w8.1 -- (I think as cant find any info of minimum OS) -- and above and i will use the current single display code for below 8.x -- at least something will work on the older OS, may still not be perfect but better than nothing. If the above vbscript not work on 8.x then the PS one wont either... With the PS code i get: True|Acer|S241HL|2|2017|DISPLAY\ACR0312\5&fd8cba9&0&UID4353_0 which from the above test of my PC using the script translates to: True = Display Active (or connected) Acer = Maker/Manufacturer (ACR would show if hashtable failed) S241HL = Model/Type (or Generic if no data) 2 = Week of Manufacture 2017 = Year of manufacturer DISPLAY\ACR.... = The DevicePNPID. I can get the Monitor serial numbers and a few other things but i just settled on the main bits.
Hmm now the ps one not work on w11 wtf is wrong with m$ they cant make anything easy or standard. Just like with the VideoRAM issue with greater than 4GB all over again... Will leave the display/monitor data as it is for now, spent enough time on it to get no where.
It does get very frustrating as using WbemTest.exe (in the win 11 OS) and checking for WmiMonitorID it finds it!! To test it: Open wbemtest (Start > Run > wbemtest). 2. Click on the "Connect" button. 3. Enter root\wmi in the "Namespace" field and click on the "Connect" button. 4. Click on the "Open Class" button. 5. Enter WmiMonitorID in the "Enter Target Class Name:" field and click on the "OK" button. And it shows as there!! ??? Dont edit anything in there or you could screw up your OS!! Just Close/exit.
Some progress that even works on win 11 - not tried 7/8.x yet but should 'technically' work as just using the WMI Win32_DesktopMonitor which appears to work from Vista and above - or so say m$!! When a monitor driver is installed via OS/WU/Manually and detected then the GUI QT will scan the driver hashtable for a Manufacturer if possible. Or 'Unknown' or 'Default' will be used. A Laptop: Code: ========== Desktop Monitor 1 ========== Manufacturer : AUO Corporation Model/Type : Generic PnP Monitor PNPDeviceID : DISPLAY\AUO47EC\4&3B56634&0&UID265988 When no detectable monitor name or no driver installed for it via OS/WU or manually installed. PC on win11: Code: ========== Desktop Monitor 1 ========== Manufacturer : Generic as no monitor driver installed Model/Type : Generic Non-PnP Monitor PNPDeviceID : DISPLAY\DEFAULT_MONITOR\5&5FF5EA&0&UID512 The above are only examples as it can vary on the hardware etc... But at least the main Monitor is shown if none of the others that may be connected. Uploaded for private testing as need to find out if it actually works and if i need to adjust the hashtable for Manufacturers etc...