For When You Can't Have The Real Thing
[ start | index | login ]
start > Windows > Who Is Logged In

Who Is Logged In

Created by dave. Last edited by dave, 3 years and 162 days ago. Viewed 1,267 times. #1
[edit] [rdf]
labels
attachments
(2015-07-02)

Problem

I want to see which user is logged in to a Windows workstation without having to find the computer in question.

Solution

If these are all domain members, then powershell on the DC should work:

$computername = 'SomeMachine-or-IP'

Get-WmiObject Win32_ComputerSystem -ComputerName $computername | Select-Object -ExpandProperty UserName

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt