Kaseya Community

How do I capture the current logged in user as a variable?

This question is answered

I need to update a registry value with that of the current logged in user.

Can someone give me a quick tip and how I can do this please?

I checked the Help for database views and saw the vAgentConfiguration > currentuser which I guess is what I am after.

Verified Answer
  • the DB variable would be #vAgentConfiguration.currentuser# to pull it into a script, so if you wanted to update a registry value you would use the line that allows that and in the value field you would put the variable above.

  • Thanks Tom, this is now working.

All Replies
  • the DB variable would be #vAgentConfiguration.currentuser# to pull it into a script, so if you wanted to update a registry value you would use the line that allows that and in the value field you would put the variable above.

  • Thanks Tom, this is now working.