How do I show in column the users full name instead of their username?
riahc3
Hello
I have user1 who is actually in AD "Bob Johnson" I have user2 who is actually "Ashley Grater" how do I show their full names in a seperate column in PDQ Inventory?
Thank you
1
Comments
Is this posible?
Hi,
Thanks for your recent forum post. This is in response to that via our ticketing system. I wanted to reach out and let you know this has been put in as a feature request previously. I will also add your request to the existing ticket. The reason we haven't implemented something like this before is that, despite the appearance, it's actually quite a large undertaking to put in the framework to pull that information from AD. I don't have a timeline on when this will be implemented or what version, but it is in as a request, and one I think is very worthwhile. Let me know if you have any questions, additions, or issues.
Thank you for your reply.
Well, as a "quick fix" you could always call it thru powershell:
Get-ADUser [CurrentUser] | Select -Property Name
That returns the full name of the current user logged in.
And you could script that for the environment as well, which several of our customers have done. Getting the information from AD isn't difficult, but error handling, inconsistencies, n+1 users logged into a system, etc. as well as formatting that into a report/collection, not to mention what to do with AD service accounts, all pose programmatic issues. But it's worth it, especially in large environments.
"And you could script that for the environment as well, which several of our customers have done."
Maybe I havent understood that correctly; Is it already possible to add this as a script to a column? It would be enough for me personally.
You can create custom fields, you could even create the command above as a custom tool, but there currently isn't a way for you to get that information and then place it (automatically) within a report.
+1
Via Batch Script
@echo off for /f "tokens=2*" %%a in ('net user "%Username%" /domain ^| find /i "Full Name"') do set DisplayName=%%b echo Your display name is "%DisplayName%"