Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Find Current Logged On Users

Posted on 2014-09-12
1
139 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 40

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to combine two scripts 2 33
Powershell Script Help 1 32
Output to HTML in powershell 3 26
Nested ForEach in Powershell 4 17
Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
This article will help you understand what HashTables are and how to use them in PowerShell.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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