I'm using Ubuntu 22.04 with Xrdp enabled. I need a list of disconnected sessions (Users can often use the "X" to close the RDP session (therefore disconnect but not logout)).
I went through below solution but it couldn't retrieve any disconnected session's data.
https://gist.github.com/OllieJones/27592fb5660a446dccff092a0c029d11
Can anyone help me with some command that can fetch the disconnected sessions with SessionId and username.