# Get User logged to PC

**URL:** <https://forums.powershell.org/t/get-user-logged-to-pc/6679>\
**Category:** PowerShell Help\
**Created:** [June 21, 2016, 10:39am UTC](https://forums.powershell.org/t/get-user-logged-to-pc/6679 "2016-06-21T10:39:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nichi-castagnaro](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/nichi-castagnaro/32/630_2.png) [@nichi-castagnaro](https://forums.powershell.org/u/nichi-castagnaro)\
**Post date:** [June 21, 2016, 10:39am UTC](https://forums.powershell.org/t/get-user-logged-to-pc/6679/1 "2016-06-21T10:39:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [June 21, 2016, 10:59am UTC](https://forums.powershell.org/t/get-user-logged-to-pc/6679/2 "2016-06-21T10:59:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![partho-sankar-roy](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/partho-sankar-roy/32/626_2.png) [@partho-sankar-roy](https://forums.powershell.org/u/partho-sankar-roy)\
**Post date:** [June 21, 2016, 12:06pm UTC](https://forums.powershell.org/t/get-user-logged-to-pc/6679/3 "2016-06-21T12:06:17Z")

</div>

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

> <https://gist.github.com/anonymous/04638874f3b77630355f001100dfe75f>

---

<div class="post-metadata">

**Author:** ![nichi-castagnaro](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/nichi-castagnaro/32/630_2.png) [@nichi-castagnaro](https://forums.powershell.org/u/nichi-castagnaro)\
**Post date:** [June 21, 2016, 2:59pm UTC](https://forums.powershell.org/t/get-user-logged-to-pc/6679/4 "2016-06-21T14:59:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:41pm UTC](https://forums.powershell.org/t/get-user-logged-to-pc/6679/5 "2024-05-16T20:41:02Z")

</div>


