Help Searching GPO XML

Good afternoon-
I'm trying to search all of the GPOs in my environment for "NT AUTHORITY\Authenticated Users" in any User Rights Assignment section. We need to implement a forest-wide authentication trust and need to know where "Authenticated Users"
is used so that we can replace it with "Domain Users" and "Domain Computers." I have a Powershell script that is getting me close, but I can't seem to form the if() block in such a way that it actually works. This seems to be a good base:
[xml]$objGPO = Get-Content "PATHTOXMLFILEHERE"
Write-host $objGPO.GPO.Computer.ExtensionData.Extension.UserRightsAssignment.Member.Name -foregroundcolor green | Where { $_ -like "*NT AUTHORITY\Authenticated Users*"}
When I run this, I get:
q1:Member q1:Member
(in green) so I believe that it's finding a match. However, if I change the code to something like this:
[xml]$objGPO = Get-Content "PATHTOXMLFILE"
if($objGPO.GPO.Computer.ExtensionData.Extension.UserRightsAssignment.Member.Name | Where { $_ -like "*NT AUTHORITY\Authenticated Users*"}){
Write-Host "Yes"
} else {
Write-Host "No"
It always returns "No." I'm open to suggestions on other ways to accomplish what I'm looking for.
Thank you!!

Hi Brupnik,
Please make sure you have gotten the expected result by the cmdlet "$objGPO.GPO.Computer.ExtensionData.Extension.UserRightsAssignment.Member.Name".
The result you posted should be the output of "$objGPO.GPO.Computer.ExtensionData.Extension.UserRightsAssignment.Member.Name".
If you want to filter the User Rights Assignment, please try to modify the expression above, and test the result below:
$objGPO.GPO.Computer.ExtensionData.Extension.UserRightsAssignment.somethingmodify|where { $_ -like "*NT AUTHORITY\Authenticated Users*"}
I hope this helps.

Similar Messages

  • Using JScript to search an XML File

    I have an XML file that has three fields in each section like the following:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <CapabilityData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <capability>
            <oem>A.I.D</oem>
            <PartNumber>1426-5A-A1</PartNumber>
            <Nomenclature>AIRSPEED</Nomenclature>
        </capability>
        <capability>
            <oem>A.I.D</oem>
            <PartNumber>1426-5A-B1</PartNumber>
            <Nomenclature>AIRSPEED</Nomenclature>
        </capability>
    </CapabilityData>
    and what i want to do is search the xml file to find if a part number exists.  All this has to do is return a Yes or No response...
    The problem I am experiencing is that i can get the script to read the xml and display it on the screen but once i try to add in code to actually do a search it goes all haywire... i don't know if i'm jsut doing something stupid or if i'm doing it all incorrectly.
    Please be gentle, this is my first time...
    ~~~~
    <html>
    <body>
    <h1>OEM Search 2</h1>
    <button onclick="myTestFunction()">Try it</button>
    <script>
    function myTestFunction()
        var sPNSearchFor = "18B331";
        if (window.XMLHttpRequest)
          {// code for IE7+, Firefox, Chrome, Opera, Safari
          xmlhttp=new XMLHttpRequest();
        else
          {// code for IE6, IE5
          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        xmlhttp.open("GET","capability.xml",false);
        xmlhttp.send();
        xmlDoc=xmlhttp.responseXML;
        document.write("<table border='1'>");
        var x=xmlDoc.getElementsByTagName("capability");
        for (i=0;i<x.length;i++)
          document.write("<tr><td>");
          var sOEM=xmlDoc.getElementsByTagName("oem")[i].childNodes[0].nodeValue;
            document.write(sOEM);
            document.write("</td><td>");
          var sPN=xmlDoc.getElementsByTagName("PartNumber")[i].childNodes[0].nodeValue;
            document.write(sPN);
            document.write("</td><td>");
          var sNom=xmlDoc.getElementsByTagName("Nomenclature")[i].childNodes[0].nodeValue;
            document.write(sNom);
            document.write("</td><td>");
            document.write(sPNSearchFor);
            document.write("</td><td>");
        document.write("</table>");
    </script>
    </body>
    </html>

    Hi Tom,
    Please post your question in this forum, you could get more helpful answers there:
    ASP.NET Forums >
    General ASP.NET >
    HTML, CSS and JavaScript
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Why does a topic that is not in the TOC show up in a help search?  RoboHelp 9

    I have two book (.xpj) projects in one directory.  They each have their own TOCs, but the directory has all the topics for both projects.
    In project A, the generated help output TOC looks correct, but if I do a search, I get a topic that is not in project A- it is not linked to the book.  It is linked to project B.   Do you know why the search would come up with this topic?
    What determines the topics that appear in a help search?  
    Thank you,
    Erin

    It's about a thousand years since you could have two projects in one folder. (Well at least ten. )
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Searching for XML tags using Oracle Text

    I am using full text search to find documents based on a search text. It works fine for pdf, word documents, etc. However for XML documents, searching for a particular tag name does not find anything. Searching for text within tags works fine. Any thoughts?
    Edited by: miyer on Feb 21, 2011 6:25 PM

    Hi
    Try adding the following variable to ucm config.cfg and then see if a new xml checkin returns the result for FT search :
    TextIndexerFilterFormats=xml
    Save the file , restart UCM and then test .
    If the new checkin gets the results as expected then execute Collection Rebuild cycle to have the existing contents as well FT indexed to be searchable (for XML).
    Thanks
    Srinath

  • Searching in xml using JDom or XPath

    Hii Javaties
    I need to search my xml file,so that i can retreive all the clerks under a particular manager
    say all the clerks under manager 1.
    Right now i am using DOM.
    What will be the best approach to do searching .
    Should i use XPAth ?
    My xml structure is
    <ROWSET>
    <ROW num="1">
    <Manager_Name>M1</Manager_Name>
    <Clerks>
    <Clerk_Item>
    <Clerk_Name>M1C1</Clerk_Name>
    </Clerk_Item>
    <Clerk_Item>
    <Clerk_Name>M1C2</Clerk_Name>
    </Clerk_Item>
    </Clerks>
    </ROW>
    <ROW num="2">
    <Manager_Name>M2</Manager_Name>
    <Clerks>
    <Clerk_Item>
    <Clerk_Name>M2C1</Clerk_Name>
    </Clerk_Item>
    <Clerk_Item>
    <Clerk_Name>M2C2</Clerk_Name>
    </Clerk_Item>
    </Clerks>
    </ROW>
    </ROWSET>

    Hi Anirban
    I think you are looking for same info which is asked in this thread:Search using MDM java API
    Have a look on this article as well to get the better understanding on MDM Java API Search: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9039f92b-714b-2c10-d49f-a0cdf4e27dc6
    Cheers/ -Tarun

  • How do I filter my Help search to eliminate unrelated items?

    I'm working in Illustrator CS 5, but this question really applies to any Adobe product:
    How do I get the Help search to limit results to items related to the actual program I'm using, and to the subject I enter in the search bar?
    For example, if I type "join" in the search bar and select Illustrator from the dropdown menu, and check "Adobe Reference Only" the first 6 items I get are about javascript and SQL programming. This happens for any help search I do. I assume there's a way to get useful results from the Help search and I'm just missing it.
    Suggestions, anybody?

    Barry,
    In addition to what Monika said, if some unwanted added word(s) fill the top of the search, you may add -[unwanted word] for the/each word after the wanted part.

  • Offline Photoshop CHC Help Search Malfunction.

    Photoshop help search isn't returning any results in offline mode. Please read this thread:
    http://forums.adobe.com/message/3213191
    The local help has been downloaded for all the Adobe Creativity Suite applications and is showing as "Current".
    The option under the left hand pane search box dropdown "Local" is selected.
    Filter results is correctly selected "Using Adobe Photoshop CS5".
    Searching for something like "brush" returns NOTHING in offline mode. (online mode works ok).
    The help document "Using Adobe Photoshop CS5" is vissible in offline mode (in the right hand pane) but just not returning any results when searched.
    All other offline help documentation (for the rest of the Creativity Suite) seems to be working OK.

    This issue should now be resolved via the update instructions posted here: http://forums.adobe.com/message/3216601#3216601

  • Help Search on screen field

    Hi. I've made a screen with 3 fields , in the screen painter, just for the user insert dates, but my problem its that if i push f4 i have the dates help search but the icon next to the field, normally for the help search, doesnt shows up... What its missing or what im doing wrong??
    Thk, Regards
    Message was edited by:
            joao martins

    Hi,
    Try this..
    Check the check box 'Possible entries' in the input field attributes..
    THanks,
    Naren

  • HELP SEARCH

    Hi!
    The problem is:
    I've created a HELP SEARCH for a field in a dynpro based on the T5ITQN, but when a user click on the matchcode, he must see only certain records of the table T5ITQN (this depends only by the "type" of user) and not all the records in the T5ITQN. How i can do this?
    Thanks for the answers.

    Instead you can try this solution -
    TYPES: BEGIN OF ztable,
             numde(20),
             kunnr(10).
    TYPES: END OF ztable.
    DATA: i_ztable TYPE ztable OCCURS 0 WITH HEADER LINE.
    DATA: v_choice TYPE i.
    PARAMETERS: p_kunnr LIKE kna1-kunnr DEFAULT '4290'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_kunnr.
      i_ztable-numde = 'JOHN05001'.
      i_ztable-kunnr = '1'.
      APPEND i_ztable.
      CLEAR i_ztable.
      i_ztable-numde = 'PETE05001'.
      i_ztable-kunnr = '2'.
      APPEND i_ztable.
      CLEAR i_ztable.
      i_ztable-numde = 'JOHN05002'.
      i_ztable-kunnr = '1'.
      APPEND i_ztable.
      CLEAR i_ztable.
      i_ztable-numde = 'PETE05002'.
      i_ztable-kunnr = '2'.
      APPEND i_ztable.
      CLEAR i_ztable.
      CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
           EXPORTING
                endpos_col   = 50
                endpos_row   = 20
                startpos_col = 1
                startpos_row = 1
                titletext    = 'Test'
           IMPORTING
                choise       = v_choice
           TABLES
                valuetab     = i_ztable
           EXCEPTIONS
                break_off    = 1
                OTHERS       = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        CLEAR i_ztable.
        READ TABLE i_ztable INDEX v_choice.
        MOVE i_ztable-kunnr TO p_kunnr.
      ENDIF.

  • Keyword search over XML documents

    there are many open source native XML databases,and search engines that support XQuery and XPath and many of them also support full text search.
    such as:
    1- TPOX
    2- Timber
    3- DBXML
    4 - http://exist.sourceforge.net/kwic.html [http://exist.sourceforge.net/kwic.html]
    5- http://www.inf.uni-konstanz.de/dbis/basex/ [http://www.inf.uni-konstanz.de/dbis/basex/]
    6- http://xqengine.sourceforge.net/ [http://xqengine.sourceforge.net/]
    7- Lucene
    But, could you please tell me what is the alternative open source systems for the following closed systems (XRANK is a Ranked keyword search over XML documents on http://www.cs.cornell.edu/~cbotev/XRank.pdf ) and (XSeek is A Semantic XML Search Engine Using Keywords on http://xseek.asu.edu/xseekdemo.pdf )
    I posted the question on http://stackoverflow.com/questions/2921379/is-there-any-open-source-system-for-keyword-search-on-xml-documents and I have got good information , but I think some people on this forum may have more information.
    thanks.

    Well, there is a workaround to search in the xml. Open xml in FF, open the page source (Ctrl + U) and search in it.

  • Help search in alv grid field

    Hello.
    How to assign a help search to a field of an alv grid control?
    I would like to use another help search different form the field reference.
    Thanks!!!
    Alberto

    Check the sample code:
        handle_on_f4             FOR EVENT onf4 OF cl_gui_alv_grid
                                 IMPORTING sender e_fieldname e_fieldvalue
                                           es_row_no er_event_data
                                           et_bad_cells e_display.
      METHOD handle_on_f4.
        IF e_fieldname = text-027. "Date
          PERFORM f4_date USING sender e_fieldname e_fieldvalue es_row_no
                                       er_event_data et_bad_cells e_display.
        ENDIF.
      ENDMETHOD.                    "handle_On_f4
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    *&      Form  F4_contact_id
          F4 for Contact ID
    FORM f4_date  USING    sender        TYPE REF TO cl_gui_alv_grid
                           e_fieldname   TYPE lvc_fname
                           e_fieldvalue  TYPE lvc_value
                           es_row_no     TYPE lvc_s_roid
                           er_event_data TYPE REF TO cl_alv_event_data
                           et_bad_cells  TYPE lvc_t_modi
                           e_display     TYPE c.
      DATA: lv_anlage TYPE anlage.
      FIELD-SYMBOLS: <itab> TYPE lvc_t_modi.
      DATA: ls_modi TYPE lvc_s_modi.
      DATA : wa_field_tab TYPE  dfies,
             lws_date TYPE scal-date.
      DATA: lws_row_id TYPE lvc_s_roid,
            lws_tabix TYPE sy-tabix.
      DATA: li_ret_tab LIKE  ddshretval OCCURS 0 WITH HEADER LINE.
      CLEAR: ls_modi, lv_anlage, li_ret_tab, wa_final, wa_field_tab,
             lws_date, lws_row_id, lws_tabix.
      REFRESH: li_ret_tab.
      IF NOT er_event_data->m_event_handled = c_x.
        ws_f4_handle = c_x.
        MOVE es_row_no-row_id TO lws_tabix.
        READ TABLE i_final INTO wa_final INDEX lws_tabix.
        CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
          EXPORTING
            tabname           = text-012              "I_FINAL
            fieldname         = text-027              "DATE
            searchhelp        = text-038              "BU_DATE_CHAR
          TABLES
            return_tab        = li_ret_tab
          EXCEPTIONS
            field_not_found   = 1
            no_help_for_field = 2
            inconsistent_help = 3
            no_values_found   = 4
            OTHERS            = 5.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        ASSIGN er_event_data->m_data->* TO <itab>.
        CONCATENATE li_ret_tab-fieldval+6(4)
                    li_ret_tab-fieldval+3(2)
                    li_ret_tab-fieldval+0(2) INTO lws_date.
        IF lws_date NE ''.
          IF lws_date > sy-datum.
            IF wa_final-zzmod_eff_code EQ c_03 OR
               wa_final-zzmod_eff_code EQ c_04 OR
               wa_final-zzmod_eff_code EQ c_05.
              wa_final-date = lws_date.
              MODIFY i_final FROM wa_final INDEX lws_tabix.
              PERFORM no_edit_for_date TABLES i_final.
              PERFORM alv_refresh.
            ENDIF.
          ELSE.
            wa_final-date = ''.
            MODIFY i_final FROM wa_final INDEX lws_tabix.
            PERFORM no_edit_for_date TABLES i_final.
            PERFORM alv_refresh.
            MESSAGE s001(zesspa) WITH text-037.
            EXIT.
          ENDIF.
        ENDIF.
        er_event_data->m_event_handled = c_x.
      ENDIF.
    ENDFORM.                                                    " f4_date
    Check the standard program <b>BCALV_EDIT_08</b>
    Regards,
    Prakash.

  • How to assign a help search

    Hi masters,
    i need to create a help search F4 for a standard field in tx ME51N. The field is AFNAM, it is located in the table MEREQ3211GRID. I created the search throught tx SE11 (zhelp_soli) and it works well.
    Now, how can i assign that help search to element AFNAM? I can't modify the standard table, because it asks me for a code. Do i need to get the permission from SAP to add that help to that field?
    I thought that i must be done without asking for the code to modify standard tables in SAP.
    Thanks..

    Hello Miguel
    Structure MEREQ3211GRID is used only within a very few program objects. I had a look into function group MEGUI and there is apparently no exit to modify fieldcatalog properties.
    Therefore, the easiest solution should be to modify the structure. For this you need the modification key for object R3TR TABL MEREQ3211GRID.
    Then you can add the search help field to the structure field MEREQ3211GRID-AFNAM.
    Regards
      Uwe

  • Search Configuration XML import using SharePoint App

    I'm trying to import a search configuration XML using a SharePoint App.
    I have check the following:
     - The XML is correct. I can upload it manually.
     - The code works using a console app, but not using the SharePoint app.
    Following code:
    SearchConfigurationPortability searchConfig = new SearchConfigurationPortability(this.Context);
    SearchObjectOwner owner = new SearchObjectOwner(this.Context, SearchObjectLevel.SPWeb);
    searchConfig.ImportSearchConfiguration(owner, configurationLocation);
    this.Context.Load(searchConfig);
    this.Context.ExecuteQuery();
    Following error message:
        ServerException was caught
        The server was unable to process the request due to an internal error.
        For more information about the error, either turn on IncludeExceptionDetailInFaults
        (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior)
        on the server in order to send the exception information back to the client, or turn on
        tracing as per the Microsoft .NET Framework SDK documentation and inspect the server
        trace logs.
    Thanks!

    I'm deploying the app to a SharePoint dev environment in the cloud so I can't see the ULS Logs, unfortunately. The link you suggested states that "managed properties aren’t supported in this deployment model" and this is exactly what I'm trying to provision.
    Any other ideas why the above code fails, although stated exactly on http://msdn.microsoft.com/en-us/library/office/dn205276(v=office.15).aspx?

  • Help search Characteristic value

    Hi gurus,
    I need one help search for all existing characteristic values in the system.  I have a chareacteristic name, lets say XPTO and i want to show all existing values in the system that XPTO has in the AUSP.
    Can someone help?
    Thk,
    Regards

    Hi  friend there  is  no serach help  for your  characteristic value and the characteris  name ....
    so  one thing  you have to  create a serach help  it and  attach to there  data element  ....
    if you want  you  see  it by pressing in the F4 help ..  it wont work     because  there is no seaarch help  ......
    Girish

  • What do you recommend to get started with Dynamics Marketing? Book, You Tube, help searches, etc.? Please advise.

    Trying to get started with marketing using dynamics and tutorials, help searches and you tube seem to be fruitless. What do you recommend to get started? Buy a book to walk thru setting up company settings and creating campaigns? Need some easy steps on
    not what the software is capable of but how to do it with easy 1-2-3 steps.  Please share you thoughts!!

    Hi cb,
    I would recommend a few articles here. There are videos, walkthroughs and ebooks that you can take a look at the have
    a better understanding of not only what the product is capable of, but how to actually configure and work with it.
    Help & Training - Videos and ebooks
    TN Articles 

Maybe you are looking for

  • 10/8/2013 - Flash Player 11.9 Release Announcement

    Today we're pleased to announce that the next version of Flash Player is available for immediate download.  This update includes the following new features and improvements: New Features: Safe Mode in Safari 6.1 and higher Safari 6.1 includes an upda

  • Problem retrieving data from a JTable.

    Hi All, I've just searched to 45th page of this forum but I heven't found a topic containing infos that can help me. Well, my problem is: I have to retrieve data from a JTable. I use getValue() method but it seems to work well on all cells of a row b

  • ITunes free songs are not free

    The weekly song says "free" but to download it one must enter a credit card number. This is not free. I must pay for the song by providing priveledged information that has nothing to do with the transaction. Why must I provide potential access to my

  • Can't open iDVD project

    Help needed I had account for my niece and she was playing with iDVD creating her own projects. After I have reinstalled everything, I created account for her with different name and none of her projects open anymore! The error is "Project locked by

  • ITunes 11 removed Display duplicates option

    I downloaded iTunes 11 and there is no longer an option to Display Dupicates in the File menu.  Am I missing it somewhere or did they get rid of it?