none
Check a setting in all GPO's

    Question

  • HI,

    I found following blog but cannot ask any questions. How do i check for user configuration ?

       http://blogs.technet.com/b/grouppolicy/archive/2009/04/14/tool-images.aspx

    As

    Tuesday, April 14, 2015 6:11 AM

Answers

  • I hope this is finally correct :)

    .\SearchGPOsForSetting.ps1 -IsComputerConfiguration $false -Extension IE -Where ProxyURL -Is http://proxy.xxx.com:8080/autoconfig/xxx.pac -Return ProxyURL

    Try it.


    Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable. This helps the community, keeps the forums tidy, and recognises useful contributions. Thank you!



    • Edited by thennet Tuesday, April 14, 2015 9:59 AM
    • Marked as answer by AUSSUPPORT Wednesday, April 15, 2015 1:22 AM
    Tuesday, April 14, 2015 9:46 AM
  • I don't want confuse you, I try to explain how this work:

    Into -Where parameter you can type only text from tags, which has single value.

    e.g. -Where ProxyURL, because ProxyUrl is closed in tags and has single value:

    <q2:ProxyURL>http://proxy.xxx.com:8080/autoconfig/xxx.pac</q2:ProxyURL>

    __________________

    Into -Value parameter you can type only text, which is located between two tags and it is single value of that tag.

    e.g. -Value http://proxy.xxx.com:8080/autoconfig/xxx.pac, because it is single value of ProxyURL:

    <q2:ProxyURL>http://proxy.xxx.com:8080/autoconfig/xxx.pac</q2:ProxyURL>

    __________________

    Into -Return parameter you can type text from any closed tags, which is in the -Extension parameter and has single value, then just returns to output this value

    e.g. -Return ProxyURL, you can return Value, ConfigTime, etc.

    <q2:Value>true</q2:Value>

    <q2:ConfigTime>15</q2:ConfigTime>

    __________________

    This will work:

    .\SearchGPOsForSetting.ps1 -IsComputerConfiguration $false -Extension IE -Where Value -Is true -Return Value


    Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable. This helps the community, keeps the forums tidy, and recognises useful contributions. Thank you!

    • Edited by thennet Wednesday, April 15, 2015 6:16 AM
    • Marked as answer by AUSSUPPORT Thursday, April 16, 2015 3:46 AM
    Wednesday, April 15, 2015 6:14 AM

