Results 1 to 4 of 4

Thread: WMI Filtering on clientname

  1. #1
    PreviousPoster is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    1,254

    Default

    All,

    Does somebody has an idea how we can put on our TS servers OU a policy based on WMI Thin client name filtering (environment variable: %CLIENTNAME%) .

    Thanks a lot!

    Peter

  2. #2
    PreviousPoster is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    1,254

    Default

    You will need to use the WMI class Win32_ComputerSystem. From what you are posting I am presuming that you require to apply the WMI filter to a group of Terminal Servers. If you have a specific naming method for your Terminal Servers for example TS1-10, you could you the following WMI query which will result in a true statement when the host name contains TS.

    [code:1]Select * From Win32_ComputerSystem WHERE Name LIKE "%TS%"[/code]

    What are you hoping to achieve by using your WMI Filter, could you provide some more information of what expected results you require.

  3. #3
    jdobiash is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    119

    Default

    It sounds like he's trying to filter based on the client that is connecting to the Terminal Server, which i'm not sure is going to be possible. From Group Policies point of view, the client IS the Terminal Server. About the only thing you might be able to do is create a login script which checks that %CLIENTNAME% variable and takes actions based on what you want to do for different clients. Keep in mind that it would be running under the context of the user unless you have a program to elevate the privilages.

  4. #4
    PreviousPoster is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    1,254

    Default

    Indeed jdobiash, actually we are redesigning our citrix infrastructure and we would like a group policy being applied on a published ICA desktop when logging on from certain thin client devices (Wyse OS). Before this was done within the login script but from now on I would like to use a WMI class, does anybody has an example of a similar WMI GPO filter.
    We found a possible solution within the namespace “root\Citrix” and class MetaFrame_ICA_Client but this doesn’t work.
    How do we get this in a valid WMI GPO Filter:

    strComputer = "."
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\Citrix")
    Set colItems = objWMIService.ExecQuery( _
    "SELECT * FROM MetaFrame_ICA_Client",,48)

    Thanks again!

    Peter

Posting Permissions

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

Search Engine Friendly URLs by vBSEO