Hello Danny Wang
You might want to use the "qwinsta" and "query session" commands to obtain information about the users logged on to the Remote Desktop Server.
To view detailed information about a specific session (replace [SESSION_ID] with the actual session ID): quser [SESSION_ID]
Revoke can be useful if a full CAL has been assigned to a device that has since been decommissioned, and you want to reallocate this to a new client prior to the 52-89 day automatic expiry. Where Per User licensing is not strictly enforced, this functionality is only available for Per Device CALs.
Per User RDS CALs show as expiring 60 days after they're issued. Shortly before their expiration date, when the user signs in, the date is extended another 60 days. If a user doesn't sign in before the expiration date, they drop off the list, but the next time they sign in they show up again with a new expiration date.
For most license agreements, 90 days is the more relevant time period, because it's the minimum time required before a license can be reassigned to a different user, except under special circumstances.
Reference:
I hope this helps! Please let me know if you need any further assistance.
---If the Answer is helpful, please click "Accept Answer" and upvote it.