none
GPO - Item level targeting execution of script

    Question

  • I have been tasked with executing a batch file on any computer on a domain ONLY if the computer has any version of outlook on it. 

    I have the script I want to execute, a simple batch calling a program with a few arguments, and I have the WMI query I need to filter out machines. My problem is that when I create a GPO for it, I am not seeing any option for item level targeting...

    I am using User Configuration>Policies>Windows Settings>Scripts>Logon as the location for my script call. 

    The DC I am trying to create this on is running Server 2012 R2 Standard x64

    Thank you in advance for any help that you can provide. 

    Thursday, November 12, 2015 1:27 AM

Answers

  • > I have been tasked with executing a batch file on any computer on a
    > domain ONLY if the computer has any version of outlook on it.
     
    Much easier to do the verification INSIDE your script and then simply
    exit if conditions do not match.
     
    Thursday, November 12, 2015 9:18 AM

All replies

  • > I have been tasked with executing a batch file on any computer on a
    > domain ONLY if the computer has any version of outlook on it.
     
    Much easier to do the verification INSIDE your script and then simply
    exit if conditions do not match.
     
    Thursday, November 12, 2015 9:18 AM
  • Item-Level Targeting is only available for Group Policy Preferences settings.
     
    >, and I have the WMI query I need to filter out machines.
     
    What's this WMI query for? Probably, use a WMI query to detect if any version of Outlook is installed on the workstations.
     

    Regards,

    Ethan Hua


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com

    Thursday, November 12, 2015 9:53 AM
    Moderator