Find Computer Name of the PC that a user is currently logged from their Username

This topic contains 1 reply, has 2 voices, and was last updated by  Don Jones 3 weeks, 3 days ago.

  • Author
    Posts
  • #103240

    Warner
    Participant

    I work in Tier 2 of a University and we have a tool that the Tier 1 technicians can use to pull up information about that user using their computer username. We use Active Directory and SCCM. I am trying to find a way to get the computer name and/or IP address of the computer a user is currently logged into from their username. I have been told by our Tier 3 technician that my best bet would be to use WMI or Active Hive through PowerShell. I am brand new to PowerShell and I'm looking to do this as a project. Any help would be appreciated. Thank you.

  • #103244

    Don Jones
    Keymaster

    AD doesn't actually store that centrally. You'd need to enable logon auditing and scan the logs on each DC. But this isn't a PowerShell question per se; it's more “how Windows works.” If the information was in AD, PowerShell could query it.

You must be logged in to reply to this topic.