OK I want to make sure a GPO doesnt get applied to a user (my boss) in Group Policy. I could make his own OU but for the purposes of me learning WMI lets not consider that an option.
I am able to filter the GPO by using a WMI filter that states - "apply this GPO if this computername does not equal the bosses computer name" by using the following WMI syntax filter:
"SELECT * FROM Win32_ComputerSystem WHERE Name <> 'thebossespcname'
But the boss is likely to log onto more than one PC, so I wanted to make the WMI filter stay "apply this GPO if this users logon name does not equal the bosses domain logon name" but the following did not work:
SELECT * FROM Win32_UserAccount WHERE Name <> 'The bossesLogonName'
Help.....what am I doning wrong?
For thos who are not aware of it this is a great tool:
WMI Code Creator v1.0
http://www.microsoft.com/downloads/d...displaylang=en