Is it possible to iterate through a list of servers and query all the logged in users?

Is it possible to iterate through a list of servers and query all the logged in users?

avatar

I would like to be able to stand on a folder that contains a list of servers, and run some sort of script that would query logged in users on all the servers in that list. Is that possible via some sort of macro/powershell script? If so, where would I start with this?

I am very knew to all this

All Comments (3)

avatar

Hello,

It is possible to list the logged in users of a server by using the "List Sessions" option under Macros/Script/Tools. This is only available for the currently select server, however, not a list.

forum image

Is this what you were looking for?

Best regards,

Richard Boisvert

avatar

Yes. That is the functionality I am looking for. Is there a way of determining what macro is being executed? Can I expand on it?

Also, that isn't returning any sessions. I am logged into a server. My colleague is logged onto the same server. But no sessions are returned:

forum image

This is the version I am using:

forum image

avatar

Hello,

I will ask the engineering team to provide the code to see what could be done. As to why that functionality is not working, you can refer to https://kb.devolutions.net/rdm_wmi_troubleshooting.html

Best regards,

Richard Boisvert