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.
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.