There is a predefined property called “User Name”
Q: if exists true whose (if true then exists logged on user else false) then names of logged on users else if exists current user then name of current user else ""
I need to this properties, add the “full name”, this could leave the “Active Directory” if possible or I am evaluating the following option, but I am not sure that it works 100%.
Q: values “LastLoggedOnDisplayName” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI” of (if x64 of operating system then (x64 registry;x32 registry) else registry)
A: DEL COL, JUAN CRUZ
If it were with AD, how could I do that query?