Kaseya Community

Last Logged on User as Variable

This question is not answered

Is it possible to set a variable equal to the last logged on user of  machine?

Thanks.

All Replies
  • I was able to do it by puling the value of HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUserName.  

    Is there a better way?

  • #vagentconfiguration.lastLoginName#