How to Find All Domain or Currently logged in Domain User?

Home Forums Scripting General Scripting How to Find All Domain or Currently logged in Domain User?

This topic contains 4 replies, has 4 voices, and was last updated by Avatar kyenilmez 3 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Avatar
    new2it
    Member
    #165562

    I am looking for a command or power shell command that I can run whenever I need to see who are currently logged-in in the system. I tried “query user ” but it only bring local users who have logged into it locally. Also, where should I run the script or command ? I mean should it run on the main domain controller server or log in as an admin and run from anywhere ? Please help me with this if anyone see and knows . Thanks and hugs.

    JeremyW
    JeremyW
    Moderator
    #271284

    You could use PSLoggedon from sysinternals.com.

    Avatar
    tonyyeb
    Member
    #223983
    JeremyW;n491708 wrote:
    You could use PSLoggedon from sysinternals.com.

    Just in case you can’t find it, it is in the PsTools pack: https://technet.microsoft.com/en-gb/sysinternals/bb896649

    Avatar
    kyenilmez
    Member
    #391043
    JeremyW;n491708 wrote:
    You could use PSLoggedon from sysinternals.com.

    Hi JermyW, I had PSLogedon on my computer before and then again I tried after your replied and it ran, but it seems the PSLogedon command does not bring my entire domain users who are logged in today or currently logged in. it brings a few users which i know there should be more users currently logged in..
    can you give me any other option to look that up? Thank you for your earlier reply.

    JeremyW
    JeremyW
    Moderator
    #271300

    When you run psloogedon you will need remote admin access to all the computers. Often firewalls will block this by default. So some preliminary work needs to be done to allow it to run against all computers.

    Other than that I’m not sure how you would get this information out of the box. There might be a 3rd party tool to do this. I know Kaseya can give this information but it does a lot more than logon status.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.