Announcement

Collapse
No announcement yet.

WMI Filters

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • WMI Filters

    Hi All

    I have a windows 2003 domain and i am using all Windows XP machines. I have policy which redirects user MyDocuments to Home Drive (H:\ Drive). This is a user policy. All of my users have desktops in the office and about half of them also have company issue laptops (IBM T60, X60 & X61) which are all joined to domain and polciy is applying. I would like to deny the redirect My documents policy to user if they log in with their laptops. I think i need a WMI Filter. How can i create a WMI filter and or exclusion for laptops?

  • #2
    Re: WMI Filters

    You could use the Win32_SystemEnclosure class where 3 translates to laptops. The WMI filter excludes Chassis Types 3 which are equal to Laptops.

    Code:
    Select * From Win32_SystemEnclosure Where ChassisTypes <> "3"
    I have not tested this WMI filter.

    See the below link for full list of Chassis Types

    http://www.microsoft.com/technet/scr....mspx?mfr=true
    MCSA 2000/2003

    Comment


    • #3
      Re: WMI Filters

      should be 9 instead of 3.

      Code:
      Select * From Win32_SystemEnclosure Where ChassisTypes <> "9"
      Technology is only as good as those who use it

      My tech blog - wiredtek.wordpress.com

      Comment


      • #4
        Re: WMI Filters

        Typo error! Was late last night. We got there in the end.
        MCSA 2000/2003

        Comment


        • #5
          Re: WMI Filters

          Code:
          We got there in the end
          No not yet (!)
          Chassis types are stored as an array. You can't use Where ChassisTypes <> '3' like that to identify a portable, a For-Next loop is required for attributes that can be multivalued.

          Instead. For this case you may be able to filter on computer model?:
          Root\CimV2; Select * from Win32_ComputerSystem where manufacturer = "Toshiba" and Model = "Tecra 8000" OR Model = "Tecra 8100"

          Else, you could run Mofcomp.exe on EACH portable (or desktop) to add the values from a MOF file into the WMI Repository. You can then use that as a 'tag' for a WMI-filter http://forums.petri.com/showpost.php...51&postcount=4.


          \Rems

          This posting is provided "AS IS" with no warranties, and confers no rights.

          __________________

          ** Remember to give credit where credit's due **
          and leave Reputation Points for meaningful posts

          Comment


          • #6
            Re: WMI Filters

            How would i use the filter to deny the policy? Do i do this on the delegation tab? Add authenticated users then deny Apply Group Policy persmission?

            Comment


            • #7
              Re: WMI Filters

              Another idea would be to filter by name.... My Naming structure is wrk## for workstations and mobile## for laptops and wrkdr## for DR workstations. How would exclude mobile## from policy?

              Thanks for your response too... I appreciate thje help

              Comment


              • #8
                Re: WMI Filters

                Good thinking!

                Combine information of both sources:
                - http://msdn2.microsoft.com/en-us/library/Aa392263.aspx
                - http://forums.petri.com/showpost.php...51&postcount=4

                Apply the GPO only to the users when they logon to a computer where its name contains "mobile"
                Code:
                Root\CimV2 ;
                Select * From Win32_OperatingSystem Where (CSName Like '%mobile%')
                Or, apply the GPO always to the users except when they logon to a computer where its name contains "mobile"
                Code:
                Root\CimV2 ;
                Select * From Win32_OperatingSystem Where Not (CSName Like '%mobile%')

                \Rems
                Last edited by Rems; 25th September 2007, 20:24.

                This posting is provided "AS IS" with no warranties, and confers no rights.

                __________________

                ** Remember to give credit where credit's due **
                and leave Reputation Points for meaningful posts

                Comment


                • #9
                  Re: WMI Filters

                  NICE!! ... Thanks Rem... that worked perfect...

                  Comment

                  Working...
                  X