I may be missing something.. but is there a way to get the version of an agent programmatically?
I can’t even find it when looking at PSUAgent.exe details. We have a fairly large environment with different servers being in flux as we develop a new process that utilizes agents and we are having a hard time tracking and verifying installed agent versions. ie.. verifying that our process actually installed the upgraded version we told it to.
How are others handling this?
PSU shows the agent version in a column since 5.5.0, when it was requested via a GitHub feature request entry (Return remove agent version in the Get-PSUEventHubConnection command · Issue #4553 · ironmansoftware/powershell-universal · GitHub).
What version of PSU are you using? Also, your agent version may be pre-5.5.0 as well, which would still cause the version not to show in the PSU admin UI.
As for getting the info programatically, you can’t do it from the agent side, but from the PSU side you can run Get-PSUEventHubConnection -AppToken <APP TOKEN> -Hub <HUB-NAME> -Active
and it’ll output something like:
Id : 82
UserName : <redacted>
RemoteIpAddress : ::ffff:172.17.2.201
RemoteComputer : <redacted>
EventHub : <redacted>
Computer : <redacted>
Connected : 6/4/2025 2:08:33 PM
Disconnected :
ConnectionId : xNTtzJTmzZn9shlKEcgW7g
RemoteUserName : <redacted>
RemoteDomainName : <redacted>
Version : 5.5.4
We are on 5.5.4 and installed a 5.5.4 agent. I see now in the connections that yes there is a version column and the new agent shows the version. Every other client is not 5.5* yet so I had to filter to see the one agent that does display the version.
Thank you!
1 Like