Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Find Current Logged On Users

Posted on 2014-09-12
1
Medium Priority
?
145 Views
Last Modified: 2014-09-15
I use PSLoggedOn (SysInternals tool) to see who is logged on locally to workstations:

psloggedon.exe \\workstation

Is there a way to perform this task using PowerShell instead of PSLoggedon?

Thanks.

TB
0
Comment
Question by:TropicalBound
1 Comment
 
LVL 41

Accepted Solution

by:
footech earned 2000 total points
ID: 40319713
There's a number of different methods that you can wrap in PowerShell - using WMI, quser, qwinsta, or PsLoggedOn.  Check out this thread and the links contained which contains examples of a few of these.
http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_28233927.html
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question