Answer the question
In order to leave comments, you need to log in
How to get a list of Windows 2008R2 remote desktop users?
Greetings!
There is a server with Windows Server 2008R2 Enterprise. It has more than 200 users, most of which are already inactive and blocked, but it is forbidden to delete them.
Task: get a list of "live" users.
I was able to google a lot of PowerShell solutions, but the following problem came up - most of them do not work, since I have PowerShell v.2.0 (for some reason, the update will not be released in the next 2-3 days).
I found the command Get-WmiObject Win32_UserAccount, which works on my version, but it displays the entire list. It has a -filter parameter, which, as I suspect, can potentially filter out the users I need, but alas, I can’t figure out how to set it ...
Thanks in advance to all who answered!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question