+ 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
    14,094
    Thank Post
    735
    Thanked 1,396 Times in 1,223 Posts
    Blog Entries
    8
    Rep Power
    368

    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. IDG Tech News
  3. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,172
    Thank Post
    749
    Thanked 2,460 Times in 2,087 Posts
    Blog Entries
    9
    Rep Power
    689

  4. Thanks to SYNACK from:

    FN-GM (5th February 2010)

  5. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    14,094
    Thank Post
    735
    Thanked 1,396 Times in 1,223 Posts
    Blog Entries
    8
    Rep Power
    368
    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.

  6. #4
    wagnerk's Avatar
    Join Date
    Jun 2007
    Location
    Wellingborough, Northants
    Posts
    759
    Thank Post
    59
    Thanked 156 Times in 127 Posts
    Rep Power
    43
    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

  7. Thanks to wagnerk from:

    FN-GM (5th February 2010)

  8. #5
    wagnerk's Avatar
    Join Date
    Jun 2007
    Location
    Wellingborough, Northants
    Posts
    759
    Thank Post
    59
    Thanked 156 Times in 127 Posts
    Rep Power
    43
    This is a good site for WMI Filters.

    -Ken

  9. #6

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    14,094
    Thank Post
    735
    Thanked 1,396 Times in 1,223 Posts
    Blog Entries
    8
    Rep Power
    368
    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.

  10. #7

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,172
    Thank Post
    749
    Thanked 2,460 Times in 2,087 Posts
    Blog Entries
    9
    Rep Power
    689
    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

  11. #8

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    14,094
    Thank Post
    735
    Thanked 1,396 Times in 1,223 Posts
    Blog Entries
    8
    Rep Power
    368
    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
  •