1. Adjusted text line on Miscellaneous section. 2. TimeZone using the TZUtil to get result. 3. Hours offset from GMT, (experimental as unsure of result if a negative number is present). 4. Daylight Saving In Effect, Yes/No result (or True/False depending on result). 5. Some other code tweaks.
Hmm Daylight saving in effect got confused, so just added 'N/A' or 'Undefined' as a default instead of a empty string which upsets the results box layout.
Re-Added ms office detection but ONLY for non C2R for the time being as i cannot get a reliable result for c2r...
Fixed a few issues for Daylight Saving part. Added M$ Office detection but ONLY for non C2R versions for time being. Few other internal code tweaks.
C2R is easy to do with batch/PS but in autoit it is a whole different ball game! Took me ages to redo the non C2R code as the regread only gives a single return item, you do not have the /K query like in batch so you not get the result you want as easy...
No idea why it greyed out a the QT's just read the information and MRP does not touch that registry section
Spoiler: non C2R Office detection - autoit Code: local $sHKCR = "HKCR" Local $sHKCU = "HKCU" Local $sHKLM = "HKLM" Local $sHKU = "HKU" Local $sHKCC = "HKCC" If Not StringInStr(@OSArch, "X86") Then Local $sHKCR = "HKCR64" Local $sHKCU = "HKCU64" Local $sHKLM = "HKLM64" Local $sHKU = "HKU64" Local $sHKCC = "HKCC64" EndIf local $sEnumKey = "",$OffBit local $OffVer Local $Split1 Local $Split2,$OfficeInstalled local $uKey = $sHKLM & "\Software\Microsoft\Windows\CurrentVersion\Uninstall" For $i = 1 To 100 $sSubKey = RegEnumKey($uKey, $i) If @error Then ExitLoop if StringInStr($sSubKey,"0FF1CE") then $sEnumKey = $sSubKey ExitLoop EndIf Next IF $sEnumKey <> "" Then $Split1 = StringMid($sEnumKey,4,2) $Split2 = StringMid($sEnumKey,21,1) if $Split1 = "12" then $OffVer="2007" if $Split1 = "14" then $OffVer="2010" if $Split1 = "15" then $OffVer="2013" if $Split1 = "16" then $OffVer="2016" if $Split1 = "19" then $OffVer="2019" if $Split1 = "21" then $OffVer="2021" if $Split1 = "22" then $OffVer="2022" if $Split2 = "0" then $OffBit="32-Bit" if $Split2 = "1" then $OffBit="64-Bit" EndIf if $OffVer <> "" Then $OfficeInstalled = "MS Office " & $OffVer & " " & $OffBit ConsoleWrite($OfficeInstalled & @CRLF) See what a pain to get the result for office is in this case, the for loop in batch is easy with tokens/delims but in AutoIT the for loop not have that feature. **Edit** Added the missing hklm / hklm64 etc at the top for when running code on 64 or 32 bit OS's
DynamicDaylightTimeDisabled is tested for result that the Dynamic Daylight Time part had to shorten the title bit to make it fit in the text block.
Will continue tomorrow, my chill time is calling me Have set my scaling to that 115% and i too get that loss of the tails of g y etc in the result boxes, will have a play tomorrow to see if i can fix that, i think the font scaling at 100% , 120% and 150% (standard OS ones) are ok but anything in-between such as the 115% etc causing the font issue...
Code: ------------------------------------------------------------------------------------------------------------------- Query Tool GUI v0.10.0.85 ------------------------------------------------------------------------------------------------------------------- Log Date {UTC}: 10/31/2022 -- 19:31 {24-hour} Some results may be shortened to fit the output stage, such as RAM information. This is the postable report that does not contain full serial or sensitive information. =================================================================================================================== Operating System Information =================================================================================================================== Installation Type : Client Name : Microsoft Windows 10 Education OS/CPU Architecture : CPU and OS is 64 bit Build : 10.0.19045 {UBR:2006} {22H2} Language : English (United States) Native Language : English Installed/Available Languages : de-DE en-GB en-US Stock Keeping Unit {SKU} : 121 Experience Pack : 120.2212.4180.0 Installation Date : 6/19/2021 at 23:26 PM {UTC} MSDM Key Detected : Not Present Dirty Shutdown Count : 1 Build Branch : vb_release Product ID : 00328-00000-00000-AA106 TimeZone {TZUtil} : W. Europe Standard Time Hours offset from GMT : 1 Daylight Saving In Effect : No Dynamic Daylight Time : Disabled/Unchecked 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 : N/A =================================================================================================================== System Drive C: Partition Information =================================================================================================================== Drive Type : SSD BUS Type : NVMe Total Space : 476.32 GB Free Space : 440.99 GB Partition Type : GPT Firmware Boot Type : UEFI Mode Secure Boot Status : Disabled [Ref:1] File System : NTFS Model Name : Micron_2210_MTFDHBA512QFD =================================================================================================================== Memory Information =================================================================================================================== Total Physical : 7779928 KB (7.42 GB) Available Physical : 4236532 KB (4.04 GB) Total Page Size : 8566360 KB (8.17 GB) Available Page Size : 3167444 KB (3.02 GB) Total Virtual Size : 4194176 KB (4 GB) Available Virtual : 4028240 KB (3.84 GB) Memory Type : DDR4 Memory Error Correction : Non-ECC Memory Slots Fitted : 2 DIMM Information {First Four} : DIMM 0 8192MB @ 3200MHz =================================================================================================================== Graphics Information =================================================================================================================== Adaptor 1 Name : NVIDIA GeForce RTX 2060 Adaptor 1 Memory : 6144 MB (6 GB) {Routine:P1} Adaptor 1 DACType : Integrated RAMDAC Adaptor 1 Video Memory Type : GRAM (2) Adaptor 2 Name : AMD Radeon(TM) Graphics Adaptor 2 Memory : 6144 MB (6 GB) {Routine:P1} Adaptor 2 DACType : Internal DAC(400MHz) Adaptor 2 Video Memory Type : GRAM (2) Virtual Desktop Resolution : 1920 x 1080 Bits Per Pixel : 32 Video Mode Description : 1920 x 1080 x 4294967296 colors {Ref:2} =================================================================================================================== Network Adaptor Information =================================================================================================================== Adaptor 1 Name : Realtek PCIe GbE Family Controller Connection Status : Media Disconnected Adaptor 2 Name : Realtek 8822CE Wireless LAN 802.11ac PCI-E NIC Connection Status : Connected =================================================================================================================== Processor 1 Information =================================================================================================================== Name : AMD Ryzen 7 4800H with Radeon Graphics Architecture : 64 L2 Cache Size : 4096 L3 Cache Size : 8192 Current Clock Speed : 2900 Physical Cores : 8 Logical Cores : 16 Processor Id : 178BFBFF00860F01 Virtualization Mode : Enabled Manufacturer : AuthenticAMD Description : AMD64 Family 23 Model 96 Stepping 1 =================================================================================================================== DMI/BIOS Information =================================================================================================================== System Manufacturer : ASUSTeK COMPUTER INC. System Product Name : ASUS TUF Gaming A15 FA506IV_FA506IV BaseBoard Manufacturer : ASUSTeK COMPUTER INC. BaseBoard Product : FA506IV BaseBoard Version : 1.0 BIOS Vendor : American Megatrends Inc. BIOS Release Date : 03/12/2021 BIOS Version : FA506IV.316 Primary BIOS : True SMBIOS Present : True SMBIOS Version : 3.2 SLIC/BIOS Data : _ASUS_ - 1072009 Valid SLIC Name : Asus Possible Brand Theme : Asus {System Manufacturer} =================================================================================================================== Miscellaneous Information =================================================================================================================== Which MRP Version Used : CY21M05D28-R137.1.BR 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} : COMODO Antivirus Defender Tamper Protection : Disabled Defender Service Status : Manual 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 Device has KMS Enabled : No KMS Auto Renewal (hook) : No MS Office {Not C2R} : MS Office 2016 64-Bit ------------------------------------------------------------------------------------------------------------------- Office 2016 is wrongly picked up, unfortunately. Three offending uninstall keys are: Code: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{90160000-007E-0000-1000-0000000FF1CE} = "Office 16 Click-to-Run Licensing Component" 16.0.14332.20400 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{90160000-008C-0000-1000-0000000FF1CE} = "Office 16 Click-to-Run Extensibility Component" 16.0.14332.20400 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{90160000-008C-0407-1000-0000000FF1CE} = "Office 16 Click-to-Run Localization Component" 16.0.14332.20375 Seems that even C2R office drops some keys here.
Was a last attempt , seems office will be on the todo list at the bottom as just can't get the info correct via autoit stupid syntax.
I will have to download and install a c2r office so i can fiddle with a au3 test script. But will hide that office line in the gui for the time being.
{90160000-007E-0000-1000-0000000FF1CE} Due to the parsing of that string/Key data the 2016 is picked up from the 90160000-xxxx-xxxx... So technically it is m$ fault for not using 19 or 21/22 there for the Office number. C2R is stored in another area which i had not seen - because i not had C2r office installed (only a older 2007 i have)... HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration Is where that C2R info is located... M$ certainly not make things easy do they? Later i will have a go at new code which will show either C2R or non C2R - NOT - both as that gets confusing as LTSC 2021 office is still shown as 2016 under the {90160000-xxxx-xxxx-x000-0000000FF1CE} key(s), so if C2R is detected then i will skip the non C2R parts and vice-versa. So if you have both types of office installed (why?) the GUI QT will just show C2R one first, if that not present then if another non C2R office installed then that will be shown. As we say here, "The impossible takes a while but get done, however miracles take a little longer"