Solved

Find Current Logged On Users

Posted on 2014-09-12
1
131 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 39

Accepted Solution

by:
footech earned 500 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now