When connecting from a host running Windows 8.1 / Windows Server 2012 R2 to a machine that is running any OS over RDP, AM Connecting device rules and EM Client IP Address conditions may not function as expected.
This issue can be recreated without AppSense installed.
When connecting from a host running the Windows 8.1 / Windows Server 2012 R2 to any OS using RDP and calling the WTSQuerySessionInformation function to retrieve the WTS_Client_Address the AddressFamily member is 0 (AF_UNSPEC) and the Address returns a weird array of byte values. The Remote Desktop Services Manager console on Windows Server 2008 R2 also discovers the client address as unknown:
When performing the same RDP connection from a Windows 7 / Windows Server 2008 R2 host the AddressFamily returns 2 (AF_INET) or 23 (AF_INET6) correctly and the byte array correctly represents the IP address of the RDP client:
This is a Microsoft issue. Installing Windows Updates resolved the issue.