Get User logged to PC

Welcome Forums General PowerShell Q&A Get User logged to PC

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
2 years, 5 months ago.

  • Author
    Posts
  • #44171

    Participant
    Points: 0
    Rank: Member

    Hello to all,

    I'm froze 🙂 please help me,

    To Get User logged to any PC in a local network, what you recommend to query?

    Departing I have list to PC. Querying to win32_process Owner User, I think an articulated way.

    Tips?

    bye
    nichi

  • #44175

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    I'm sorry, but I don't think I understand. If English is not your first language, you might want to use less complicated words. "Departing" and "articulated" are not correct here.

    If your question is, "I need to find out what PC a user is logged into," the answer is, "there is no place to query that from." Nothing on the network keeps track of what computers a user has logged into. You would have to query every computer on the network. You could possibly use Win32_Session to see what users have sessions on each computer.

  • #44189

    Participant
    Points: 0
    Rank: Member

    If you are looking for users that are logged into a PC in a good format, You might find this helpful.

  • #44221

    Participant
    Points: 0
    Rank: Member

    Sorry, my English is not my first language and is very bad.
    Anyway my first language It's even more bad 🙂

    thanks for tips. The reply of Sankar Roy is the solution I was looking for. I can easly adapt to my script.

    I'm trying to collect many information from all PC in the LAN and send final report to mail.
    When finish I share my small project.

    Thanks to both
    nichi

The topic ‘Get User logged to PC’ is closed to new replies.