Hi,
I'm a newbe and have some trouble with setting a variable.
I have a measure, which gets with powershell the guid of a physical network adapter:
[Variables]
GUID=x
[MeasureGetNICGUID]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=((Get-WmiObject Win32_NetworkAdapter) | Where-Object {$_.Name -eq 'Microsoft Hyper-V Network Adapter'}).GUID
OutputType=ANSI
OutputFile=C:\Users\Administrator\Documents\Rainmeter\Skins\test.txt
dynamicvariables=1
UpdateDivider=#Update15s#
OnFinishAction=[!SetVariable GUID [MeasureGetNICGUID]]
In the output file the GUID is like {8FE2DF4C-6D24-4394-AA17-99DCEA20BA98}
In another measure I need the GUID to complete a registry key:
[MeasureLAN]
Measure = Registry
RegHKey = HKEY_LOCAL_MACHINE
RegKey = SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\#GUID#
RegValue = DhcpIPAddress
dynamicvariables=1
UpdateDivider=#Update15s#
This does not work, cause the variable was not set.
If I set the variable like GUID={8FE2DF4C-6D24-4394-AA17-99DCEA20BA98} then the [MeasureLAN] works correct.
What is wrong, could you please give me a hint?!
Thx a lot !!!!
I'm a newbe and have some trouble with setting a variable.
I have a measure, which gets with powershell the guid of a physical network adapter:
[Variables]
GUID=x
[MeasureGetNICGUID]
Measure=Plugin
Plugin=RunCommand
Program=PowerShell
Parameter=((Get-WmiObject Win32_NetworkAdapter) | Where-Object {$_.Name -eq 'Microsoft Hyper-V Network Adapter'}).GUID
OutputType=ANSI
OutputFile=C:\Users\Administrator\Documents\Rainmeter\Skins\test.txt
dynamicvariables=1
UpdateDivider=#Update15s#
OnFinishAction=[!SetVariable GUID [MeasureGetNICGUID]]
In the output file the GUID is like {8FE2DF4C-6D24-4394-AA17-99DCEA20BA98}
In another measure I need the GUID to complete a registry key:
[MeasureLAN]
Measure = Registry
RegHKey = HKEY_LOCAL_MACHINE
RegKey = SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\#GUID#
RegValue = DhcpIPAddress
dynamicvariables=1
UpdateDivider=#Update15s#
This does not work, cause the variable was not set.
If I set the variable like GUID={8FE2DF4C-6D24-4394-AA17-99DCEA20BA98} then the [MeasureLAN] works correct.
What is wrong, could you please give me a hint?!
Thx a lot !!!!
Statistics: Posted by Matthias1806 — Today, 10:48 am — Replies 14 — Views 122