I'm trying to write a script that maps which computer is used by which user. I've attempted several scripts so far, but none of them seem to populate the username field correctly. I need some guidance on how to proceed or any tips on what might be going wrong.
3 Answers
It looks like your question lacks some important context! Can you explain what exactly you're trying to achieve? Are you trying to track which computer users log into daily? That would help others provide better help.
While we need more info, I did notice from another post that you might be using Action1. According to their docs, you can easily add a column for the last logged-on user in the Endpoints view and generate a report. That might be a quick solution for you! Check it out [here](https://www.action1.com/documentation/managed-endpoints/).
There are tons of factors to consider here. Are you trying to execute the script to gather data from domain controllers or from user workstations? Also, what language is your script written in? More details would definitely help us assist you!

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures