+ Post New Thread
Results 1 to 8 of 8
Windows Server 2000/2003 Thread, WMI Filtering in Technical; Hi, I am trying to get a user policy called "Windows XP" to only apply to windows XP. I am ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,963
    Thank Post
    886
    Thanked 1,710 Times in 1,478 Posts
    Blog Entries
    12
    Rep Power
    449

    WMI Filtering

    Hi,

    I am trying to get a user policy called "Windows XP" to only apply to windows XP.

    I am using this code on the WMI attached to the policy.

    Code:
    select * from Win32_OperatingSystem where Version like "5.1%" and ProductType = "1"
    But the policy doesn't apply when i log onto a Windows XP machine, can anyone tell me why please? I am in work first thing tomorrow so need to know by then

    Thanks
    Last edited by FN-GM; 5th February 2010 at 05:56 PM.

  2. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,174
    Thank Post
    868
    Thanked 2,702 Times in 2,289 Posts
    Blog Entries
    11
    Rep Power
    773

  3. Thanks to SYNACK from:

    FN-GM (5th February 2010)

  4. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,963
    Thank Post
    886
    Thanked 1,710 Times in 1,478 Posts
    Blog Entries
    12
    Rep Power
    449
    Root\CimV2; Select * from Win32_OperatingSystem where Caption = "Microsoft Windows XP Professional"

    Im sure i tried that and it still didnt apply.

    EDIT:

    Do you need Root\CimV2; in front of it?

    If it does work what code will i need for a policy to apply to a terminal session on Server 2008?

    Thanks
    Last edited by FN-GM; 5th February 2010 at 06:26 PM.

  5. #4
    wagnerk's Avatar
    Join Date
    Jun 2007
    Location
    Northants
    Posts
    807
    Thank Post
    64
    Thanked 166 Times in 135 Posts
    Rep Power
    46
    I've uploaded a screen shot of the wmi filter that we use and where we've applied it. The GPO that the WMI filter is applied to is attached to one of our user OU's and not the OU where the PC is (not sure if that makes any difference, but that's the way we're using them).

    -Ken
    Attached Images Attached Images

  6. Thanks to wagnerk from:

    FN-GM (5th February 2010)

  7. #5
    wagnerk's Avatar
    Join Date
    Jun 2007
    Location
    Northants
    Posts
    807
    Thank Post
    64
    Thanked 166 Times in 135 Posts
    Rep Power
    46
    This is a good site for WMI Filters.

    -Ken

  8. #6

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,963
    Thank Post
    886
    Thanked 1,710 Times in 1,478 Posts
    Blog Entries
    12
    Rep Power
    449
    Quote Originally Posted by wagnerk View Post
    I've uploaded a screen shot of the wmi filter that we use and where we've applied it. The GPO that the WMI filter is applied to is attached to one of our user OU's and not the OU where the PC is (not sure if that makes any difference, but that's the way we're using them).

    -Ken
    Thats the same code as above isnt it? That simply failed to work.

  9. #7

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,174
    Thank Post
    868
    Thanked 2,702 Times in 2,289 Posts
    Blog Entries
    11
    Rep Power
    773
    Are you sure that the policy itself is setup correctly and not locked off by permissions or inheritance or something as that WMI query works for us. Are you sure that the "Windows Management Instrumentation" service is running on the clients and that the policies have all been updated via a gpupdate /force

  10. #8

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,963
    Thank Post
    886
    Thanked 1,710 Times in 1,478 Posts
    Blog Entries
    12
    Rep Power
    449
    I found what the problem was. It was the Mandatory profile causing the policies not to apply.

SHARE:
+ Post New Thread

Similar Threads

  1. WMI Screen Capture
    By somabc in forum Scripts
    Replies: 6
    Last Post: 7th July 2008, 08:27 PM
  2. WMI Woes
    By Gatt in forum Windows
    Replies: 2
    Last Post: 16th January 2008, 04:46 PM
  3. Wireless Intel WMI Interface?
    By Quackers in forum Windows
    Replies: 1
    Last Post: 29th March 2007, 08:22 AM
  4. Preblem with WMI and PrintUI.dll
    By ajbritton in forum Scripts
    Replies: 2
    Last Post: 4th August 2006, 08:00 AM
  5. GPO WMI Filters
    By Norphy in forum Windows
    Replies: 2
    Last Post: 9th March 2006, 09:28 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •