Using ADSI I have a variable containg my domains.Â I can easily access the domainname using $domain.properties.dnsroot format.
What I want to do is use this information to populate a drop-down list.Â I thought I'd use convertto-xml and then bind the drop-down.Â Issue is, I do not know how to access the domainname from this xml variable/document.
The convertto-xml produces something similar to
< ?xml version="1.0"?>
Any idea on how I can access domain1, domain2 and domain3 from the above file ? Or is there a better way ?