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

Welcome Forums General PowerShell Q&A 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

 
Keymaster
3 months, 4 weeks ago.

  • Author
    Posts
  • #103240

    Participant
    Points: 0
    Rank: Member

    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

    Keymaster
    Points: 1
    Rank: Member

    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.

The topic ‘Find Computer Name of the PC that a user is currently logged from their Username’ is closed to new replies.