title: GPO WMI username filter not working over RDP
body: <p>I'm trying to write a WMI filter to prevent a GPO from applying to certain users</p>
  
  <pre><code>SELECT * from Win32_ComputerSystem WHERE NOT UserName LIKE 'domain\\user1_%' AND NOT UserName LIKE 'domain\\user2_%'
  </code></pre>
  
  <p>This works correctly if the user is logged onto the console but always returns false if the user is logged on via RDP.</p>
  
  <p>Mark</p>
  
  <p>EDIT:</p>
  
  <p>There does seem to be a way to achieve this, it's described in method two of <a href="http://learn-powershell.net/2010/11/01/quick-hit-find-currently-logged-on-users/" rel="nofollow">this</a> article. Though, I am unsure of how to construct the query using Win32_Process?</p>