How can I Find Out Which User is Logged into Which Computer?

0
6
Asked By SwiftPineapple42 On

I'm trying to create a script that will allow me to map computers to the users who log into them. However, I've tested about six different scripts so far, and they all come back with an empty username field. What am I missing? Can anyone provide some insights or suggestions to get this working?

3 Answers

Answered By CuriousCoder88 On

It sounds like you need to give more context about your situation. Are you trying to track which computer each user logs into daily? Also, let us know if you're pulling data from domain controllers or directly from workstations, and what language you're using for the script. More details will help people assist you better!

Answered By ScriptSavvy99 On

Just from your post, it seems like the scripts lack the detail they need to return user info. Are you sure the scripts are written correctly or that they're running in the right context? Double-check the script requirements and see if any prerequisites are missing.

Answered By HelpfulTechie23 On

There are several factors that could be affecting your script. Make sure you're running it with the right permissions to access the user data. Also, check if you're using a proper method to grab the usernames. It might also be worth considering using a management tool like Action1, which lets you add a column for the last logged-on user easily.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.