@ScriptingGuys I have exported group policy in XML format and then
[xml]$data =Get-Content C:\Users\test.xml
Now I want to extract the value of Restricted Group Name, Members and Member Of Settings from this xml file into a variable. How can I achieve this?