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

Ran Maoneng 1 Reputation point

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

    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.

    and look for script ideas here.

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

    0 comments No comments