We often want to audit user logins from Remote Desktop Gateway to see what kind of activity a particular user has when connecting to remote terminal servers. The simplest way is to execute the following powershell script on the RD…