XML
The next file type that you must know and need to learn to work with is Extensible Markup Language (XML). It can be used for configuration and data storage. We will start with an example of storing and loading configuration data:
#XMLConfigFile
$XMLContent=@'
<?xml version="1.0" standalone="yes"?>
<Config>
<TargetCollectionDefault>Windows10_1</TargetCollectionDefault>
<TargetCollection>
<Collection company_id = "A">Windows10_1_A</Collection>
<Collection company_id = "B">Windows10_12</Collection>
<Collection company_id = "C">Windows10_1_B</Collection>
</TargetCollection>
<ADLocations>
<Mandant Name="School" Nummer="1" UserName="Guest" OrgName="School" OSDVersion="Win7"
Domain="sl1.contoso.net" DomainDC="DC=sl1,DC=contoso,DC=net"></Mandant>
<Mandant Name="School" Nummer="3" UserName="Guest" OrgName="School" OSDVersion="Win10"
Domain="sl2.contoso.net"...