there is no available field to filter the windows event viewer security logs for users logging in with rdp (logon type 10). use the xml tab and check the box edit query manually.
<querylist> <query id="0" path="security"> <select path="security"> *[ eventdata[data[@name='logontype']='10'] and system[(eventid='4624')] ] </select> </query> </querylist>
if you would like to include a condition for the user account as well as the logon type:
<querylist> <query id="0" path="security"> <select path="security"> *[ eventdata[data[@name='logontype']='10'] and eventdata[data[@name='targetusername']='sysinfo.user'] and system[(eventid='4624')] ] </select> </query> </querylist>
logon types explained
logon type 2 – interactive
this is what occurs to you first when you think of logons, that is, a logon at the console of a computer. you’ll see type 2 logons when a user attempts to log on at the local keyboard and screen whether with a domain account or a local account from the computer’s local sam. to tell the difference between an attempt to logon with a local or domain account look for the domain or computer name preceding the user name in the event’s description. don’t forget that logon’s through an kvm over ip component or a server’s proprietary “lights-out” remote kvm feature are still interactive logons from the standpoint of windows and will be logged as such.
logon type 3 – network
windows logs logon type 3 in most cases when you access a computer from elsewhere on the network. one of the most common sources of logon events with logon type 3 is connections to shared folders or printers. but other over-the-network logons are classed as logon type 3 as well such as most logons to iis. (the exception is basic authentication which is explained in logon type 8 below.)
logon type 4 – batch
when windows executes a scheduled task, the scheduled task service first creates a new logon session for the task so that it can run under the authority of the user account specified when the task was created. when this logon attempt occurs, windows logs it as logon type 4. other job scheduling systems, depending on their design, may also generate logon events with logon type 4 when starting jobs. logon type 4 events are usually just innocent scheduled tasks startups but a malicious user could try to subvert security by trying to guess the password of an account through scheduled tasks. such attempts would generate a logon failure event where logon type is 4. but logon failures associated with scheduled tasks can also result from an administrator entering the wrong password for the account at the time of task creation or from the password of an account being changed without modifying the scheduled task to use the new password.
logon type 5 – service
similar to scheduled tasks, each service is configured to run as a specified user account. when a service starts, windows first creates a logon session for the specified user account which results in a logon/logoff event with logon type 5. failed logon events with logon type 5 usually indicate the password of an account has been changed without updating the service but there’s always the possibility of malicious users at work too. however this is less likely because creating a new service or editing an existing service by default requires membership in administrators or server operators and such a user, if malicious, will likely already have enough authority to perpetrate his desired goal.
logon type 7 – unlock
hopefully the workstations on your network automatically start a password protected screen saver when a user leaves their computer so that unattended workstations are protected from malicious use. when a user returns to their workstation and unlocks the console, windows treats this as a logon and logs the appropriate logon/logoff event but in this case the logon type will be 7 – identifying the event as a workstation unlock attempt. failed logons with logon type 7 indicate either a user entering the wrong password or a malicious user trying to unlock the computer by guessing the password.
logon type 8 – networkcleartext
this logon type indicates a network logon like logon type 3 but where the password was sent over the network in the clear text. windows server doesn’t allow connection to shared file or printers with clear text authentication. the only situation i’m aware of are logons from within an asp script using the advapi or when a user logs on to iis using iis’s basic authentication mode. in both cases the logon process in the event’s description will list advapi. basic authentication is only dangerous if it isn’t wrapped inside an ssl session (i.e. https). as far as logons generated by an asp, script remember that embedding passwords in source code is a bad practice for maintenance purposes as well as the risk that someone malicious will view the source code and thereby gain the password.
logon type 9 – newcredentials
if you use the runas command to start a program under a different user account and specify the /netonly switch, windows records a logon/logoff event with logon type 9. when you start a program with runas using /netonly, the program executes on your local computer as the user you are currently logged on as but for any connections to other computers on the network, windows connects you to those computers using the account specified on the runas command. without /netonly windows runs the program on the local computer and on the network as the specified user and records the logon event with logon type 2.
logon type 10 – remoteinteractive
when you access a computer through terminal services, remote desktop or remote assistance windows logs the logon attempt with logon type 10 which makes it easy to distinguish true console logons from a remote desktop session. note however that prior to xp, windows 2000 doesn’t use logon type 10 and terminal services logons are reported as logon type 2.
logon type 11 – cachedinteractive
windows supports a feature called cached logons which facilitate mobile users. when you are not connected to the your organization’s network and attempt to logon to your laptop with a domain account there’s no domain controller available to the laptop with which to verify your identity. to solve this problem, windows caches a hash of the credentials of the last 10 interactive domain logons. later when no domain controller is available, windows uses these hashes to verify your identity when you attempt to logon with a domain account.