question

RanMaoneng-9052 avatar image
0 Votes"
RanMaoneng-9052 asked ·

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

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-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

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)


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.