10-May-2022 22:16
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"."Domain"="example.F5.com"
For the above expression, how can I say that the domain that this registry value equals is example.f5.com or abc.com? I mean what is the Syntax?
Solved! Go to Solution.
11-May-2022 06:40
Hi Wasfi,
I understood your point, but first, you have to store the HKEY_LOCAL_MACHINE from the user in a session variable using the Windows Registry utility and then can use it to compare with the desired HKEY_LOCAL_MACHINE.
You have more possibilities as make an Adquery to your AD Server and send the domain of the user in a custom variable and compare it with the desired value, allowing the system to determine a different flow based on the domain.
In my personal experience, I discarded the Windows Registry utility because it doesn´t work in all cases, and only applies to windows devices.
11-May-2022 02:18
Hi,
Please review the next link:
Hope it´s works.
11-May-2022 06:19
Hi Sebastian;
Thank you for your response. The above link does not help me use an or operator. Basically, I want to write something like:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"."Domain"="example.F5.com" OR "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"."Domain"="abc.com"
So if the value of the registry is example.f5.com or abc.com, then the expression evaluates to "True".
Kindly
Wasfi
11-May-2022 06:40
Hi Wasfi,
I understood your point, but first, you have to store the HKEY_LOCAL_MACHINE from the user in a session variable using the Windows Registry utility and then can use it to compare with the desired HKEY_LOCAL_MACHINE.
You have more possibilities as make an Adquery to your AD Server and send the domain of the user in a custom variable and compare it with the desired value, allowing the system to determine a different flow based on the domain.
In my personal experience, I discarded the Windows Registry utility because it doesn´t work in all cases, and only applies to windows devices.
12-May-2022 04:18
Thank you Sir.