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.
$ReferenceGPOId="69564100-428E-4272-B12A-886986E68F92" [xml]$ReferenceGPOReport=Get-GPOReport -Guid $ReferenceGPOId -ReportType Xml $ReferenceGPO=$ReferenceGPOReport.GPO.Computer.ExtensionData.Extension $q1=$ReferenceGPO | Where-Object {$_.q1} $q1.ChildNodes.ChildNodes | Select-Object -Property *
When I see the ChildNodes property, I see these values:
ChildNodes : {q1:GPOSettingOrder, q1:Properties, q1:Filters}
But when I try to access the values, I only get :
#text ----- 1
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?