How to get terminal information of logined user in windows 7 and windows server via program?

Ran Maoneng 1 Reputation point
2020-04-16T02:09:31.213+00:00

As a server administrator, I have to manage a lot of servers which are running windows 7 and windows server system in company.

In servers, many users will login and use company, the password of every user will not change frequently.

So I want to know who is loging but without permission.

I want to get the hostname of every user and their ip and mac address, in that way, I can compare with the data of authorized user list to find out who is invalid user and contact them to apply valid access power.

For methods, I want to through program such as bat, vbs, powershell or other effective language to make it achive.

Hope to get your sincerely reply and warmly discussion, thank you!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,971 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.3K Reputation points MVP
    2020-04-16T02:15:20.61+00:00

    QnA currently supports the products listed in right-hand pane (more to be added) Better to reach out to subject matter experts in dedicated forums over here.

    https://social.technet.microsoft.com/Forums/windows/en-US/home?forum=winserverpowershell

    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG

    and look for script ideas here.

    https://gallery.technet.microsoft.com/scriptcenter

    (please don't forget to mark helpful replies as answer)

    0 comments No comments