Forum Discussion
APM: Registry Check
Hello, I'm aiming to restrict accessing to our VPN through your machine only....
so I tried to check machine username registry it works for fixed name
"usr1"
, but it doesn't work for session variable as below, So is there any way to use session variables?
"HKEY_CURRENT_USER\Volatile Environment"."USERNAME" = "%session.logon.last.username"
Also is there any way to check the return value of windows registry?, as the information is very poor, it's indicating the result only "success/failed"
- refra_151287
Cirrus
Any recommendation for this inquiry!
- Pedro_HaoaRet. Employee
Hi,
Remember that Windows has separate storage for registry keys used by 32-bit and 64-bit application. In order to check the return value of windows registry, you could use the Logging Agent after the registry check to store the session variable that you want.
Please check the following resources:
https://support.f5.com/csp/article/K12004
https://support.f5.com/csp/article/K12005
- Stanislas_Piro2
Cumulonimbus
Hi,
Did you try with this format?
"HKEY_CURRENT_USER\Volatile Environment"."USERNAME" = "%{session.logon.last.username}"
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com