If you are using skins that made use of the WMIC tool to retrieve information, you should very quickly change them to use the built-in PowerShell commandlets that support accessing this kind of information using CimInstance.
https://docs.microsoft.com/en-us/powershell/scripting/learn/ps101/07-working-with-wmi?view=powershell-7.1
https://powershell.one/wmi/root/cimv2
So for instance:
Old method:
Code: Select all
[MeasureGetAdapter]
Measure=Plugin
Plugin=RunCommand
Program=WMIC
Parameter=path win32_VideoController get name
OutputType=ANSI
RegExpSubstitute=1
Substitute="(?siU)^Name.*([\S].*)$":"\1","#CRLF#":""
Code: Select all
[MeasureGetAdapter]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=(Get-CimInstance -ClassName win32_VideoController -Property Name).Name
OutputType=ANSI
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
OnRefreshAction=[!CommandMeasure MeasureGetAdapter "Run"]
[Metadata]
Name=GetGraphicsAdapterPS
Author=JSMorley
Information=Retreives and displays the name of the primary display adapter in Windows using PowerShell and WMI
Version=May 21, 2021
[MeasureGetAdapter]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=(Get-CimInstance -ClassName win32_VideoController -Property Name).Name
OutputType=ANSI
[MeterDisplay]
Meter=String
MeasureName=MeasureGetAdapter
FontSize=10
FontColor=255,255,255,255
FontWeight=600
Antialias=1