I read it as he’s asking for a way to determine the AD “Full Name” for the Current User of computers, as opposed to the “Login Name”, which currently displays.
If this is for an endpoint check for the full name of an AD user then you should be able to do something like:
full names of domain users(names of logged on users of active directory)
OR if you just want the current user and only if they are an AD user
full name of domain user(name of active directory user of user of current user) The above will only work
if the domain of the computer is the same as the domain of the user. The other direct way
if you have their login name already is:
full name of domain user “<DOMAIN\loginname>” {code}
There will be better ways in the future to do this.
If you are meaning the user logged into the console then no I don’t know how to do that.