All replies

  • Corrected:

    If you want User configuration use parameter like here:

     SearchGPOsForSetting.ps1 –IsComputerConfiguration $false

    From SearchGPOsForSetting.ps1 at line 129

    if($IsComputerConfiguration){ $QueryString += "Computer/gp:ExtensionData/gp:Extension"; }
    else{ $QueryString += "User/gp:ExtensionData/gp:Extension"; }

    For reports Group Policy settings that are applied to a user or computer you can use:

    Resultant Set of Policy (RSoP)

    Gpresult

    Using Group Policy Modeling and Group Policy Results to Evaluate Group Policy Settings

    An old-new way to get Group Policy Results

    Regards,

    thennet


    Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable. This helps the community, keeps the forums tidy, and recognises useful contributions. Thank you!





    • Edited by thennet Tuesday, April 14, 2015 6:53 AM
    Tuesday, April 14, 2015 6:29 AM
  • HI

    Thanks, I need to find the same settings applied to all the GPOs. I tried but no result is displayed?

    .\SearchGPOsForSetting.ps1 -IsComputerConfiguration $false -Extension IE -Where Name -Is ProxyURL

    <ExtensionData>
          <Extension xmlns:q2="http://www.microsoft.com/GroupPolicy/Settings/IE" xsi:type="q2:InternetExplorerSettings">
            <q2:PreferenceMode>false</q2:PreferenceMode>
            <q2:AutoDetectConfigSettings>
              <q2:Value>true</q2:Value>
            </q2:AutoDetectConfigSettings>
            <q2:AutomaticConfiguration>
              <q2:ConfigTime>15</q2:ConfigTime>
              <q2:ProxyURL>http://proxy.xxx.com:8080/autoconfig/xxx.pac</q2:ProxyURL>
            </q2:AutomaticConfiguration>
            <q2:HomePage>
              <q2:Value>https://world.xxx.com/irj/portal</q2:Value>
            </q2:HomePage>
          </Extension>
          <Name>Internet Explorer Maintenance</Name>
        </ExtensionData>
    
    
    .\SearchGPOsForSetting.ps1 -IsComputerConfiguration $false -Extension IE -Where Name -Is ProxyURL

    Tuesday, April 14, 2015 7:29 AM
  • I hope this is finally correct :)

    .\SearchGPOsForSetting.ps1 -IsComputerConfiguration $false -Extension IE -Where ProxyURL -Is http://proxy.xxx.com:8080/autoconfig/xxx.pac -Return ProxyURL

    Try it.


    Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable. This helps the community, keeps the forums tidy, and recognises useful contributions. Thank you!



    • Edited by thennet Tuesday, April 14, 2015 9:59 AM
    • Marked as answer by AUSSUPPORT Wednesday, April 15, 2015 1:22 AM
    Tuesday, April 14, 2015 9:46 AM
  • HI,

    Works perfect but try this, again no output?

    .\SearchGPOsForSetting.ps1 -IsComputerConfiguration $false -Extension IE -Where Name -IS  AutoDetectConfigSettings -Return Value

    .\SearchGPOsForSetting.ps1 -IsComputerConfiguration $false -Extension IE -Where AutoDetectConfigSettings -IS  True -Return Value

    As

    Wednesday, April 15, 2015 1:38 AM
  • I don't want confuse you, I try to explain how this work:

    Into -Where parameter you can type only text from tags, which has single value.

    e.g. -Where ProxyURL, because ProxyUrl is closed in tags and has single value:

    <q2:ProxyURL>http://proxy.xxx.com:8080/autoconfig/xxx.pac</q2:ProxyURL>

    __________________

    Into -Value parameter you can type only text, which is located between two tags and it is single value of that tag.

    e.g. -Value http://proxy.xxx.com:8080/autoconfig/xxx.pac, because it is single value of ProxyURL:

    <q2:ProxyURL>http://proxy.xxx.com:8080/autoconfig/xxx.pac</q2:ProxyURL>

    __________________

    Into -Return parameter you can type text from any closed tags, which is in the -Extension parameter and has single value, then just returns to output this value

    e.g. -Return ProxyURL, you can return Value, ConfigTime, etc.

    <q2:Value>true</q2:Value>

    <q2:ConfigTime>15</q2:ConfigTime>

    __________________

    This will work:

    .\SearchGPOsForSetting.ps1 -IsComputerConfiguration $false -Extension IE -Where Value -Is true -Return Value


    Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable. This helps the community, keeps the forums tidy, and recognises useful contributions. Thank you!

    • Edited by thennet Wednesday, April 15, 2015 6:16 AM
    • Marked as answer by AUSSUPPORT Thursday, April 16, 2015 3:46 AM
    Wednesday, April 15, 2015 6:14 AM
  • Thank you so much for detail instructions.

     I have a issue that IE not ticking the Use automatic configuration script ? trying to see any other GPO is over wires

    As.

    Thursday, April 16, 2015 3:46 AM
  • You're welcome.

    If doesn't help script SearchGPOsForSetting.ps1, use gpresult, which help you to find  GPO, which overwrite your GPO.

    I try to answer in your thread here:

    https://social.technet.microsoft.com/Forums/windowsserver/en-US/36001369-1398-4cef-a42c-670da37d7c0b/use-automatic-configuration-script-is-untick?forum=winserverGP

    Regards,

    thennet


    Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable. This helps the community, keeps the forums tidy, and recognises useful contributions. Thank you!

    Thursday, April 16, 2015 4:42 AM