XML ChildNode retrieve value

Welcome Forums General PowerShell Q&A XML ChildNode retrieve value

Viewing 2 reply threads
  • Author
    Posts
    • #229816
      Participant
      Topics: 13
      Replies: 15
      Points: 85
      Rank: Member

      I’m looking through some GPO settings using Get-GPOReport¬† with the ReportType of Xml. The setting I’m looking at is on the Computer Configuration > Preferences > Windows Settings > Files.

      When I see the ChildNodes property, I see these values:

      But when I try to access the values, I only get :

      I tried to look at the members and going through the properties to see if I could retrieve the information, but I couldn’t. I might be able to do it in a string, but I’m sure there’s another way to get that information. Any body know how?

    • #229825
      Participant
      Topics: 17
      Replies: 1958
      Points: 4,020
      Helping Hand
      Rank: Community Hero

      It’s difficult to assist without seeing the actual schema of the XML and what exactly you are attempting to get, but if you are selecting a node q1, why not just continue with dot notation.

      Normally, you can just keep using intellisense to continue to get to the node you want to see. If you do want to post XML, you may need to do https://gist.github.com/

    • #229840
      Participant
      Topics: 13
      Replies: 15
      Points: 85
      Rank: Member

      Surprising I actually found the answer.

      I actually found the answer by doing this:

Viewing 2 reply threads
  • The topic ‘XML ChildNode retrieve value’ is closed to new replies.