I am looking to remotely invoke a command on ALL production terminal servers in our network to retrieve users logged in. I just need the ‘User’ and the ‘ClientName’ of each session.
I can successfully grab the user name by invoking the ‘Qwinsta’ command on each server, however that just returns the username along with State, type session and ID, but not the ClientName.
I have researched the ‘PSTerminalServices’ module but it doesn’t seem to be available for import.
Does anyone have any suggestions on how to accomplish this?