Extract xml with two value existence
Daniel K
21
Reputation points
hi, can advise how to scan through xml with multiple instance of <ExtensionData> and only return "True" if the xml consist of both "Turn off Automatic Root Certificates Update" and "Enabled" (see in bold) with the same instance of <ExtensionData> , please note **q3** is random (can be q1, q14).
Thanks.
<ExtensionData>
<Extension xmlns:q3="http://www.microsoft.com/GroupPolicy/Settings/Registry" xsi:type="q3:RegistrySettings">
<q3:Policy>
**<q3:Name>Turn off Automatic Root Certificates Update</q3:Name>**
** <q3:State>Enabled</q3:State>**
<q3:Explain>This policy setting specifies your computer will contact the Windows Update website.</q3:Explain>
<q3:Supported>At least Windows Server 2003 operating systems with SP1 or Windows XP Professional with SP2</q3:Supported>
<q3:Category>System/Internet Communication Management/Internet Communication settings</q3:Category>
</q3:Policy>
<q3:Blocked>false</q3:Blocked>
</Extension>
<Name>Registry</Name>
</ExtensionData>
Windows for business | Windows Server | User experience | PowerShell
Sign in to answer